.vex-page {
  --vex-ink: #0d1223;
  --vex-muted: #667085;
  --vex-line: #e4e8f1;
  --vex-accent: #5268f6;
  --vex-accent-2: #7487ff;
  --vex-cyan: #50d7c8;
  --vex-dark: #0b1021;
  --vex-dark-2: #111a34;
  --vex-dark-line: rgb(255 255 255 / 10%);
  position: relative;
  overflow: clip;
  padding: clamp(2.2rem, 4vw, 4.2rem) 0 clamp(4rem, 7vw, 7rem);
  background:
    radial-gradient(circle at 8% 4%, rgb(82 104 246 / 11%), transparent 30rem),
    radial-gradient(circle at 96% 18%, rgb(80 215 200 / 9%), transparent 28rem),
    linear-gradient(180deg, #fbfcff 0%, #f5f7fb 48%, #f7f8fb 100%);
}

.vex-page::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(20 30 60 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(20 30 60 / 2.5%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 34rem);
  pointer-events: none;
  content: "";
}

.vex-app {
  position: relative;
  z-index: 1;
}

.vex-page [hidden] {
  display: none !important;
}

.vex-pagehead {
  display: flex;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.vex-pagehead > div:first-child {
  max-width: 780px;
}

.vex-kicker {
  display: inline-flex;
  margin-bottom: .75rem;
  align-items: center;
  color: var(--vex-accent);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.vex-kicker::before {
  width: 8px;
  height: 8px;
  margin-right: .55rem;
  background: var(--vex-cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(80 215 200 / 14%);
  content: "";
}

.vex-pagehead h1 {
  max-width: none;
  margin: 0;
  color: var(--vex-ink);
  font-size: clamp(2.3rem, 5.2vw, 4.8rem);
  letter-spacing: -.055em;
  line-height: .98;
}

.vex-pagehead p {
  max-width: 620px;
  margin: 1rem 0 0;
  color: #596174;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.55;
}

.vex-pagehead__mark {
  display: grid;
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  place-items: center;
  background: linear-gradient(145deg, #0c1226, #17234a);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 26px;
  box-shadow: 0 22px 50px rgb(22 30 66 / 18%);
  transform: rotate(3deg);
}

.vex-pagehead__mark svg {
  width: 42px;
  fill: none;
  stroke: #8292ff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vex-controls {
  display: grid;
  padding: 1rem;
  grid-template-columns: minmax(210px, 1.05fr) minmax(320px, 1.5fr) minmax(230px, 1.05fr) minmax(150px, .7fr);
  gap: .75rem;
  background: rgb(255 255 255 / 88%);
  border: 1px solid rgb(218 224 237 / 88%);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgb(40 50 92 / 9%);
  backdrop-filter: blur(16px);
}

.vex-control {
  min-width: 0;
  margin: 0;
  padding: .85rem .95rem;
  background: #f7f8fc;
  border: 1px solid #e7eaf2;
  border-radius: 17px;
}

.vex-control > label,
.vex-control > legend,
.vex-control--variant > span {
  display: block;
  margin: 0 0 .55rem;
  padding: 0;
  color: #697084;
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.vex-number-input,
.vex-date-input {
  display: flex;
  min-height: 47px;
  align-items: center;
  background: white;
  border: 1px solid #dce1eb;
  border-radius: 12px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.vex-number-input:focus-within,
.vex-date-input:focus-within {
  border-color: #8a99f8;
  box-shadow: 0 0 0 4px rgb(82 104 246 / 10%);
}

.vex-number-input input,
.vex-date-input input {
  min-width: 0;
  height: 45px;
  flex: 1 1 auto;
  padding: 0 .8rem;
  background: transparent;
  color: var(--vex-ink);
  border: 0;
  outline: 0;
  font-size: 16px;
  font-weight: 680;
}

.vex-number-input > span,
.vex-date-input > span {
  padding: 0 .8rem;
  color: #7d8496;
  border-left: 1px solid #e4e8f0;
  font-size: .76rem;
  font-weight: 650;
  white-space: nowrap;
}

.vex-presets {
  display: flex;
  margin-top: .55rem;
  gap: .35rem;
}

.vex-presets button {
  min-height: 27px;
  padding: .24rem .48rem;
  background: transparent;
  color: #677086;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  font-size: .68rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: all .15s ease;
}

.vex-presets button:hover {
  background: #eef1ff;
  color: #3148c6;
  border-color: #cbd3ff;
}

.vex-duration {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .35rem;
}

.vex-duration label {
  min-width: 0;
  cursor: pointer;
}

.vex-duration input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.vex-duration span {
  display: grid;
  min-height: 74px;
  place-content: center;
  gap: .08rem;
  background: white;
  color: #71798b;
  border: 1px solid #dfe4ed;
  border-radius: 12px;
  text-align: center;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.vex-duration b {
  color: inherit;
  font-size: 1.08rem;
  line-height: 1;
}

.vex-duration small {
  font-size: .66rem;
  line-height: 1;
}

.vex-duration label:hover span {
  border-color: #bfc8f7;
  transform: translateY(-1px);
}

.vex-duration input:focus-visible + span {
  outline: 3px solid #8192f7;
  outline-offset: 2px;
}

.vex-duration input:checked + span {
  background: linear-gradient(145deg, #5369f5, #4258e5);
  color: white;
  border-color: #5268f6;
  box-shadow: 0 10px 22px rgb(82 104 246 / 22%);
}

.vex-control--variant {
  display: flex;
  flex-direction: column;
}

.vex-variant {
  display: flex;
  min-height: 74px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: #11182d;
  color: white;
  border: 1px solid #11182d;
  border-radius: 13px;
  font-size: .78rem;
  font-weight: 680;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.vex-variant:hover {
  background: #1a2340;
  box-shadow: 0 12px 26px rgb(18 24 45 / 18%);
  transform: translateY(-1px);
}

.vex-variant svg {
  width: 19px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vex-variant:disabled {
  opacity: .58;
  cursor: wait;
  transform: none;
}

.vex-form-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.vex-feedback {
  display: flex;
  min-height: 32px;
  margin: .5rem .25rem 0;
  align-items: center;
  gap: .45rem;
  color: #737b8d;
  font-size: .76rem;
}

.vex-feedback__spinner {
  display: none;
  width: 13px;
  height: 13px;
  border: 2px solid #d7dcf1;
  border-top-color: var(--vex-accent);
  border-radius: 50%;
  animation: vex-spin .65s linear infinite;
}

.vex-feedback.is-busy .vex-feedback__spinner {
  display: inline-block;
}

.vex-feedback__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .1rem;
}

.vex-feedback__copy > span {
  color: #737b8d;
  font-size: .76rem;
}

.vex-feedback__copy small {
  color: #9299a9;
  font-size: .66rem;
  line-height: 1.35;
}

@keyframes vex-spin { to { transform: rotate(360deg); } }

.vex-error {
  margin-top: .65rem;
  padding: .8rem 1rem;
  background: #fff1f3;
  color: #a72037;
  border: 1px solid #ffd0d8;
  border-radius: 12px;
  font-size: .86rem;
}

.vex-summary {
  display: grid;
  margin-top: .8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: white;
  border: 1px solid #e2e6ef;
  border-radius: 20px;
  box-shadow: 0 14px 45px rgb(38 48 88 / 6%);
}

.vex-summary article {
  min-width: 0;
  padding: 1rem 1.15rem;
}

.vex-summary article + article {
  border-left: 1px solid #e7eaf1;
}

.vex-summary span,
.vex-summary small {
  display: block;
  overflow: hidden;
  color: #7c8495;
  font-size: .72rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vex-summary strong {
  display: block;
  margin: .2rem 0 .12rem;
  overflow: hidden;
  color: var(--vex-ink);
  font-size: clamp(1.18rem, 2.1vw, 1.7rem);
  letter-spacing: -.035em;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vex-warning {
  display: flex;
  margin-top: .8rem;
  padding: .75rem .9rem;
  align-items: flex-start;
  gap: .65rem;
  background: #fff9e9;
  color: #745a16;
  border: 1px solid #f4df9b;
  border-radius: 13px;
  font-size: .8rem;
  line-height: 1.45;
}

.vex-warning svg {
  width: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vex-board {
  position: relative;
  margin-top: 1rem;
  padding: clamp(1rem, 2.1vw, 1.55rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 8%, rgb(88 110 255 / 20%), transparent 25rem),
    radial-gradient(circle at 14% 104%, rgb(80 215 200 / 10%), transparent 22rem),
    linear-gradient(145deg, var(--vex-dark), var(--vex-dark-2));
  color: white;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 30px;
  box-shadow: 0 32px 80px rgb(17 25 55 / 24%);
}

.vex-board::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 2.7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2.7%) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(120deg, #000, transparent 62%);
  pointer-events: none;
  content: "";
}

.vex-board > * {
  position: relative;
  z-index: 1;
}

.vex-board[aria-busy="true"] .vex-board__grid,
.vex-board[aria-busy="true"] .vex-table-details {
  opacity: .52;
  filter: saturate(.75);
  pointer-events: none;
}

.vex-board__toolbar {
  display: flex;
  min-height: 50px;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vex-view-switch {
  display: inline-flex;
  padding: 4px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 14px;
}

.vex-view-switch button {
  display: inline-flex;
  min-width: 112px;
  min-height: 42px;
  padding: .65rem .9rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  background: transparent;
  color: #aeb7cf;
  border: 0;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.vex-view-switch button:hover {
  color: white;
}

.vex-view-switch button[aria-selected="true"] {
  background: white;
  color: #11182d;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.vex-view-switch svg {
  width: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vex-day-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .45rem;
}

.vex-day-nav > button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  background: rgb(255 255 255 / 7%);
  color: white;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 10px;
  cursor: pointer;
}

.vex-day-nav > button:hover {
  background: rgb(255 255 255 / 13%);
}

.vex-day-nav > button:disabled {
  opacity: .32;
  cursor: default;
}

.vex-day-nav svg {
  width: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vex-day-chips {
  display: flex;
  max-width: min(44vw, 520px);
  padding: 2px;
  overflow-x: auto;
  gap: .3rem;
  scrollbar-width: none;
}

.vex-day-chips::-webkit-scrollbar { display: none; }

.vex-day-chips button {
  min-width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: transparent;
  color: #aeb7ce;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}

.vex-day-chips button:hover {
  color: white;
  border-color: rgb(255 255 255 / 16%);
}

.vex-day-chips button.is-selected {
  background: #6579fb;
  color: white;
  border-color: #6579fb;
  box-shadow: 0 7px 18px rgb(82 104 246 / 30%);
}

.vex-board__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 1rem;
}

.vex-chart-card,
.vex-detail {
  background: rgb(255 255 255 / 5.5%);
  border: 1px solid var(--vex-dark-line);
  border-radius: 22px;
  backdrop-filter: blur(12px);
}

.vex-chart-card {
  min-width: 0;
  padding: 1.2rem 1.2rem .95rem;
}

.vex-chart-head {
  display: flex;
  min-height: 74px;
  margin-bottom: .6rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.vex-chart-head span {
  display: block;
  margin-bottom: .22rem;
  color: #8794b6;
  font-size: .69rem;
  font-weight: 720;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.vex-chart-head h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: -.035em;
}

.vex-chart-head p {
  margin: .42rem 0 0;
  color: #9ea8c2;
  font-size: .8rem;
}

.vex-chart-total {
  flex: 0 0 auto;
  text-align: right;
}

.vex-chart-total strong {
  display: block;
  color: white;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  letter-spacing: -.03em;
  line-height: 1.05;
}

.vex-chart-total span {
  margin-top: .25rem;
  color: #7f8aa9;
  font-size: .68rem;
  text-transform: none;
  letter-spacing: 0;
}

.vex-plot-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: rgb(255 255 255 / 16%) transparent;
  scrollbar-width: thin;
}

.vex-plot {
  position: relative;
  min-width: 100%;
  height: 350px;
}

.vex-plot.is-long { min-width: 960px; }

.vex-plot.vex-count-1 { --vex-count: 1; }
.vex-plot.vex-count-3 { --vex-count: 3; }
.vex-plot.vex-count-5 { --vex-count: 5; }
.vex-plot.vex-count-10 { --vex-count: 10; }
.vex-plot.vex-count-24 { --vex-count: 24; }
.vex-plot.vex-count-30 { --vex-count: 30; }

.vex-gridlines {
  position: absolute;
  inset: 18px 12px 48px 48px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}

.vex-gridlines i {
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.vex-gridlines i:last-child {
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.vex-axis {
  position: absolute;
  inset: 13px auto 42px 0;
  display: flex;
  width: 42px;
  flex-direction: column;
  justify-content: space-between;
  color: #687492;
  font-size: .62rem;
  line-height: 1;
  text-align: right;
  pointer-events: none;
}

.vex-trend {
  position: absolute;
  z-index: 2;
  inset: 18px 12px 48px 48px;
  width: calc(100% - 60px);
  height: calc(100% - 66px);
  overflow: visible;
  pointer-events: none;
}

.vex-trend polygon {
  fill: url(#vex-trend-fill);
}

.vex-trend polyline {
  fill: none;
  stroke: #8494ff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 8px rgb(108 126 255 / 45%));
}

.vex-bars {
  position: absolute;
  z-index: 3;
  inset: 18px 12px 0 48px;
  display: grid;
  grid-template-columns: repeat(var(--vex-count, 10), minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(3px, .7vw, 8px);
}

.vex-bar {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0;
  grid-template-rows: 28px minmax(0, 1fr) 20px 26px;
  align-items: end;
  background: transparent;
  color: #8d98b4;
  border: 0;
  text-align: center;
  cursor: pointer;
}

.vex-bar__value {
  position: relative;
  z-index: 1;
  align-self: center;
  overflow: hidden;
  color: #aab4cf;
  font-size: .63rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity .15s ease, color .15s ease;
}

.vex-bar:hover .vex-bar__value,
.vex-bar:focus-visible .vex-bar__value,
.vex-bar.is-selected .vex-bar__value {
  color: white;
  opacity: 1;
}

.vex-app[data-view-mode="days"] .vex-bar__value {
  color: #e5eafe;
  font-size: .68rem;
  opacity: 1;
}

.vex-bar__column {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 0;
  align-self: stretch;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.vex-bar__column svg {
  width: min(72%, 46px);
  height: 100%;
  overflow: visible;
}

.vex-app[data-view-mode="days"] .vex-bar__column svg {
  width: min(58%, 74px);
}

.vex-bar__column rect {
  fill: #5e74f6;
  opacity: .78;
  transition: y .36s cubic-bezier(.22,.78,.26,1), height .36s cubic-bezier(.22,.78,.26,1), fill .16s ease, opacity .16s ease;
}

.vex-bar:hover .vex-bar__column rect,
.vex-bar:focus-visible .vex-bar__column rect {
  fill: #7f90ff;
  opacity: .9;
}

.vex-bar.is-selected .vex-bar__column rect {
  fill: #58d9cb;
  opacity: 1;
  filter: drop-shadow(0 0 7px rgb(80 215 200 / 30%));
}

.vex-bar.is-empty .vex-bar__column rect {
  opacity: .16;
}

.vex-bar__label {
  position: relative;
  z-index: 1;
  align-self: center;
  color: #bbc3d8;
  font-size: .68rem;
  font-weight: 720;
  line-height: 1;
}

.vex-app[data-view-mode="days"] .vex-bar__label {
  color: #d9e0f4;
  font-size: .72rem;
  white-space: nowrap;
}

.vex-bar small {
  position: relative;
  z-index: 1;
  align-self: start;
  overflow: hidden;
  color: #687491;
  font-size: .58rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vex-bar.is-selected .vex-bar__label,
.vex-bar.is-selected small {
  color: white;
}

.vex-app[data-view-mode="days"] .vex-tooltip {
  display: none;
}

.vex-tooltip {
  position: absolute;
  z-index: 15;
  top: 14px;
  right: 14px;
  min-width: 140px;
  padding: .65rem .75rem;
  background: white;
  color: #12182b;
  border: 1px solid #e4e8f2;
  border-radius: 11px;
  box-shadow: 0 14px 35px rgb(0 0 0 / 22%);
  pointer-events: none;
}

.vex-tooltip strong,
.vex-tooltip span {
  display: block;
}

.vex-tooltip strong {
  font-size: .82rem;
}

.vex-tooltip span {
  margin-top: .12rem;
  color: #727a8c;
  font-size: .68rem;
}

.vex-detail {
  display: flex;
  min-height: 424px;
  padding: 1.2rem;
  overflow: hidden;
  flex-direction: column;
}

.vex-detail__top > span {
  display: block;
  margin-bottom: .35rem;
  color: #8f9ab8;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.vex-detail__top h3 {
  margin: 0;
  color: white;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  letter-spacing: -.04em;
}

.vex-detail__top p {
  margin: .38rem 0 0;
  color: #9ca7c2;
  font-size: .78rem;
}

.vex-share {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  margin: .7rem auto .55rem;
  place-items: center;
}

.vex-share svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.vex-share circle {
  fill: none;
  stroke-width: 10;
}

.vex-share__track { stroke: rgb(255 255 255 / 8%); }

.vex-share__value {
  stroke: #58d9cb;
  stroke-linecap: round;
  transition: stroke-dasharray .35s cubic-bezier(.22,.78,.26,1);
  filter: drop-shadow(0 0 7px rgb(80 215 200 / 35%));
}

.vex-share > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.vex-share strong,
.vex-share span {
  display: block;
}

.vex-share strong {
  color: white;
  font-size: 1.35rem;
  letter-spacing: -.03em;
  line-height: 1;
}

.vex-share span {
  margin-top: .22rem;
  color: #808daa;
  font-size: .65rem;
}

.vex-detail__stats {
  display: grid;
  margin: 0 0 .9rem;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .5rem;
}

.vex-detail__stats div {
  min-width: 0;
  padding: .7rem;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 12px;
}

.vex-detail__stats dt {
  overflow: hidden;
  color: #7f8ba8;
  font-size: .61rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vex-detail__stats dd {
  margin: .28rem 0 0;
  overflow: hidden;
  color: white;
  font-size: .94rem;
  font-weight: 720;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vex-open-hours {
  display: flex;
  min-height: 45px;
  margin-top: auto;
  padding: .7rem .85rem;
  align-items: center;
  justify-content: space-between;
  background: #6379fa;
  color: white;
  border: 1px solid #6379fa;
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.vex-open-hours:hover {
  background: #7286ff;
  box-shadow: 0 10px 24px rgb(82 104 246 / 28%);
  transform: translateY(-1px);
}

.vex-open-hours svg {
  width: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vex-segments {
  margin-top: .15rem;
  padding-top: .65rem;
  flex: 0 0 auto;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.vex-segments__head {
  display: flex;
  margin-bottom: .5rem;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.vex-segments__head span {
  color: white;
  font-size: .76rem;
  font-weight: 700;
}

.vex-segments__head small {
  color: #7f8aa8;
  font-size: .63rem;
}

.vex-segments__grid {
  display: grid;
  height: 68px;
  grid-template-columns: repeat(6, minmax(0,1fr));
  align-items: end;
  gap: .3rem;
}

.vex-segment {
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  grid-template-rows: 14px minmax(0,1fr) 16px;
  align-items: end;
  text-align: center;
}

.vex-segment b {
  overflow: hidden;
  color: #d7dcf0;
  font-size: .53rem;
  line-height: 1;
  text-overflow: ellipsis;
}

.vex-segment svg {
  display: block;
  width: min(62%, 18px);
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  overflow: hidden;
}

.vex-segment rect {
  fill: #58d9cb;
  opacity: .76;
}

.vex-segment span {
  overflow: hidden;
  color: #727f9d;
  font-size: .47rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vex-table-details {
  margin-top: 1rem;
  overflow: hidden;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 15px;
}

.vex-table-details summary {
  display: flex;
  min-height: 50px;
  padding: .8rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #c8d0e4;
  font-size: .8rem;
  font-weight: 680;
  list-style: none;
  cursor: pointer;
}

.vex-table-details summary::-webkit-details-marker { display: none; }

.vex-table-details summary:hover { color: white; }

.vex-table-details summary svg {
  width: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .16s ease;
}

.vex-table-details[open] summary svg { transform: rotate(180deg); }

.vex-table-wrap {
  max-height: 440px;
  overflow: auto;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.vex-table {
  min-width: 580px;
}

.vex-table th,
.vex-table td {
  padding: .72rem 1rem;
  color: #b7c0d7;
  border-color: rgb(255 255 255 / 7%);
  font-size: .75rem;
}

.vex-table thead th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #161e36;
  color: #7f8aa8;
  font-size: .62rem;
}

.vex-table tbody tr:hover td { background: rgb(255 255 255 / 3%); }

.vex-bottom {
  display: flex;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background: white;
  border: 1px solid #e2e6ef;
  border-radius: 18px;
  box-shadow: 0 14px 42px rgb(35 45 83 / 6%);
}

.vex-note {
  display: flex;
  max-width: 690px;
  align-items: flex-start;
  gap: .7rem;
}

.vex-note svg {
  width: 20px;
  flex: 0 0 auto;
  margin-top: .1rem;
  fill: none;
  stroke: #6474d8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vex-note p {
  margin: 0;
  color: #687084;
  font-size: .78rem;
  line-height: 1.5;
}

.vex-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .75rem;
}

.vex-actions .button { min-height: 44px; padding: .7rem .95rem; }
.vex-actions .text-link { font-size: .8rem; }

@media (prefers-reduced-motion: no-preference) {
  .vex-chart-card.is-refreshing .vex-bar__column rect {
    animation: vex-bar-pulse .44s ease;
  }
  @keyframes vex-bar-pulse {
    0% { opacity: .25; }
    100% { opacity: 1; }
  }
}

@media (max-width: 1080px) {
  .vex-controls {
    grid-template-columns: minmax(210px, 1fr) minmax(320px, 1.5fr);
  }
  .vex-control--variant { min-height: 110px; }
  .vex-board__grid { grid-template-columns: minmax(0,1fr) 260px; }
}

@media (max-width: 860px) {
  .vex-pagehead__mark { display: none; }
  .vex-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .vex-summary article:nth-child(3) { border-left: 0; border-top: 1px solid #e7eaf1; }
  .vex-summary article:nth-child(4) { border-top: 1px solid #e7eaf1; }
  .vex-board__toolbar { align-items: flex-start; flex-direction: column; }
  .vex-day-nav { width: 100%; }
  .vex-day-chips { max-width: none; flex: 1 1 auto; }
  .vex-board__grid { grid-template-columns: 1fr; }
  .vex-detail { min-height: 0; }
  .vex-detail {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) 132px minmax(190px,.9fr);
    align-items: center;
    gap: 1rem;
  }
  .vex-detail__stats { margin: 0; }
  .vex-open-hours { margin-top: .7rem; }
  .vex-segments { grid-column: 1 / -1; margin-top: 0; }
}

@media (max-width: 720px) {
  .vex-page { padding-top: 1.8rem; }
  .vex-pagehead { margin-bottom: 1.25rem; }
  .vex-pagehead h1 { font-size: clamp(2.2rem, 10.5vw, 3.15rem); }
  .vex-pagehead p { font-size: .98rem; }
  .vex-controls { grid-template-columns: 1fr; padding: .75rem; border-radius: 20px; }
  .vex-control { padding: .8rem; }
  .vex-control--variant { min-height: auto; }
  .vex-variant { min-height: 48px; }
  .vex-duration span { min-height: 62px; }
  .vex-board { border-radius: 22px; }
  .vex-chart-card { padding: 1rem .75rem .7rem; }
  .vex-chart-head { padding-inline: .25rem; }
  .vex-chart-head p { max-width: 30ch; }
  .vex-plot { min-width: 100%; height: 325px; }
  .vex-plot.is-long { min-width: 920px; }
  .vex-detail { display: flex; }
  .vex-share { width: 108px; height: 108px; }
  .vex-bottom { align-items: stretch; flex-direction: column; }
  .vex-actions { justify-content: space-between; }
}

@media (max-width: 520px) {
  .vex-page .container { width: min(calc(100% - 1rem), var(--container)); }
  .vex-kicker { font-size: .68rem; }
  .vex-pagehead h1 { letter-spacing: -.06em; }
  .vex-presets { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
  .vex-presets button { padding-inline: .2rem; }
  .vex-summary article { padding: .85rem .8rem; }
  .vex-summary strong { font-size: 1.18rem; }
  .vex-board { padding: .72rem; }
  .vex-view-switch { width: 100%; }
  .vex-view-switch button { min-width: 0; flex: 1 1 50%; }
  .vex-day-nav > button { width: 36px; height: 36px; }
  .vex-chart-head { align-items: flex-start; }
  .vex-chart-total { max-width: 110px; }
  .vex-chart-head h2 { font-size: 1.35rem; }
  .vex-chart-total strong { font-size: 1.16rem; }
  .vex-app[data-view-mode="days"] .vex-bar {
    grid-template-rows: 26px minmax(0, 1fr) 24px;
  }
  .vex-app[data-view-mode="days"] .vex-bar__label,
  .vex-app[data-view-mode="days"] .vex-bar small {
    display: none;
  }
  .vex-app[data-view-mode="days"] .vex-bar__value {
    opacity: 0;
  }
  .vex-app[data-view-mode="days"] .vex-bar:hover .vex-bar__value,
  .vex-app[data-view-mode="days"] .vex-bar:focus-visible .vex-bar__value,
  .vex-app[data-view-mode="days"] .vex-bar.is-selected .vex-bar__value {
    opacity: 1;
  }
  .vex-app[data-view-mode="days"] .vex-bar::after {
    content: attr(data-chart-index);
    position: relative;
    z-index: 1;
    grid-row: 3;
    align-self: center;
    color: #8d98b4;
    font-size: .66rem;
    font-weight: 760;
    line-height: 1;
  }
  .vex-app[data-view-mode="days"] .vex-bar.is-selected::after {
    color: white;
  }
  .vex-detail { padding: 1rem; }
  .vex-actions { align-items: stretch; flex-direction: column; }
  .vex-actions .button, .vex-actions .text-link { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .vex-page *, .vex-page *::before, .vex-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
