/* Interaction additions keep the existing type, spacing, palette and artwork. */
button.bottom-btn, button.touch-zone, button.picker-day { border: 0; background: transparent; }
button:focus-visible { outline: 2px solid var(--theme-muted); outline-offset: 3px; }
.touch-zone:focus-visible { outline: 2px inset var(--theme-muted); }
.picker-overlay[hidden] { display: none; }
.picker-day:disabled { cursor: default; }
body.preview-mode .touch-zone, body.preview-mode .bottom-btn { visibility: hidden; pointer-events: none; }
.preview-safe-area { z-index: 110; border: 1px solid #e4493f; pointer-events: none; }
.preview-safe-area::before { content: '主体安全区'; position: absolute; top: 3px; left: 5px; color: #c63830; font: 11px sans-serif; }
@media (prefers-reduced-motion: reduce) {
    #calendarPage:not([data-motion-paused="false"]) .fc { animation-play-state: paused; transform: none; }
    .picker-day::before { animation: none !important; }
    *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
#calendarPage[data-motion-paused="true"] .fc { animation-play-state: paused; }
.calendar-usage-hint {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-bottom-btn);
    font: 11px/1.5 var(--font-sans);
}
.calendar-usage-hint[hidden] { display: none; }
.calendar-usage-hint:not([hidden]) + .copyright { display: none; }
.calendar-usage-hint button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    color: inherit;
    font: 20px/1 var(--font-sans);
    cursor: pointer;
}
.file-preview-notice {
    position: absolute;
    top: calc(var(--visual-header-bottom, var(--visual-safe-top)) + 12px);
    inset-inline: 32px;
    z-index: 115;
    padding: 14px 16px;
    border: 1px solid var(--theme-divider);
    border-radius: 10px;
    background: var(--page-bg);
    color: var(--text-poem);
    font: 12px/1.5 var(--font-sans);
    text-align: center;
}
.file-preview-notice[hidden] { display: none; }
.file-preview-notice p { margin-top: 5px; }
.file-preview-notice .file-preview-title { margin-top: 0; font-size: 14px; font-weight: 500; }
.file-preview-notice a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 8px;
    padding: 0 18px;
    border: 1px solid var(--theme-muted);
    border-radius: 8px;
    color: var(--text-poem);
    text-decoration: none;
}
.file-preview-notice a:focus-visible { outline: 2px solid var(--theme-muted); outline-offset: 3px; }
.file-preview-notice small { display: block; margin-top: 4px; font-size: 11px; color: var(--theme-muted); }
/* A review iframe shows the entire page even when its host temporarily becomes short. */
html.preview-mode, body.preview-mode { min-width: 0; min-height: 0; width: 100%; height: 100%; overflow: hidden; }
body.preview-mode { display: flex; align-items: center; justify-content: center; }
body.preview-mode .phone-container {
    flex: 0 0 auto;
    width: var(--preview-page-width, 360px);
    height: var(--preview-page-height, 640px);
    min-width: 0; min-height: 0; max-width: none; max-height: none;
    transform: scale(var(--preview-page-scale, 1));
    transform-origin: center;
}
