/* Branded native form controls and accessible date dialog. */
body select, body input[type="date"], body input[type="time"] {
  color: var(--tone-1a1a1a);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  min-height: 42px;
  border: 1px solid var(--tone-dddcd5);
  border-radius: 9px;
  background-color: var(--tone-ffffff);
  box-shadow: 0 1px 2px #1a1a1a04;
  padding: 9px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body select {
  appearance: none;
  padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--tone-8b7460) 50%), linear-gradient(135deg, var(--tone-8b7460) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 12px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
body select:hover, body input[type="date"]:hover, body input[type="time"]:hover { border-color: var(--tone-b9987d); }
body select:focus-visible, body input[type="date"]:focus-visible, body input[type="time"]:focus-visible { outline: 2px solid var(--tone-a85f28); outline-offset: 2px; }
body select:disabled, body input[type="date"]:disabled, body input[type="time"]:disabled { background-color: var(--tone-f1f1ed); color: var(--tone-818078); cursor: not-allowed; box-shadow: none; }
body input[type="time"]::-webkit-calendar-picker-indicator { opacity: .65; cursor: pointer; }
.pc-date-control { display: flex !important; align-items: stretch; position: relative; min-width: 0; width: 100%; margin: 0 !important; }
body .pc-date-control > input[type="date"] { width: 100%; min-width: 0; margin: 0; padding-right: 49px; }
.pc-date-control > input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
.pc-date-control > input[type="date"]::-webkit-datetime-edit { padding: 0; }
body .pc-date-control > .pc-date-trigger { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 36px; min-width: 36px; padding: 0; margin: 0; border: 0; border-radius: 6px; background: var(--tone-f5eee6); color: var(--tone-a85f28); font-size: 23px; line-height: 1; display: grid; place-items: center; }
body .pc-date-control > .pc-date-trigger:hover { background: var(--tone-eedbc9); }
body .pc-date-control > .pc-date-trigger:disabled { background: var(--tone-edede7); color: var(--tone-919087); opacity: .65; cursor: not-allowed; }
body dialog.pc-calendar { width: min(360px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 20px; overflow-y: auto; border: 1px solid var(--tone-e3d9cf); border-radius: 16px; background: var(--tone-fafaf8); color: var(--tone-1a1a1a); box-shadow: 0 20px 75px #1a1a1a2b; font: 13px/1.5 Inter, system-ui, sans-serif; }
.pc-calendar::backdrop { background: #1a1a1a55; backdrop-filter: blur(2px); }
.pc-calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.pc-calendar-header h2 { font: 700 15px/1.4 "Plus Jakarta Sans", Inter, sans-serif; margin: 0; max-width: 260px; }
body .pc-calendar button { min-height: 36px; padding: 6px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--tone-1a1a1a); font: 500 13px/1.4 Inter, sans-serif; box-shadow: none; }
body .pc-calendar button:hover:not(:disabled) { background: var(--tone-f1e6da); color: var(--tone-8a4a20); }
body .pc-calendar button:focus-visible { outline: 2px solid var(--tone-a85f28); outline-offset: 1px; }
body .pc-calendar button:disabled { opacity: .28; cursor: not-allowed; }
body .pc-calendar-header button { flex: 0 0 32px; min-height: 32px; padding: 0; font-size: 23px; color: var(--tone-7d776f); }
.pc-calendar-navigation { display: grid; grid-template-columns: 30px minmax(0, 1fr) 76px 30px; gap: 5px; align-items: center; margin-bottom: 14px; }
body .pc-calendar-navigation > button { font-size: 24px; padding: 0; }
body .pc-calendar-navigation > select, body .pc-calendar-navigation > input { width: 100%; min-width: 0; min-height: 38px; height: 38px; margin: 0; padding: 7px 8px; border: 1px solid var(--tone-e4dfd7); border-radius: 7px; background-color: var(--tone-ffffff); font: 500 13px/1.4 Inter, sans-serif; color: var(--tone-1a1a1a); }
body .pc-calendar-navigation > select { padding-right: 24px; }
body .pc-calendar-navigation > input { padding-left: 8px; }
.pc-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.pc-weekday { text-align: center; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--tone-8a8178); padding: 4px 0 9px; }
body .pc-calendar-grid .pc-day { aspect-ratio: 1; min-height: 33px; padding: 0; }
body .pc-calendar-grid .pc-outside { color: var(--tone-9b958d); }
body .pc-calendar-grid .pc-today { border-color: var(--tone-d3a37c); font-weight: 700; }
body .pc-calendar-grid .pc-selected { color: var(--tone-ffffff); background: var(--tone-a85f28); font-weight: 700; }
body .pc-calendar-grid .pc-selected:hover:not(:disabled) { background: var(--tone-8b4e21); color: var(--tone-ffffff); }
.pc-calendar-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--tone-e8e1d8); }
body .pc-calendar-footer button { color: var(--tone-a85f28); }
.pc-calendar-help { font-size: 10px; line-height: 1.5; color: var(--tone-8a8178); margin: 10px 0 0; }
.pc-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 360px) { body dialog.pc-calendar { padding: 14px; }.pc-calendar-navigation { grid-template-columns: 26px minmax(0, 1fr) 68px 26px; gap: 3px; }.pc-calendar-grid { gap: 2px; }body .pc-calendar-grid .pc-day { min-height: 31px; } }
@media (prefers-reduced-motion: reduce) { body select, body input[type="date"], body input[type="time"] { transition: none; } }
.pc-calendar, .pc-calendar *, .pc-date-control, .pc-date-control * { box-sizing: border-box; }
