/* Layout and input sizing belong to each form; interaction/display are shared. */
[data-exact-date-field] { position: relative; min-width: 0; }
[data-exact-date-display] {
    position: absolute;
    top: 50%;
    left: var(--exact-date-display-left, 11.5px);
    right: 40px;
    transform: translateY(-50%);
    overflow: hidden;
    color: #222;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
}
[data-exact-date-field].is-empty [data-exact-date-display] { color: #707070; }
[data-exact-date-field].has-date-display:not(:focus-within) input,
[data-exact-date-field].is-empty:not(:focus-within) input,
[data-exact-date-field].has-date-display:not(:focus-within) input::-webkit-datetime-edit,
[data-exact-date-field].is-empty:not(:focus-within) input::-webkit-datetime-edit { color: transparent; }
[data-exact-date-field]:focus-within [data-exact-date-display],
[data-exact-date-display][hidden] { display: none; }

[data-exact-date-field] input[type="date"] {
    cursor: pointer;
    border: 1.5px solid #c9d3e3;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
[data-exact-date-field] input[type="date"]:hover {
    border-color: #8db2e5;
    background: #f8fbff;
}
[data-exact-date-field] input[type="date"]:focus,
[data-exact-date-field] input[type="date"]:focus-visible {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
    background: #f8fbff;
}
[data-exact-date-field] input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }
[data-exact-date-field] input[type="date"][aria-invalid="true"] { border-color: #b42318; }
