/* Escape Velocity — the calendar for date boxes (datepick.js). Colours come from the theme variables. The box looks like the other boxes; the
   calendar is a card under it with a day grid, month and year lists, a line in words about the chosen day, and a clear "Set date" button. */
.evd-btn { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; height: var(--ctl-h, 2.85rem); min-width: 0; padding: .6rem .85rem; text-align: left;
  background: var(--card-solid); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer; }
.evd-btn:hover { border-color: var(--brand); }
.evd-btn.empty .evd-val { color: var(--muted); }
.evd-btn[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.evd-btn:disabled { opacity: .72; cursor: not-allowed; }
.evd-ic { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.evd-pop { position: absolute; z-index: 400; width: min(21rem, calc(100vw - 1rem)); padding: .8rem .9rem .9rem; border-radius: 16px; background: var(--card-solid); color: var(--ink);
  border: 1.5px solid var(--brand); box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.evd-head { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 5.2rem 2.4rem; gap: .4rem; align-items: center; }
.evd-nav { height: 2.4rem; border-radius: 10px; border: 1px solid var(--line); background: var(--chip); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.evd-nav:hover:not(:disabled) { border-color: var(--brand); }
.evd-nav:disabled { opacity: .4; cursor: default; }
.evd-sel { height: 2.4rem; padding: .3rem .5rem; font-size: .98rem; font-weight: 600; border-radius: 10px; }
.evd-dow { display: grid; grid-template-columns: repeat(7, 1fr); margin: .7rem 0 .2rem; text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); }
.evd-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .15rem; }
.evd-gap { height: 2.4rem; }
.evd-day { height: 2.4rem; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--ink); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.evd-day:hover:not(:disabled) { background: var(--chip); border-color: var(--line); }
.evd-day.today { border-color: var(--muted); }
.evd-day.sel { background: linear-gradient(90deg, var(--btn-g1, var(--g1)), var(--btn-g2, var(--g2))); border-color: transparent; color: var(--on-primary, #fff); font-weight: 800; }
.evd-day:disabled { opacity: .35; cursor: default; }
.evd-sum { display: grid; gap: .1rem; min-height: 2.9rem; margin: .8rem 0 0; padding: .55rem .75rem; border-radius: 10px; background: var(--chip); font-size: .95rem; }
.evd-sum span { color: var(--muted); }
.evd-foot { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-top: .8rem; }
.evd-foot > :first-child { margin-right: auto; }
.evd-foot .linkbtn { color: var(--brand); }
.evd-pop button:focus-visible, .evd-pop select:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.is-locked [data-act] .evd-btn:disabled { pointer-events: none; }
@media print { .evd-pop { display: none; } }
