/* Alarmy Remote: the same liquid-glass look as the Boost web page, in Alarmy's sky blue. */
:root {
  --bg: #06070B;
  --text: #F4F6FA;
  --dim: rgba(244, 246, 250, .62);
  --faint: rgba(244, 246, 250, .42);
  --sky: #6CB6FF;
  --sky-hi: #A9D5FF;
  --mint: #5ED6A0;
  --amber: #F2B34C;
  --coral: #FF6B47;
  --rose: #FF4F7B;
  --line: rgba(255, 255, 255, .12);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
button { font-family: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.dim { color: var(--dim); }
.small { font-size: 13px; }

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient div { position: absolute; border-radius: 50%; }
.ambient .a1 { right: -180px; top: -240px; width: 720px; height: 720px; background: radial-gradient(circle, rgba(108,182,255,.38), rgba(108,182,255,0) 62%); animation: drift1 26s ease-in-out infinite alternate; }
.ambient .a2 { left: -260px; top: 260px; width: 760px; height: 760px; background: radial-gradient(circle, rgba(124,92,255,.32), rgba(124,92,255,0) 62%); animation: drift2 32s ease-in-out infinite alternate; }
.ambient .a3 { right: -200px; bottom: -280px; width: 760px; height: 760px; background: radial-gradient(circle, rgba(46,196,182,.24), rgba(46,196,182,0) 62%); animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-60px, 50px) scale(1.06); } }
@keyframes drift2 { to { transform: translate(70px, -40px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .ambient div { animation: none; } }

.glass { background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 32px rgba(0,0,0,.38); }
.pane { background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 18px 44px rgba(0,0,0,.45); }
.frost { background: rgba(16,18,28,.62); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); border: 1px solid rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 18px 44px rgba(0,0,0,.55); }

.orb { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; }
.orb::after { content: ""; position: absolute; left: 18%; top: 7%; width: 64%; height: 34%; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); pointer-events: none; }
.orb.big { width: 72px; height: 72px; }
.sky { background: radial-gradient(circle at 35% 30%, #CFE7FF, #6CB6FF 55%, #2F74C2); box-shadow: 0 6px 18px rgba(108,182,255,.40); }

/* Sign in */
.signin { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.signin-card { width: 100%; max-width: 420px; border-radius: 32px; padding: 36px 28px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.signin-card h1 { margin: 6px 0 0; font-size: 30px; letter-spacing: -.4px; }
.signin-card p { margin: 0; line-height: 1.45; }
.google { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px; border-radius: 26px; border: 0; background: #fff; color: #1F1F1F; font-size: 16px; font-weight: 500; margin: 8px 0 4px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.error { color: #FFB199; margin: 0; }

/* Shell */
.shell { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 64px; }
.top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand b { display: block; font-size: 17px; }
.brand span { font-size: 12.5px; }
.avatar { width: 40px; height: 40px; border-radius: 20px; font-size: 15px; font-weight: 700; padding: 0; }
.menu { position: absolute; right: 0; top: 52px; min-width: 240px; border-radius: 18px; padding: 8px; z-index: 5; }
.menu p { margin: 6px 10px 10px; font-size: 13px; overflow-wrap: anywhere; }
.menu button { width: 100%; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.08); font-size: 14px; }

/* Phone status */
.phone { border-radius: 26px; padding: 16px 16px 16px 18px; display: flex; align-items: center; gap: 14px; }
.phone .icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.07); border: 1px solid var(--line); flex-shrink: 0; position: relative; }
.phone .dot { position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 6px; border: 2px solid #0B0D14; }
.dot.ok { background: var(--mint); box-shadow: 0 0 10px rgba(94,214,160,.9); }
.dot.wait { background: var(--sky); box-shadow: 0 0 10px rgba(108,182,255,.9); animation: pulse 1.2s ease-in-out infinite; }
.dot.old { background: var(--amber); box-shadow: 0 0 10px rgba(242,179,76,.8); }
.dot.bad { background: var(--rose); box-shadow: 0 0 10px rgba(255,79,123,.8); }
@keyframes pulse { 50% { opacity: .35; } }
.phone .text { flex: 1 1 auto; min-width: 0; }
.phone b { display: block; font-size: 15.5px; }
.phone .line { font-size: 13px; margin-top: 3px; }
.phone .battery { display: inline-flex; align-items: center; gap: 4px; }
.check { height: 38px; border-radius: 19px; padding: 0 16px; font-size: 13.5px; font-weight: 500; border: 1px solid var(--line); background: rgba(255,255,255,.08); flex-shrink: 0; }
.check:disabled { opacity: .55; }

/* Sections */
.section { margin-top: 26px; }
.section h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 12px; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); }
.section h2 .count { color: var(--faint); font-weight: 500; letter-spacing: 0; }
.empty { border-radius: 22px; padding: 22px; text-align: center; }

/* Alarm card */
.card { position: relative; border-radius: 24px; padding: 16px 16px 14px 18px; margin-bottom: 12px; overflow: hidden; transition: opacity .25s, transform .25s; }
.card.busy { opacity: .9; }
.card .head { display: flex; align-items: flex-start; gap: 14px; }
.time { font-family: "Roboto Flex", Roboto, sans-serif; font-variation-settings: "opsz" 144; font-weight: 300; font-size: 44px; line-height: 44px; letter-spacing: -1.5px; white-space: nowrap; }
.time small { font-size: 16px; font-weight: 500; letter-spacing: 0; margin-left: 3px; color: var(--dim); }
.card .meta { flex: 1 1 auto; min-width: 0; padding-top: 2px; }
.title { font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.when { font-size: 13px; margin-top: 4px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 3px 8px; border-radius: 8px; margin-left: 6px; vertical-align: 1px; }
.badge.moved { background: rgba(242,179,76,.16); color: #FFD58A; }
.badge.snoozed { background: rgba(108,182,255,.16); color: var(--sky-hi); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn { height: 40px; border-radius: 20px; padding: 0 16px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); background: rgba(255,255,255,.08); display: inline-flex; align-items: center; gap: 6px; transition: background .15s, transform .1s; }
.btn:hover:not(:disabled) { background: rgba(255,255,255,.14); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; }
.btn.on { background: rgba(108,182,255,.22); border-color: rgba(108,182,255,.55); }
.btn.primary { background: linear-gradient(180deg, #8CC6FF, #4D9BEB); border-color: transparent; color: #061226; }
.btn.danger { background: linear-gradient(180deg, #FF8A6B, #E5533A); border-color: transparent; color: #200704; }
.btn.danger.confirm { background: linear-gradient(180deg, #FF5F86, #D93A62); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.chip { height: 36px; min-width: 56px; border-radius: 18px; padding: 0 12px; font-size: 13.5px; font-weight: 500; border: 1px solid rgba(108,182,255,.35); background: rgba(108,182,255,.10); color: var(--sky-hi); }
.chip:hover { background: rgba(108,182,255,.22); }
.chip .to { color: var(--faint); font-weight: 400; margin-left: 4px; }

/* Status line under a card */
.status { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; line-height: 1.35; }
.status .mark { width: 18px; height: 18px; border-radius: 9px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.status.pending .mark { border: 2px solid rgba(108,182,255,.35); border-top-color: var(--sky); animation: spin .8s linear infinite; }
.status.done { color: #9CF2CB; }
.status.done .mark { background: var(--mint); }
.status.failed, .status.expired { color: #FFB199; }
.status.failed .mark, .status.expired .mark { background: var(--coral); }
.status.slow { color: #FFD58A; }
.status.slow .mark { border: 2px solid rgba(242,179,76,.35); border-top-color: var(--amber); animation: spin .8s linear infinite; }
.status .undo { margin-left: auto; height: 30px; border-radius: 15px; padding: 0 14px; font-size: 13px; font-weight: 700; border: 0; background: rgba(255,255,255,.12); color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status .mark, .dot.wait { animation: none !important; } }

/* Ringing */
.ringing { background: linear-gradient(160deg, rgba(255,107,71,.30), rgba(255,79,123,.12) 60%, rgba(255,255,255,.04)); border-color: rgba(255,138,101,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1px rgba(255,107,71,.15), 0 18px 48px rgba(255,79,60,.25); }
.ringing .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #FFD0C2; }
.ringing .pill i { width: 8px; height: 8px; border-radius: 4px; background: var(--coral); box-shadow: 0 0 10px var(--coral); animation: pulse 1s ease-in-out infinite; }
.missed { background: linear-gradient(160deg, rgba(242,179,76,.20), rgba(255,255,255,.04)); border-color: rgba(242,179,76,.35); }

/* Skipped (Undo) */
.ghost { border-radius: 20px; padding: 12px 14px 12px 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; border: 1px dashed rgba(255,255,255,.18); }
.ghost .t { font-size: 14px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ghost s { color: var(--faint); }

.foot { text-align: center; font-size: 12.5px; margin: 28px 12px 0; line-height: 1.5; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 0); max-width: calc(100vw - 32px); border-radius: 18px; padding: 12px 18px; font-size: 14px; z-index: 10; transition: opacity .2s, transform .2s; }
.toast.hide { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }

@media (max-width: 420px) {
  .time { font-size: 38px; line-height: 40px; }
  .card { padding: 14px 14px 12px 16px; }
  .btn { padding: 0 14px; }
}
