/* Carousel dark/mint; load after taktora.css. All component selectors are scoped. */
.tk-date {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    vertical-align: middle;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    color: var(--text, #e6f0ed);
    font: inherit;
}
.tk-date[hidden] { display: none; }
.tk-date > .tk-date-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    pointer-events: none;
}
.tk-date-trigger,
.tk-date-popover .tk-date-button {
    box-sizing: border-box;
    appearance: none;
    font: inherit;
    color: var(--text, #e6f0ed);
    background: var(--control-bg, #111c20);
    border: 1px solid var(--border, #2a373c);
    border-radius: var(--control-radius, 9px);
    cursor: pointer;
    line-height: 1.35;
}
.tk-date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: var(--control-height, 40px);
    padding: 7px 10px;
    text-align: left;
}
.tk-date-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-date-icon { color: var(--green, #8ee3bc); font-size: 19px; flex-shrink: 0; line-height: 1; }
.tk-date-trigger:hover:not(:disabled):not([aria-disabled="true"]),
.tk-date-popover .tk-date-button:hover:not(:disabled) { border-color: var(--green, #8ee3bc); }
.tk-date-trigger:focus-visible,
.tk-date-popover .tk-date-button:focus-visible { outline: 2px solid var(--green, #8ee3bc); outline-offset: 2px; }
.tk-date-trigger[aria-invalid="true"] { border-color: var(--danger, #ff938b); }
.tk-date-trigger:disabled,
.tk-date-popover .tk-date-button:disabled { opacity: .4; cursor: not-allowed; }
.tk-date-trigger[aria-disabled="true"]:not(:disabled) { cursor: default; color: var(--text-muted, #99aaae); }
.tk-date-status { width: 100%; font-size: 12px; color: var(--danger, #ff938b); }
.tk-date-status:empty { display: none; }
.tk-date-popover {
    position: fixed;
    z-index: 10000;
    box-sizing: border-box;
    overflow: auto;
    overscroll-behavior: contain;
    width: 320px;
    padding: 12px;
    border: 1px solid var(--border, #2a373c);
    border-radius: 12px;
    background: var(--panel, #182328);
    color: var(--text, #e6f0ed);
    box-shadow: 0 12px 36px #0007;
    font: 14px/1.4 var(--font-new, system-ui, sans-serif);
    color-scheme: dark;
}
.tk-date-header { display: flex; align-items: center; gap: 4px; }
.tk-date-header .tk-date-button { padding: 6px 8px; min-height: 36px; }
.tk-date-header .tk-date-button:nth-child(2) { flex: 1; }
.tk-date-caption { margin: 10px 0; text-align: center; color: var(--text-muted, #99aaae); }
.tk-date-grid { display: grid; gap: 3px; }
.tk-date-grid--days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tk-date-grid--months, .tk-date-grid--years { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-date-grid .tk-date-button { min-width: 0; min-height: 36px; padding: 6px 2px; border-color: transparent; }
.tk-date-grid--months .tk-date-button { font-size: 12px; }
.tk-date-weekday { text-align: center; color: var(--text-muted, #99aaae); padding: 3px 0; font-size: 12px; }
.tk-date-grid .tk-date-button[aria-current="date"] { border-color: var(--green, #8ee3bc); }
.tk-date-grid .tk-date-button[aria-pressed="true"] { background: var(--green, #8ee3bc); color: var(--panel, #182328); font-weight: 700; }
.tk-date-footer { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border, #2a373c); margin-top: 10px; padding-top: 10px; }
.tk-date-footer .tk-date-button { padding: 7px 10px; min-height: 36px; }
@media (pointer: coarse) {
    .tk-date-trigger, .tk-date-popover .tk-date-button { min-height: 44px; }
}
@media (forced-colors: active) {
    .tk-date-grid .tk-date-button[aria-pressed="true"] { outline: 2px solid Highlight; }
}
/* A drawn calendar mark keeps the icon consistent across OS fonts. */
.tk-date-icon { position:relative; width:15px; height:15px; border:1.5px solid currentColor; border-radius:3px; font-size:0; }
.tk-date-icon::before { content:""; position:absolute; left:0; right:0; top:3px; border-top:1.5px solid currentColor; }
.tk-date-icon::after { content:""; position:absolute; left:3px; top:-3px; width:5px; height:4px; border-left:1.5px solid currentColor; border-right:1.5px solid currentColor; }
