/* Calendar Alarms (Story 5744). Pinned chrome: the icon band, the header and the status line
   stay put and only .al-scroll scrolls, like Calendar Notification Setup. */
html, body { height: 100%; margin: 0; }
body { background: #F4F4F5; font-family: "Segoe UI", Arial, sans-serif; }
.al-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
#lwIconBand, .ct-header, .al-status { flex: 0 0 auto; }

.ct-header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #3C3C3C; color: #fff; }
.ct-header h1 { font-size: 15pt; margin: 0; font-weight: 600; }
.al-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.al-titles nav.pcr { --pcr-ink: #D8D8D8; --pcr-ink-hover: #fff; }
.ct-header button { background: #555; color: #fff; border: 1px solid #777; border-radius: 4px; padding: 6px 10px; font-size: 10.5pt; cursor: pointer; }
.al-foldall { min-width: 40px; }

.al-scroll { flex: 1 1 auto; overflow-y: auto; padding: 10px 12px 90px; -webkit-overflow-scrolling: touch; }
.al-section { background: #fff; border: 1px solid #DDD; border-radius: 6px; margin-bottom: 10px; }
.al-head { padding: 10px 12px; font-weight: 600; font-size: 12pt; cursor: pointer; user-select: none; }
.al-chev { display: inline-block; width: 1em; color: #777; }
.al-count { color: #777; font-weight: 400; }
.al-section.folded .al-body { display: none; }
.al-body { padding: 0 12px 10px; }
.al-due .al-head { color: #A93226; }

.al-card { border: 1px solid #F2C9C0; background: #FFF6F4; border-radius: 6px; padding: 10px; margin-top: 8px;
           display: flex; align-items: center; gap: 10px; }
.al-card.linked { box-shadow: 0 0 0 3px #E59866; }
.al-card-text { flex: 1; min-width: 0; }
.al-card-title { font-weight: 700; font-size: 12pt; }
.al-card-line { font-size: 10pt; color: #555; margin-top: 2px; }
.al-dismiss { background: #B03A2E; color: #fff; border: 0; border-radius: 4px; padding: 10px 16px; font-weight: 700; font-size: 11pt; cursor: pointer; }
.al-dismiss:disabled { opacity: .6; }
.al-empty { color: #666; font-size: 10.5pt; padding: 6px 0; }

.al-row { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid #EEE; font-size: 10.5pt; }
.al-row:first-child { border-top: 0; }
.al-when { flex: 0 0 9.5em; color: #333; font-weight: 600; }
.al-what { flex: 1; min-width: 0; }
.al-what .al-sub { color: #666; font-size: 9.5pt; }
.al-ok { color: #1E8449; font-weight: 700; }
.al-wait { color: #9A7D0A; }
.al-edit { font-size: 10pt; color: #2E6DA4; white-space: nowrap; }

.al-kv { font-size: 10.5pt; line-height: 1.6; }
.al-kv b { display: inline-block; min-width: 9em; color: #444; }
.al-err { color: #A93226; }
.al-sync { margin-top: 8px; background: #3C3C3C; color: #fff; border: 0; border-radius: 4px; padding: 8px 14px; cursor: pointer; }
.al-sync:disabled { opacity: .6; }
.al-status { padding: 6px 12px; font-size: 10pt; color: #555; background: #fff; border-top: 1px solid #DDD; }

@media (max-width: 560px) {
    .al-when { flex-basis: 7.5em; }
    .ct-header h1 { font-size: 13pt; }
}

/* Missing calendar permission (Story 5744): one sign-in fixes it. */
.al-permission { display: flex; gap: 12px; align-items: center; background: #FDECEA; border: 2px solid #B03A2E;
                 border-radius: 6px; padding: 12px; margin-bottom: 10px; font-size: 10.5pt; }
.al-permission[hidden] { display: none; }
.al-permission-text { flex: 1; min-width: 0; }

/* Story 6843: snoozing a phone alarm. */
.al-section[hidden] { display: none; }
.al-snooze .al-head { color: #7D3C98; }
.al-ring { border: 1px solid #D7BDE2; background: #FBF5FD; border-radius: 6px; padding: 10px; margin-top: 8px; }
.al-ring.linked { box-shadow: 0 0 0 3px #BB8FCE; }
.al-ring-state { font-size: 10.5pt; margin-top: 4px; color: #5B2C6F; font-weight: 600; }
.al-ring-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.al-snz { background: #7D3C98; color: #fff; border: 0; border-radius: 4px; padding: 10px 14px; font-weight: 700; font-size: 11pt; cursor: pointer; min-width: 64px; }
.al-snz:disabled, .al-stop:disabled { opacity: .6; }
.al-stop { background: #fff; color: #5B2C6F; border: 1px solid #7D3C98; border-radius: 4px; padding: 10px 14px; font-size: 11pt; cursor: pointer; }
