/* Preserve each field's existing dimensions; reserve room for one clear picker. */
.hq-date-control{position:relative;display:block;min-width:0;width:100%;max-width:100%}
.hq-date-control>input{width:100%;min-width:0;max-width:100%;padding-right:35px!important}
.hq-date-control>input::-webkit-calendar-picker-indicator{display:none}
.hq-date-control.hq-date-readonly>input{padding-right:12px!important}
.hq-date-control.hq-date-period{width:190px;flex:0 1 190px}
.hq-date-control.hq-date-period>input{max-width:none}
.hq-date-open{position:absolute;right:2px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:32px;height:36px;min-height:0;padding:0;border:0;border-radius:6px;background:transparent;color:#8b6558;cursor:pointer}
.hq-date-open>svg{width:19px;height:19px;pointer-events:none}
.hq-date-open:hover:not(:disabled){background:#f8eee8;color:#9f342d}
.hq-date-open:focus-visible{outline:2px solid #a65849;outline-offset:-2px}
.hq-date-open:disabled{cursor:default;opacity:.35}
.hq-date-open[hidden]{display:none}
.hq-date-overlay{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:18px;background:#2c211d66;backdrop-filter:blur(3px)}
.hq-date-dialog{width:360px;max-width:100%;max-height:calc(100dvh - 36px);overflow:auto;border:1px solid #e9ddd2;border-radius:16px;background:#fffdf9;box-shadow:0 18px 60px #35221726;padding:20px;color:#3d3029}
.hq-date-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.hq-date-dialog h2{font-size:17px;line-height:1.5;margin:0}
.hq-date-close{font-size:25px;line-height:1;width:34px;height:34px;padding:0;border:0;border-radius:8px;background:transparent;color:#837065;cursor:pointer}
.hq-date-close:hover{background:#f4ece4}
.hq-date-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hq-date-part{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;color:#75665b}
.hq-date-part select{width:100%;min-width:0;max-width:100%;min-height:42px;padding:8px;font-size:15px;border:1px solid #e2d8ce;border-radius:8px;background:#fff;color:#3d3029}
.hq-time-parts{margin-top:14px;grid-template-columns:repeat(auto-fit,minmax(70px,1fr))}
.hq-date-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:16px}
.hq-date-weekday{font-size:11px;color:#928071;text-align:center;padding:4px 0 7px}
.hq-date-calendar button{height:35px;min-width:0;padding:0;border:0;border-radius:8px;font-size:14px;color:#493c33;background:transparent;cursor:pointer}
.hq-date-calendar button:hover:not(:disabled){background:#f4e9df}
.hq-date-calendar button[aria-pressed=true]{background:#9f342d;color:#fff;font-weight:600}
.hq-date-calendar button:disabled{color:#c6bdb4;cursor:default;background:transparent}
.hq-date-dialog button:focus-visible,.hq-date-part select:focus-visible{outline:2px solid #9f342d;outline-offset:2px}
.hq-date-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:17px;padding-top:16px;border-top:1px solid #eee5dc}
.hq-date-dialog footer .btn{min-height:40px;padding:8px 23px;font-size:14px}
.hq-date-dialog button[hidden]{display:none}
.hq-date-dialog .hq-date-error{font-size:12px;line-height:1.6;color:#a13b2e;margin:12px 0 0}
.hq-date-dialog .hq-date-error:empty{display:none}
@media(max-width:760px){
  .hq-date-control.hq-date-period{width:175px;flex-basis:175px}
  .hq-date-control>input{font-size:16px!important}
  label.field:has(>.hq-date-control>input[type="datetime-local"]){grid-column:1/-1;width:100%;flex-basis:100%}
  .hq-date-part select{font-size:16px}
  .hq-date-dialog{padding:18px}
}
@media(prefers-reduced-motion:reduce){.hq-date-overlay{backdrop-filter:none}}
