/* Namespaced mobile picker based on the user-provided card UI reference. */
.adp-root,
.adp-root * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  html.adp-no-scroll,
  html.adp-no-scroll body {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
  }

  .ui-dialog.adp-legacy-bridge,
  #dateSelectDialog2.adp-legacy-bridge-content {
    display: none !important;
  }

  .adp-root[hidden] {
    display: none !important;
  }

  .adp-root {
    --adp-brand: var(--mobile-ui-brand, var(--sys-color-brand, #0095de));
    --adp-brand-text: var(--mobile-ui-brand-text, var(--sys-color-brand-text, #0077b8));
    --adp-action-primary: var(--mobile-ui-action-primary, var(--sys-color-action, #0077b8));
    --adp-action-pressed: var(--mobile-ui-action-pressed, var(--sys-color-pressed, #043b8b));
    --adp-on-action: var(--mobile-ui-on-action, var(--sys-color-on-action, #fff));
    --adp-navy: var(--sys-color-ink, #293544);
    --adp-slate: var(--sys-color-text, #506079);
    --adp-muted: var(--sys-color-subtle, #91a0b5);
    --adp-line: var(--sys-color-line, #dce5ef);
    --adp-surface: var(--sys-color-surface, #fff);
    --adp-cell: transparent;
    --adp-range-surface: var(--sys-color-soft, #e8f7fc);
    --adp-sunday: var(--sys-color-danger, #e03131);
    --adp-saturday: var(--sys-color-saturday, #1772c1);
    --adp-type-base-size: clamp(1rem, 4.4vw, 1.0625rem);
    --adp-calendar-title-size: 0.9375em;
    --adp-calendar-weekday-size: 0.75em;
    --adp-calendar-day-size: 0.9375em;
    --adp-calendar-title-height: clamp(1.75rem, 8vw, 1.875rem);
    --adp-calendar-weekday-height: clamp(1.5rem, 7.5vw, 1.75rem);
    --adp-calendar-day-height: clamp(2.5rem, 11.75vw, 2.75rem);
    --adp-calendar-button-height: var(--adp-calendar-day-height);
    --adp-summary-label-size: 0.8125em;
    --adp-summary-value-size: 1.125em;
    --adp-panel-label-size: 0.75em;
    --adp-panel-value-size: 1em;
    --adp-caption-size: 0.625em;
    --adp-action-font-size: 0.9375em;
    --adp-action-height: 2.75rem;
    --adp-footer-height: calc(var(--adp-action-height) + 20px);
    --adp-viewport-gutter: max(12px, env(safe-area-inset-top, 0px), env(safe-area-inset-bottom, 0px));
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: var(--adp-viewport-gutter) 16px;
    overflow: hidden;
    background: #e8f1f7;
    color: var(--adp-navy);
    font-size: var(--adp-type-base-size);
    font-family: "Noto Sans KR", "Nanum Barun Gothic", Arial, sans-serif;
  }

  .adp-dialog {
    position: relative;
    display: grid;
    grid-template-rows: 68px minmax(0, 1fr) var(--adp-footer-height);
    width: min(100%, 430px);
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0.75rem;
    background: var(--adp-surface);
    box-shadow: 0 0.75rem 2rem rgb(41 53 68 / 12%);
  }

  .adp-title,
  .adp-instruction,
  .adp-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

  .adp-status-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 100%;
  }

  .adp-selection-header {
    width: 100%;
    height: 68px;
    margin: 0;
    padding: 8px 12px 0;
    background: var(--adp-surface);
  }

  .adp-selection-summary {
    min-width: 0;
    width: 100%;
    height: 60px;
    padding: 4px 0;
    border-radius: 0;
    border-bottom: 0;
    background: var(--sys-color-surface, #fff);
    color: var(--adp-navy);
  }

  .adp-status-item {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    grid-template-rows: auto auto;
    align-content: center;
    row-gap: 0.2em;
    min-width: 0;
    margin: 0;
    padding: 0.0625rem 0.125rem;
    border: 0;
    background: transparent;
    font-size: 1em;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
  }

  .adp-status-item + .adp-status-item {
    border-left: 0;
  }

  .adp-status-item:disabled {
    cursor: default;
  }

  .adp-status-item strong {
    font-family: "Noto Sans KR", sans-serif;
    font-size: var(--adp-summary-label-size);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
  }

  .adp-start-status-jump strong {
    color: var(--adp-brand-text);
  }

  .adp-end-status-jump strong {
    color: var(--adp-brand-text);
  }

  .adp-status-value {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.2em;
    min-width: 0;
    color: var(--adp-navy);
  }

  .adp-status-date {
    overflow: hidden;
    color: var(--adp-navy);
    font-family: "Noto Sans KR", sans-serif;
    font-size: var(--adp-summary-value-size);
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
  }

  .adp-status-date.adp-status-date-placeholder {
    color: var(--adp-muted);
    font-weight: 500;
  }

  .adp-status-time {
    flex: 0 0 auto;
    color: var(--adp-navy);
    font-family: "Noto Sans KR", sans-serif;
    font-size: var(--adp-summary-value-size);
    font-weight: 700;
    line-height: 1.25;
  }

  .adp-root[data-locale="en"],
  .adp-root[data-locale="twd"] {
    --adp-summary-value-size: 0.875em;
  }

  .adp-root[data-locale="en"],
  .adp-root[data-locale="en"] .adp-dialog,
  .adp-root[data-locale="en"] .adp-dialog * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  .adp-root[data-locale="twd"],
  .adp-root[data-locale="twd"] .adp-dialog,
  .adp-root[data-locale="twd"] .adp-dialog * {
    font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .adp-root[data-locale="en"] .adp-time-panel {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .adp-root[data-locale="en"] .adp-time-panel-header {
    min-width: 0;
  }

  .adp-root[data-locale="en"] .adp-time-heading {
    white-space: nowrap;
  }

  .adp-root[data-locale="en"] .adp-time-value {
    width: 100%;
  }

  .adp-current-month-button,
  .adp-status-item,
  .adp-day-button,
  .adp-time-step,
  .adp-close,
  .adp-apply {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    font-family: "Noto Sans KR", "Nanum Barun Gothic", Arial, sans-serif;
    cursor: pointer;
  }

  .adp-current-month-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--adp-action-height);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0.625rem;
    background: var(--adp-range-surface);
    color: var(--adp-brand-text);
    font: 600 var(--adp-action-font-size)/1.25 "Noto Sans KR", sans-serif;
  }

  .adp-body {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 8px 12px;
    overflow: hidden;
    background: var(--sys-color-canvas, #f5f8fb);
  }

  .adp-calendar-scroll {
    min-width: 0;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 0.625rem;
    background: var(--sys-color-surface, #fff);
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--sys-color-line, #cbd7e4) transparent;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
  }

  .adp-month-card {
    width: 100%;
    min-height: 246px;
    margin: 0;
    padding: 8px 4px 10px;
    border-bottom: 1px solid #edf1f6;
  }

  .adp-month-card:last-child {
    border-bottom: 0;
  }

  .adp-month-title {
    height: var(--adp-calendar-title-height);
    margin: 0 0 0.25rem;
    color: #111827;
    font-family: "Noto Sans KR", sans-serif;
    font-size: var(--adp-calendar-title-size);
    font-weight: 700;
    line-height: var(--adp-calendar-title-height);
    text-align: center;
    letter-spacing: 0.2px;
  }

  .adp-weekdays,
  .adp-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
  }

  .adp-weekdays {
    height: var(--adp-calendar-weekday-height);
    margin-bottom: 0.125rem;
  }

  .adp-weekday {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--adp-calendar-weekday-height);
    color: #617087;
    font-family: "Noto Sans KR", sans-serif;
    font-size: var(--adp-calendar-weekday-size);
    font-weight: 500;
    line-height: 1.4;
  }

  .adp-weekday-0 {
    color: var(--adp-sunday);
  }

  .adp-weekday-6 {
    color: var(--adp-saturday);
  }

  .adp-day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: var(--adp-calendar-day-height);
    padding: 0;
  }

  .adp-day-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: var(--adp-calendar-button-height);
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0;
    background: var(--adp-cell);
    color: var(--sys-color-ink, #25364d);
    font-family: "Noto Sans KR", sans-serif;
    font-size: var(--adp-calendar-day-size);
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
  }

  .adp-day-button:disabled {
    background: transparent;
    color: #cfd7e2;
    cursor: default;
  }

  .adp-sunday .adp-day-button:not(:disabled) {
    color: var(--adp-sunday);
  }

  .adp-saturday .adp-day-button:not(:disabled) {
    color: var(--adp-saturday);
  }

  .adp-today .adp-day-button:not(:disabled) {
    border: 2px solid var(--adp-brand);
    border-radius: 0.625rem;
    background: var(--sys-color-surface, #fff);
    color: var(--adp-brand-text);
  }

  .adp-in-range .adp-day-button {
    background: var(--adp-range-surface);
    color: #17324a;
  }

  .adp-range-start .adp-day-button,
  .adp-range-end .adp-day-button,
  .adp-sunday.adp-range-start .adp-day-button,
  .adp-sunday.adp-range-end .adp-day-button,
  .adp-saturday.adp-range-start .adp-day-button,
  .adp-saturday.adp-range-end .adp-day-button {
    border-color: var(--adp-action-primary);
    background: var(--adp-action-primary);
    color: var(--adp-on-action);
    font-weight: 700;
  }

  .adp-range-start::after,
  .adp-range-end::after {
    display: none;
  }

  .adp-range-start .adp-day-button {
    border-radius: 0.625rem 0 0 0.625rem;
  }

  .adp-range-end .adp-day-button {
    border-radius: 0 0.625rem 0.625rem 0;
  }

  .adp-range-start.adp-range-end .adp-day-button {
    border-radius: 0.625rem;
  }

  .adp-time-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }

  .adp-time-stack,
  .adp-time-stack * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation !important;
  }

  .adp-time-panel {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 74px;
    margin: 0;
    padding: 8px;
    overflow: hidden;
    border: 0;
    border-radius: 0.625rem;
    background: var(--sys-color-surface, #fff);
  }

  .adp-time-panel-header {
    display: block;
    width: 100%;
    height: 50px;
  }

  .adp-time-heading {
    display: block;
    min-width: 0;
    height: 20px;
    margin: 0;
    padding: 0 2px;
    border-radius: 0;
    background: transparent;
    color: #63728a;
    font: 500 var(--adp-panel-label-size)/1.5 "Noto Sans KR", sans-serif;
    text-align: left;
  }

  .adp-time-control {
    display: block;
    width: 100%;
    height: 58px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .adp-time-value {
    display: block;
    width: 72px;
    height: 30px;
    margin: 0;
    padding: 0 2px;
    border-radius: 0;
    background: transparent;
    color: var(--sys-color-ink, #25364d);
    font: 700 var(--adp-panel-value-size)/1.65 "Noto Sans KR", sans-serif;
    text-align: left;
  }

  .adp-time-slider-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 44px;
  }

  .adp-time-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 0.625rem;
    background: var(--adp-range-surface);
    color: var(--adp-brand);
    font-size: 0;
    line-height: 0;
  }

  .adp-time-step-icon {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.25;
  }

  .adp-time-step:active {
    background: #d8f2fa;
    color: var(--adp-brand);
  }

  .adp-time-step.adp-time-step-holding {
    background: #d8edf7;
    color: var(--adp-brand-text);
  }

  .adp-time-range {
    --adp-range-progress: 0%;
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
  }

  .adp-time-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--adp-brand) 0 var(--adp-range-progress), var(--sys-color-line, #dce4ee) var(--adp-range-progress) 100%);
  }

  .adp-time-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    margin-top: -10px;
    border: 5px solid var(--adp-brand);
    border-radius: 50%;
    background: var(--sys-color-surface, #fff);
  }

  .adp-time-range::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--sys-color-line, #dce4ee);
  }

  .adp-time-range::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--adp-brand);
  }

  .adp-time-range::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border: 5px solid var(--adp-brand);
    border-radius: 50%;
    background: var(--sys-color-surface, #fff);
  }

  .adp-time-bounds {
    position: relative;
    display: block;
    height: 1.375em;
    margin: -1px 50px 0;
    width: calc(100% - 100px);
    color: #94a2b6;
    font: 500 var(--adp-caption-size)/1.1 "Noto Sans KR", Arial, sans-serif;
  }

  .adp-time-bounds span {
    position: absolute;
    top: 0;
    width: max-content;
    text-align: center;
    white-space: nowrap;
  }

  .adp-time-bounds span:first-child {
    left: 13px;
    transform: translateX(-50%);
  }

  .adp-time-bounds span:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
  }

  .adp-time-bounds span:last-child {
    right: 13px;
    transform: translateX(50%);
  }

  .adp-time-select {
    display: none;
  }

  .adp-footer {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-rows: var(--adp-footer-height);
    width: 100%;
    height: var(--adp-footer-height);
    margin: 0;
    padding: 0;
    background: var(--adp-surface);
  }

  .adp-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    height: var(--adp-footer-height);
    margin: 0;
    padding: 8px 12px 12px;
    border: 0;
    background: var(--sys-color-canvas, #f5f8fb);
    box-shadow: none;
  }

  .adp-close,
  .adp-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--adp-action-height);
    margin: 0;
    padding: 0;
    border-radius: 0.625rem;
    color: var(--adp-on-action);
    font: 700 var(--adp-action-font-size)/1.25 "Noto Sans KR", sans-serif;
  }

  .adp-close {
    background: var(--sys-color-surface, #fff);
    color: var(--adp-navy);
  }

  .adp-apply {
    background: var(--adp-action-primary);
  }

  .adp-apply:not(:disabled):active {
    background: var(--adp-action-pressed);
  }

  .adp-apply:disabled {
    background: #aab6c5;
    cursor: default;
  }

  .adp-error {
    position: absolute;
    right: 8px;
    bottom: var(--adp-footer-height);
    left: 8px;
    margin: 0;
    color: var(--sys-color-danger, #d92828);
    font: 600 var(--adp-caption-size)/1.45 "Noto Sans KR", sans-serif;
    text-align: center;
  }

  .adp-error:not(:empty) {
    padding: 5px 8px;
    border: 1px solid #f2b3bb;
    border-radius: 0.625rem;
    background: var(--sys-color-surface, #fff);
  }

  .adp-current-month-button:focus-visible,
  .adp-status-item:focus-visible,
  .adp-time-range:focus-visible,
  .adp-time-step:focus-visible,
  .adp-close:focus-visible,
  .adp-apply:focus-visible {
    outline: 3px solid var(--adp-action-pressed);
    outline-offset: 1px;
  }

  .adp-day-button:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 2px var(--adp-action-pressed);
  }

  .adp-range-start .adp-day-button:focus-visible,
  .adp-range-end .adp-day-button:focus-visible {
    box-shadow: inset 0 0 0 2px var(--adp-on-action);
  }

  @media (max-width: 340px) {
    .adp-root {
      --adp-summary-value-size: 1em;
      padding-right: 8px;
      padding-left: 8px;
    }

    .adp-root[data-locale="en"],
    .adp-root[data-locale="twd"] {
      --adp-summary-value-size: 0.8125em;
    }

    .adp-status-item {
      padding-right: 0;
      padding-left: 0;
    }
  }
}
