/* Calm Blue Mini App calendar; native ISO inputs remain the source of truth. */
.ky-date-field { position: relative; display: block; min-width: 0; width: 100%; }
.ky-date-field input.ky-date-input { width: 100%; min-width: 0; padding-right: 50px; cursor: pointer; }
.ky-date-input::-webkit-calendar-picker-indicator { display: none; }
.ky-date-field .ky-date-trigger { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--action, #2f648f); box-shadow: none; }
.ky-date-trigger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
dialog.ky-date-picker { height: fit-content; min-height: 0; box-sizing: border-box; width: min(380px, calc(100vw - 24px)); inset: var(--app-safe-top, 0px) var(--app-safe-right, 0px) var(--app-safe-bottom, 0px) var(--app-safe-left, 0px); max-width: calc(100vw - var(--app-safe-left, 0px) - var(--app-safe-right, 0px) - 24px); max-height: calc(100dvh - var(--app-safe-top, 0px) - var(--app-safe-bottom, 0px) - 24px); margin: auto; padding: 12px; overflow: auto; border: 1px solid var(--border, #bdccd8); border-radius: 16px; background: var(--surface, #edf1f4); color: var(--ink, #203f68); box-shadow: 0 10px 32px var(--shadow-dialog, #0f3b8233); font-family: var(--font-body, sans-serif); }
.ky-date-picker::backdrop { background: var(--scrim, #0d244966); }
.ky-calendar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ky-calendar-top h2 { margin: 0; font: 600 18px/1.3 var(--font-body, sans-serif); letter-spacing: 0; }
.ky-date-picker button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink, #203f68); font: 500 15px/1 var(--font-body, sans-serif); box-shadow: none; cursor: pointer; }
.ky-date-picker button:hover:not(:disabled), .ky-date-trigger:hover { background: var(--sky, #dbe7f0); }
.ky-date-picker button:focus-visible, .ky-date-trigger:focus-visible { outline: 3px solid var(--focus, #2f648f); outline-offset: 1px; }
.ky-date-picker button:disabled { opacity: 1; color: var(--muted, #4e647b); background: transparent; cursor: default; text-decoration: line-through; text-decoration-thickness: 1px; }
.ky-date-picker .ky-calendar-close { width: 44px; font-size: 25px; flex-shrink: 0; }
.ky-calendar-nav { display: grid; grid-template-columns: 44px 44px 1fr 44px 44px; align-items: center; margin: 6px 0 12px; gap: 0; }
.ky-calendar-nav button { width: 44px; font-size: 25px; }
.ky-calendar-month { text-align: center; font-size: 16px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ky-calendar-grid { width: 100%; table-layout: fixed; border-collapse: collapse; border: 0; margin: 0; }
.ky-calendar-grid th { height: 32px; padding: 0; color: var(--muted, #4e647b); font-size: 12px; font-weight: 500; text-align: center; }
.ky-calendar-grid td { height: 44px; padding: 0; border: 0; text-align: center; }
.ky-calendar-grid button { width: 44px; height: 44px; min-height: 44px; border-radius: 50%; font-variant-numeric: tabular-nums; }
.ky-calendar-grid button.is-today { background: transparent; border-color: var(--action, #2f648f); font-weight: 700; }
.ky-calendar-grid button.is-selected, .ky-calendar-grid button.is-selected:hover { background: var(--action, #2f648f); color: #fff; font-weight: 700; }
.ky-calendar-grid button.is-selected.is-today { box-shadow: inset 0 0 0 2px var(--surface, #edf1f4); }
.ky-calendar-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border, #bdccd8); }
.ky-calendar-footer button { padding: 0 12px; color: var(--action, #2f648f); }
.ky-calendar-help { margin: 8px 4px 2px; font-size: 12px; line-height: 1.4; color: var(--muted, #4e647b); }
@media (max-width: 359px) { dialog.ky-date-picker { width: calc(100vw - 4px); max-width: calc(100vw - var(--app-safe-left, 0px) - var(--app-safe-right, 0px) - 4px); padding: 2px; } .ky-calendar-top, .ky-calendar-help { margin-left: 6px; margin-right: 6px; } .ky-calendar-month { font-size: 15px; } }
