:root {
  --vpt-navy: #07152a;
  --vpt-blue: #2563eb;
  --vpt-cyan: #35b9e9;
  --vpt-ink: #12213a;
  --vpt-muted: #64748b;
  --vpt-line: #dce5f0;
  --vpt-soft: #f7f9fc;
  --vpt-white: #ffffff;
  --vpt-green: #16845b;
  --vpt-amber: #a76509;
  --vpt-radius: 22px;
}

.vpt,
.vpt * {
  box-sizing: border-box;
}

.vpt {
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto 64px;
  color: var(--vpt-ink);
  font-family: inherit;
}

.vpt button,
.vpt input,
.vpt select {
  font: inherit;
}

.vpt__header {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.vpt__brandmark {
  display: grid;
  width: 86px;
  height: 72px;
  margin: 0 auto 14px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--vpt-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 21, 42, 0.08);
}

.vpt__brandmark img {
  display: block;
  width: 74px;
  height: auto;
  max-height: 66px;
  object-fit: contain;
}

.vpt__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--vpt-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.vpt__header h1 {
  margin: 0;
  color: var(--vpt-navy);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.vpt__header p {
  margin: 18px auto 0;
  color: var(--vpt-muted);
  font-size: 17px;
  line-height: 1.6;
}

.vpt__notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 15px 18px;
  border: 1px solid #c9dcf7;
  border-radius: 14px;
  background: #f1f7ff;
  color: #30435f;
  font-size: 13px;
  line-height: 1.55;
}

.vpt__notice p {
  margin: 0;
}

.vpt__notice-icon {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--vpt-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.vpt__storage-note {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 9px 13px;
  border: 1px solid var(--vpt-line);
  border-radius: 12px;
  background: var(--vpt-white);
  color: var(--vpt-muted);
  font-size: 12px;
}

.vpt__storage-dot {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--vpt-amber);
  box-shadow: 0 0 0 4px rgba(167, 101, 9, 0.1);
}

.vpt__storage-note.is-synced .vpt__storage-dot {
  background: var(--vpt-green);
  box-shadow: 0 0 0 4px rgba(22, 132, 91, 0.1);
}

.vpt__storage-note a {
  margin-left: auto;
  color: var(--vpt-blue);
  font-weight: 800;
  text-decoration: none;
}

.vpt__storage-note a[hidden] {
  display: none;
}

.vpt__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.vpt__stats > div {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid var(--vpt-line);
  border-radius: 15px;
  background: var(--vpt-white);
  box-shadow: 0 10px 28px rgba(7, 21, 42, 0.05);
}

.vpt__stats > div::after {
  position: absolute;
  top: -28px;
  right: -20px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.07);
  content: "";
}

.vpt__stats span,
.vpt__stats strong {
  display: block;
}

.vpt__stats span {
  color: var(--vpt-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vpt__stats strong {
  margin-top: 4px;
  color: var(--vpt-navy);
  font-size: 30px;
  line-height: 1;
}

.vpt__workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(450px, 1.22fr);
  overflow: hidden;
  border: 1px solid var(--vpt-line);
  border-radius: var(--vpt-radius);
  background: var(--vpt-white);
  box-shadow: 0 24px 60px rgba(7, 21, 42, 0.09);
}

.vpt__form-panel,
.vpt__agenda {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
}

.vpt__form-panel {
  border-right: 1px solid var(--vpt-line);
  background:
    radial-gradient(circle at 0% 0%, rgba(53, 185, 233, 0.12), transparent 30%),
    linear-gradient(155deg, #f8fbff 0%, #eef5fc 100%);
}

.vpt__section-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 22px;
}

.vpt__section-heading > span {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--vpt-navy);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.vpt__section-heading h2,
.vpt__agenda-heading h2 {
  margin: 0;
  color: var(--vpt-navy);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.vpt__section-heading p {
  margin: 5px 0 0;
  color: var(--vpt-muted);
  font-size: 13px;
  line-height: 1.45;
}

.vpt__form {
  display: grid;
  gap: 15px;
}

.vpt__field {
  display: block;
  min-width: 0;
}

.vpt__field[hidden] {
  display: none;
}

.vpt__field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--vpt-ink);
  font-size: 12px;
  font-weight: 800;
}

.vpt__field input,
.vpt__field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--vpt-line);
  border-radius: 11px;
  background: #fff;
  color: var(--vpt-ink);
}

.vpt__field input:focus,
.vpt__field select:focus {
  border-color: var(--vpt-blue);
  outline: 3px solid rgba(37, 99, 235, 0.12);
}

.vpt__dose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

.vpt__form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 3px;
}

.vpt__button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.vpt__button--primary {
  border: 1px solid var(--vpt-navy);
  background: var(--vpt-navy);
  color: #fff;
}

.vpt__button--secondary {
  border: 1px solid var(--vpt-blue);
  background: #fff;
  color: var(--vpt-blue);
}

.vpt__button:focus-visible,
.vpt__cancel-edit:focus-visible,
.vpt__tabs button:focus-visible,
.vpt__entry-action:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.vpt__cancel-edit {
  grid-column: 1 / -1;
  border: 0;
  background: transparent;
  color: var(--vpt-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.vpt__cancel-edit[hidden] {
  display: none;
}

.vpt__form-message {
  min-height: 18px;
  margin: 0;
  color: var(--vpt-muted);
  font-size: 12px;
  line-height: 1.45;
}

.vpt__form-message.is-error {
  color: #b42318;
}

.vpt__form-message.is-success {
  color: var(--vpt-green);
}

.vpt__agenda {
  background: var(--vpt-white);
}

.vpt__agenda-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.vpt__agenda-heading > div > span {
  display: block;
  margin-bottom: 6px;
  color: var(--vpt-blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.vpt__save-state {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf7f2;
  color: var(--vpt-green);
  font-size: 10px;
  font-weight: 800;
}

.vpt__save-state.is-saving {
  background: #fff6e7;
  color: var(--vpt-amber);
}

.vpt__save-state.is-error {
  background: #fff0ee;
  color: #b42318;
}

.vpt__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 20px;
  padding: 5px;
  border-radius: 13px;
  background: #eef3f8;
}

.vpt__tabs button {
  min-height: 39px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--vpt-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.vpt__tabs button.is-selected {
  background: #fff;
  color: var(--vpt-navy);
  box-shadow: 0 3px 12px rgba(7, 21, 42, 0.08);
}

.vpt__entries {
  display: grid;
  gap: 10px;
}

.vpt__date-heading {
  margin: 8px 0 1px;
  color: var(--vpt-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.vpt__entry {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--vpt-line);
  border-radius: 14px;
  background: var(--vpt-white);
  transition: border-color 160ms ease, transform 160ms ease;
}

.vpt__entry:hover {
  border-color: #aacbfb;
  transform: translateY(-1px);
}

.vpt__entry.is-completed {
  border-color: #cbe6d9;
  background: #fbfefc;
}

.vpt__entry-time {
  display: grid;
  min-height: 55px;
  place-items: center;
  padding: 6px 3px;
  border-radius: 10px;
  background: #edf4ff;
  color: #1747a6;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.vpt__entry-main {
  min-width: 0;
}

.vpt__entry-main h3 {
  overflow: hidden;
  margin: 0;
  color: var(--vpt-navy);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vpt__entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 5px;
}

.vpt__entry-dose {
  color: var(--vpt-muted);
  font-size: 12px;
  font-weight: 750;
}

.vpt__status {
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1747a6;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vpt__status--completed {
  background: #e9f7f0;
  color: var(--vpt-green);
}

.vpt__status--due {
  background: #fff5e5;
  color: var(--vpt-amber);
}

.vpt__entry-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 170px;
}

.vpt__entry-action {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--vpt-line);
  border-radius: 8px;
  background: #fff;
  color: var(--vpt-ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.vpt__entry-action--complete {
  border-color: var(--vpt-blue);
  background: var(--vpt-blue);
  color: #fff;
}

.vpt__entry-action--delete {
  color: #9b2c24;
}

.vpt__empty {
  min-height: 240px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  border: 1px dashed var(--vpt-line);
  border-radius: 15px;
  color: var(--vpt-muted);
  text-align: center;
}

.vpt__empty:not([hidden]) {
  display: flex;
}

.vpt__empty > span {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 16px;
  background: var(--vpt-navy);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.vpt__empty strong {
  color: var(--vpt-navy);
  font-size: 15px;
}

.vpt__empty p {
  margin: 5px 0 0;
  font-size: 12px;
}

.vpt__disclaimer {
  max-width: 840px;
  margin: 18px auto 0;
  color: var(--vpt-muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

html.voyage-night-mode .vpt {
  --vpt-ink: #e8eef7;
  --vpt-muted: #9fb0c6;
  --vpt-line: #26364d;
  --vpt-soft: #101f34;
  --vpt-white: #0d1b2f;
}

html.voyage-night-mode .vpt__header h1,
html.voyage-night-mode .vpt__stats strong,
html.voyage-night-mode .vpt__section-heading h2,
html.voyage-night-mode .vpt__agenda-heading h2,
html.voyage-night-mode .vpt__entry-main h3,
html.voyage-night-mode .vpt__empty strong {
  color: #f7faff;
}

html.voyage-night-mode .vpt__notice {
  border-color: #29486d;
  background: #0e223b;
  color: #c1d2e7;
}

html.voyage-night-mode .vpt__form-panel {
  background:
    radial-gradient(circle at 0% 0%, rgba(53, 185, 233, 0.13), transparent 30%),
    linear-gradient(155deg, #101f34 0%, #0b182b 100%);
}

html.voyage-night-mode .vpt__field input,
html.voyage-night-mode .vpt__field select,
html.voyage-night-mode .vpt__entry-action {
  background: #101f34;
  color: #e8eef7;
}

html.voyage-night-mode .vpt__tabs {
  background: #07152a;
}

html.voyage-night-mode .vpt__tabs button.is-selected {
  background: #152840;
  color: #fff;
}

html.voyage-night-mode .vpt__entry.is-completed {
  border-color: #245d49;
  background: #10261f;
}

html.voyage-night-mode .vpt__entry-time {
  background: #142d52;
  color: #cce1ff;
}

@media (max-width: 900px) {
  .vpt__workspace {
    grid-template-columns: 1fr;
  }

  .vpt__form-panel {
    border-right: 0;
    border-bottom: 1px solid var(--vpt-line);
  }
}

@media (max-width: 650px) {
  .vpt {
    width: min(100% - 12px, 520px);
    margin-top: 24px;
    margin-bottom: 40px;
  }

  .vpt__brandmark {
    width: 76px;
    height: 64px;
  }

  .vpt__brandmark img {
    width: 65px;
    max-height: 58px;
  }

  .vpt__header h1 {
    font-size: 36px;
  }

  .vpt__header p {
    font-size: 15px;
  }

  .vpt__notice {
    padding: 13px;
  }

  .vpt__storage-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .vpt__storage-note a {
    width: 100%;
    margin-left: 18px;
  }

  .vpt__stats {
    gap: 7px;
  }

  .vpt__stats > div {
    padding: 14px 12px;
  }

  .vpt__stats span {
    min-height: 27px;
    font-size: 9px;
  }

  .vpt__stats strong {
    font-size: 25px;
  }

  .vpt__form-panel,
  .vpt__agenda {
    padding: 21px 14px;
  }

  .vpt__dose-row {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .vpt__form-actions {
    grid-template-columns: 1fr;
  }

  .vpt__cancel-edit {
    grid-column: auto;
  }

  .vpt__entry {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
  }

  .vpt__entry-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
  }

  .vpt__entry-action {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .vpt__tabs button {
    padding: 6px 3px;
    font-size: 11px;
  }

  .vpt__entry-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vpt__entry-action--complete {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vpt *,
  .vpt *::before,
  .vpt *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
