body:has(.alarm-countdown) { background: #f7f5f1; color: #172a39; }
.page-online-alarm.has-breadcrumb { --breadcrumb-width: 1040px; display: block; padding: 14px clamp(12px, 3vw, 28px) 72px; }
.alarm-countdown { width: min(1040px, 100%); margin: 0 auto; font-family: Arial, sans-serif; }
.alarm-countdown * { box-sizing: border-box; }
.alarm-countdown :is(button, input) { font: inherit; }
.alarm-countdown button { cursor: pointer; }
.alarm-countdown [hidden] { display: none !important; }
.alarm-countdown :is(button, input, a):focus-visible { outline: 3px solid #ecab63; outline-offset: 3px; }

.ac-hero { padding: 15px 0 7px; }
.ac-hero h1 { margin: 0; color: #17293b; font: 800 clamp(29px, 3.4vw, 42px)/1.1 Arial, sans-serif; letter-spacing: -.045em; }
.ac-hero p { max-width: 730px; margin: 8px 0 0; color: #5f7180; font-size: 14px; line-height: 1.55; }
.ac-legacy-note { margin: 10px 0 0; padding: 10px 13px; border: 1px solid #e8d0a7; border-radius: 10px; color: #75502a; background: #fff7e7; font-size: 12px; line-height: 1.5; }
.ac-tool { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; margin-top: 15px; }
.ac-setup, .ac-live { min-width: 0; padding: clamp(19px, 2.7vw, 28px); border: 1px solid #dce5e5; border-radius: 18px; background: #fff; box-shadow: 0 12px 28px #1839490b; }
.ac-eyebrow, .ac-live-top > span { color: #b05d50; font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.ac-setup h2 { margin: 7px 0 0; color: #172c3c; font: 800 clamp(22px, 2.5vw, 29px)/1.12 Arial, sans-serif; letter-spacing: -.04em; }
.ac-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 20px; padding: 4px; border: 1px solid #dce7e7; border-radius: 12px; background: #f0f5f4; }
.ac-mode button { min-height: 41px; padding: 6px 8px; border: 0; border-radius: 9px; color: #48616c; background: transparent; font-size: 13px; font-weight: 800; }
.ac-mode button[aria-pressed="true"] { color: #fff; background: #1e4350; box-shadow: 0 3px 8px #14343b2d; }
.ac-setup form { margin-top: 17px; }
.ac-field { display: grid; gap: 7px; color: #2b4954; font-size: 12px; font-weight: 800; }
.ac-field input { width: 100%; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid #ccdada; border-radius: 10px; color: #193643; background: #fbfdfc; box-shadow: 0 2px 0 #e7eeee; font-size: 15px; }
.ac-clock-field input { height: 65px; font-size: 32px; font-variant-numeric: tabular-nums; font-weight: 800; }
.ac-duration-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ac-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.ac-presets button { min-height: 40px; border: 1px solid #d9e5e4; border-radius: 9px; color: #1d4750; background: #f6faf9; font-size: 12px; font-weight: 800; }
.ac-presets button:hover { border-color: #68aba4; background: #e8f7f3; }
.ac-hint { margin: 10px 0 0; color: #71848b; font-size: 11px; line-height: 1.5; }
.ac-error { margin: 12px 0 0; padding: 9px 11px; border: 1px solid #e5aaaa; border-radius: 8px; color: #a23431; background: #fff2ef; font-size: 12px; font-weight: 700; }
.ac-start { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 49px; margin-top: 17px; padding: 0 17px; border: 0; border-radius: 10px; color: #fff; background: #e26756; font-size: 14px; font-weight: 850; box-shadow: 0 7px 16px #d6584827; }
.ac-start:hover { background: #c95445; }
.ac-start span { font-size: 21px; }

.ac-live { display: flex; flex-direction: column; justify-content: center; color: #fff; background: #1c2d3e; border-color: #1c2d3e; }
.ac-live-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ac-live-top > span { color: #a9d7d3; }
.ac-live-top strong { padding: 6px 9px; border: 1px solid #ffffff2c; border-radius: 99px; color: #c7d9e1; background: #ffffff0d; font-size: 10px; letter-spacing: .1em; }
.ac-live.is-running .ac-live-top strong { color: #b6f1dd; border-color: #6bd2aa50; background: #2fae8c23; }
.ac-live.is-finished .ac-live-top strong { color: #ffe4c1; }
.ac-display { margin-top: 37px; color: #fff; font-size: clamp(43px, 5.5vw, 76px); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.06em; line-height: 1; text-align: center; white-space: nowrap; }
.ac-progress { height: 7px; overflow: hidden; margin-top: 27px; border-radius: 99px; background: #ffffff22; }
.ac-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4fc9a5, #c9f1bc); transition: width .22s linear; }
.ac-target { min-height: 38px; margin: 18px 0 0; color: #c9d9df; font-size: 13px; line-height: 1.5; text-align: center; }
.ac-live-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 23px; }
.ac-live-actions button { min-height: 37px; padding: 0 12px; border: 1px solid #ffffff3c; border-radius: 9px; color: #edf9f8; background: #ffffff12; font-size: 11px; font-weight: 800; }
.ac-live-actions button:hover { background: #ffffff22; }
.ac-live-actions button:disabled { cursor: not-allowed; opacity: .45; }
.ac-live-actions [data-ac-sound][aria-pressed="false"] { color: #b6c1c6; }
.ac-device-note { margin: 13px 3px 0; color: #657781; font-size: 12px; line-height: 1.5; }
.alarm-countdown > .share-panel { margin-top: 17px; }

.ac-alert { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 18px; }
.ac-alert-backdrop { position: absolute; inset: 0; background: #101c2bdb; backdrop-filter: blur(5px); }
.ac-alert-dialog { position: relative; width: min(410px, 100%); padding: 34px 25px; border-radius: 22px; color: #fff; background: #203b48; box-shadow: 0 24px 70px #09182080; text-align: center; }
.ac-alert-icon { display: grid; place-items: center; width: 65px; height: 65px; margin: 0 auto 14px; border-radius: 50%; color: #18434a; background: #f9cc8d; font-size: 37px; }
.ac-alert-dialog h2 { margin: 0; font: 800 32px/1.1 Arial, sans-serif; }
.ac-alert-dialog p { color: #d6e3e4; font-size: 13px; }
.ac-alert-dialog button { width: 100%; min-height: 48px; margin-top: 15px; border: 0; border-radius: 10px; color: #192e3a; background: #ffd294; font-size: 14px; font-weight: 850; }
.ac-explain { margin-top: 32px; }
.ac-explain h2, .ac-important h2 { margin: 0; color: #193141; font: 800 clamp(22px, 2.7vw, 30px)/1.15 Arial, sans-serif; letter-spacing: -.035em; }
.ac-explain > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 13px; }
.ac-explain article, .ac-important { padding: 20px; border: 1px solid #dfe5e3; border-radius: 14px; background: #fff; }
.ac-explain h3 { margin: 0; color: #264752; font-size: 16px; }
.ac-explain p, .ac-important p { margin: 8px 0 0; color: #617781; font-size: 13px; line-height: 1.6; }
.ac-important { margin-top: 14px; background: #fff9f2; border-color: #f1ddc8; }
.ac-related { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.ac-related a { display: flex; justify-content: space-between; gap: 10px; padding: 16px; border: 1px solid #dfe5e3; border-radius: 12px; color: #244453; background: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.ac-related a:hover { border-color: #8cbcb5; }
.alarm-countdown > .cms-content-card { margin-top: 20px; }

@media (max-width: 760px) {
  .page-online-alarm.has-breadcrumb { padding: 9px 12px 52px; }
  .ac-hero { padding: 8px 0 2px; }
  .ac-hero h1 { font-size: 27px; }
  .ac-hero p { margin-top: 5px; font-size: 12px; }
  .ac-tool { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .ac-setup, .ac-live { padding: 17px; border-radius: 16px; }
  .ac-setup h2 { font-size: 23px; }
  .ac-mode { margin-top: 14px; }
  .ac-setup form { margin-top: 13px; }
  .ac-live { min-height: 244px; }
  .ac-display { margin-top: 23px; font-size: clamp(42px, 12vw, 58px); }
  .ac-progress { margin-top: 19px; }
  .ac-target { margin-top: 13px; }
  .ac-live-actions { margin-top: 13px; }
  .ac-explain > div, .ac-related { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
  .ac-setup, .ac-live { padding: 15px; }
  .ac-live-actions { gap: 5px; }
  .ac-live-actions button { padding: 0 8px; font-size: 10px; }
  .ac-display { font-size: 41px; }
}
@media (prefers-reduced-motion: reduce) { .ac-progress span { transition: none; } }
