input[type="date"], input[type="month"] {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2.5' y='3.5' width='11' height='10' rx='1.5' fill='none' stroke='%23777' stroke-width='1.3'/%3E%3Cpath d='M2.5 6.75h11M5.5 2v3M10.5 2v3' fill='none' stroke='%23777' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important; background-position:right var(--sp-4) center !important; background-size:14px !important;
  padding-right:calc(var(--sp-4) + 1.4rem) !important; cursor:pointer; font-variant-numeric:tabular-nums;
}
input[type="date"]::-webkit-calendar-picker-indicator, input[type="month"]::-webkit-calendar-picker-indicator { display:none; }
input[type="date"]:disabled, input[type="month"]:disabled { cursor:default; }

.dpk-pop { position:fixed; z-index:calc(var(--z-overlay) + 1); box-sizing:border-box; width:max-content; max-width:calc(100vw - 16px);
  padding:var(--sp-6); background:var(--surface); color:var(--text); border:1px solid var(--border-strong);
  border-radius:var(--win-radius); box-shadow:var(--shadow-3); font-family:inherit; font-size:var(--fs-md); }
.dpk-scrim { position:fixed; inset:0; z-index:var(--z-overlay); background:var(--win-overlay); }
.dpk-body { min-height:calc(2.25rem * 6 + 4.5rem); }
.dpk-h { display:flex; align-items:center; gap:var(--sp-1); height:2.25rem; margin-bottom:var(--sp-3); }
.dpk-t { flex:1; display:flex; justify-content:center; gap:var(--sp-1); min-width:0; }

.dpk-nav { width:2.25rem; height:2.25rem; flex:none; display:inline-grid; place-items:center; justify-content:center; padding:0; border:0; border-radius:50%;
  background:none; color:var(--text-secondary); font-size:var(--fs-sm); cursor:pointer; transition:background-color .14s ease, color .14s ease; }
.dpk-nav:hover { background:var(--hover-tint); color:var(--text); }
.dpk-nav:active { background:var(--press-tint); transform:translateY(1px); }
.dpk-zoom { padding:var(--sp-2) var(--sp-4); border:0; border-radius:var(--r-md); background:none; color:var(--text);
  font:inherit; font-size:var(--fs-lg); font-weight:var(--fw-semibold); cursor:pointer; white-space:nowrap; }
.dpk-zoom:hover { background:var(--hover-tint); }
.dpk-span, .dpk-span:hover { cursor:default; background:none; }
.dpk-dow, .dpk-grid { display:grid; grid-template-columns:repeat(7, 2.25rem); user-select:none; }
.dpk-dow span { padding-bottom:var(--sp-2); text-align:center; font-size:var(--fs-xs); color:var(--text-muted); }
.dpk-d { position:relative; height:2.25rem; padding:0; border:0; border-radius:var(--r-lg); background:none; color:var(--text);
  font-family:var(--font-mono); font-size:var(--fs-md); font-weight:var(--fw-medium); cursor:pointer; }
.dpk-d:hover { background:var(--hover-tint); }
.dpk-d:active { transform:translateY(1px); }
.dpk-d:focus-visible { outline:none; box-shadow:inset 0 0 0 2px var(--accent); }
.dpk-d:disabled { color:var(--text-muted); opacity:.4; cursor:not-allowed; }
.dpk-we { color:var(--text-muted); }
.dpk-today { font-weight:var(--fw-bold); }
.dpk-today::after { content:''; position:absolute; left:50%; bottom:4px; width:4px; height:4px; margin-left:-2px; border-radius:50%; background:var(--accent); }
.dpk-sel, .dpk-sel:hover { background:var(--accent); color:var(--on-accent); font-weight:var(--fw-bold); }
.dpk-sel.dpk-today::after, .dpk-on.dpk-today::after { background:var(--on-accent); }
.dpk-out { visibility:hidden; }
.dpk-zgrid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:var(--sp-3); width:calc(2.25rem * 7); }
.dpk-zi { position:relative; height:2.5rem; border:1px solid var(--border); border-radius:var(--r-lg); background:var(--surface); color:var(--text);
  font:inherit; font-size:var(--fs-md); cursor:pointer; white-space:nowrap; transition:border-color .14s ease; }
.dpk-zi:hover { border-color:var(--accent-mid); }
.dpk-zi:active { transform:translateY(1px); }
.dpk-on, .dpk-on:hover { background:var(--accent); border-color:var(--accent); color:var(--on-accent); font-weight:var(--fw-semibold); }
.dpk-foot { display:flex; align-items:center; gap:var(--sp-4); margin-top:var(--sp-5); padding-top:var(--sp-4); border-top:1px solid var(--border); }
.dpk-words { margin-right:auto; font-size:var(--fs-sm); color:var(--text-muted); white-space:nowrap; }
.dpk-link { padding:var(--sp-2) var(--sp-4); border:0; border-radius:var(--r-md); background:none; color:var(--accent);
  font:inherit; font-size:var(--fs-md); font-weight:var(--fw-semibold); cursor:pointer; white-space:nowrap; }
.dpk-link:hover { background:var(--hover-tint); }
.dpk-link:active { background:var(--press-tint); transform:translateY(1px); }
.dpk-quiet { color:var(--text-secondary); font-weight:var(--fw-normal); }
.dpk-quiet:hover { color:var(--neg); }

.dpk-pop.dpk-sheet { left:0; right:0; bottom:0; top:auto; width:auto; margin:0 auto; max-width:30rem;
  border-bottom:0; border-radius:var(--r-2xl) var(--r-2xl) 0 0;
  padding:var(--sp-5) max(var(--sp-7), env(safe-area-inset-right, 0px)) calc(var(--sp-7) + env(safe-area-inset-bottom, 0px)) max(var(--sp-7), env(safe-area-inset-left, 0px)); }
.dpk-sheet::before { content:''; display:block; width:36px; height:4px; margin:0 auto var(--sp-5); border-radius:2px; background:var(--border-strong); }
.dpk-sheet .dpk-dow, .dpk-sheet .dpk-grid { grid-template-columns:repeat(7, minmax(0, 1fr)); }
.dpk-sheet .dpk-d { height:44px; font-size:var(--fs-xl); border-radius:var(--r-xl); }
.dpk-sheet .dpk-nav { width:44px; height:44px; }
.dpk-sheet .dpk-h { height:44px; }
.dpk-sheet .dpk-body { min-height:calc(44px * 6 + 5.5rem); }
.dpk-sheet .dpk-zgrid { width:auto; }
.dpk-sheet .dpk-zi { height:48px; font-size:var(--fs-lg); }
.dpk-sheet .dpk-link { padding:var(--sp-5) var(--sp-6); font-size:var(--fs-lg); }

.dpk-mon .dpk-body { min-height:0; }
@media (prefers-reduced-motion: reduce){ .dpk-nav, .dpk-zi { transition:none; } }
