/* ===========================================================
   clockwithus.com — Light Theme (Default)
   Design: White background, blue accent, modern SaaS aesthetic
   Matching CalculateHours.net visual language
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=DM+Mono:wght@400;500&family=Fraunces:opsz,wght@9..144,400..700&display=swap');

:root {
  --bg: #ffffff;
  --bg-elev: #f8fafc;
  --bg-elev-2: #f1f5f9;
  --paper: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --accent: #3b82f6;
  --accent-deep: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.1);
  --accent-glow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  --warn: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --success: #10b981;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] {
  --bg: #0a0f1e;
  --bg-elev: #131a2e;
  --bg-elev-2: #1c2540;
  --paper: #131a2e;
  --ink: #f1f5f9;
  --ink-soft: #cbd5e1;
  --ink-muted: #64748b;
  --line: #2c3651;
  --line-soft: #1c2540;
  --accent: #60a5fa;
  --accent-deep: #3b82f6;
  --accent-soft: rgba(96, 165, 250, 0.15);
  --accent-glow: 0 0 0 4px rgba(96, 165, 250, 0.2);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background:
    radial-gradient(circle at 15% 0%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(circle at 85% 100%, var(--accent-soft) 0%, transparent 60%);
  opacity: 0.25; pointer-events: none; z-index: 0;
}
[data-theme="dark"] body::before { opacity: 0.6; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
main { padding: 32px 0 64px; }

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 100;
}
[data-theme="dark"] .topbar { background: rgba(10, 15, 30, 0.85); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1240px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  position: relative; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.brand-mark::before, .brand-mark::after {
  content: ''; position: absolute; background: #fff; border-radius: 1px;
}
.brand-mark::before { width: 2px; height: 10px; top: 5px; left: 50%; transform: translateX(-50%); }
.brand-mark::after { width: 8px; height: 2px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.brand small {
  font-family: 'DM Mono', monospace; font-size: 10px; color: var(--accent);
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; margin-left: -2px;
}

.tools-nav {
  display: flex; gap: 2px; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 100px; padding: 4px;
}
.tools-nav a {
  padding: 9px 18px; border-radius: 100px; font-size: 14px; font-weight: 500;
  color: var(--ink-soft); text-decoration: none; transition: all 0.15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.tools-nav a:hover { color: var(--ink); background: var(--bg); }
.tools-nav a.active {
  background: var(--accent); color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.tools-nav svg { width: 15px; height: 15px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 8px; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.icon-btn:hover { background: var(--bg-elev); color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .format-label {
  font-family: 'DM Mono', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: inherit;
}

.clock-display { text-align: center; padding: 64px 24px 40px; position: relative; overflow: hidden; }
.clock-digits {
  font-family: 'DM Mono', monospace;
  /* Scaled to fit 12 chars on a 1366px laptop screen */
  font-size: clamp(40px, 10vw, 140px);
  font-weight: 500; letter-spacing: -0.04em; color: var(--ink); line-height: 1;
  display: inline-flex; align-items: baseline; gap: 4px;
  font-variant-numeric: tabular-nums; font-feature-settings: 'tnum';
  max-width: 100%;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.clock-digits .colon { color: var(--accent); animation: blink 1s infinite; }
.clock-digits .ampm { font-size: 0.3em; margin-left: 0.5em; color: var(--accent); font-weight: 600; align-self: center; }
.clock-digits .ms { font-size: 0.32em; color: var(--ink-muted); margin-left: 0.3em; align-self: center; }

/* Mobile — shrink further */
@media (max-width: 720px) {
  .clock-digits { font-size: clamp(36px, 11vw, 64px); gap: 2px; }
  .clock-digits .ampm { font-size: 0.35em; margin-left: 0.3em; }
}
/* Narrow screens */
@media (max-width: 380px) {
  .clock-digits { font-size: clamp(28px, 10vw, 52px); }
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.clock-date {
  margin-top: 16px; font-family: 'DM Mono', monospace; font-size: 13px;
  color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.15em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em; cursor: pointer; border: none; font-family: inherit;
  text-decoration: none; transition: all 0.15s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.btn-primary:hover {
  background: var(--accent-deep); transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}
.btn-secondary {
  background: var(--bg-elev); color: var(--ink); border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--bg-elev-2); border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--accent); background: var(--accent-soft); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

.control-panel {
  max-width: 600px; margin: 0 auto; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.field-group { margin-bottom: 18px; }
.field-group label {
  display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-muted); font-weight: 600; margin-bottom: 8px;
}
input[type="text"], input[type="number"], input[type="time"], input[type="date"], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  padding: 11px 14px; border-radius: 8px; font-family: 'DM Mono', monospace;
  font-size: 15px; transition: all 0.15s; font-variant-numeric: tabular-nums;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--accent-glow); }
select {
  cursor: pointer; font-family: 'Inter', sans-serif;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 12px center;
  background-size: 16px; padding-right: 36px; appearance: none; -webkit-appearance: none;
}
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.time-picker { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; justify-content: center; }

.section { margin-top: 56px; }
.section-header { text-align: center; margin-bottom: 28px; }
.section-header h2 {
  font-family: 'Fraunces', serif; font-size: clamp(26px, 4vw, 38px);
  font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--ink);
}
.section-header p { color: var(--ink-soft); font-size: 16px; max-width: 580px; margin: 0 auto; line-height: 1.6; }

.preset-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; max-width: 1040px; margin: 0 auto;
}
.preset-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; text-decoration: none; color: var(--ink); text-align: center;
  transition: all 0.15s; position: relative; overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.preset-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.preset-time {
  font-family: 'DM Mono', monospace; font-size: 22px; font-weight: 500;
  color: var(--accent); letter-spacing: -0.02em;
}
.preset-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-muted); margin-top: 4px; font-weight: 500;
}

.chips-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.chip {
  background: var(--paper); border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 14px; font-family: 'DM Mono', monospace; font-size: 13px;
  color: var(--ink-soft); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: all 0.15s;
}
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip svg { width: 12px; height: 12px; opacity: 0.6; }

.shortcuts-hint { text-align: center; margin-top: 28px; font-size: 12px; color: var(--ink-muted); }
kbd {
  display: inline-block; padding: 2px 8px; background: var(--bg-elev);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px;
  font-family: 'DM Mono', monospace; font-size: 11px; color: var(--ink-soft); margin: 0 2px;
}

.info-block {
  max-width: 720px; margin: 56px auto 0; padding: 36px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.info-block h2 {
  font-family: 'Fraunces', serif; font-size: 28px; font-weight: 500;
  margin-bottom: 18px; color: var(--ink); line-height: 1.25;
}
.info-block h3 {
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 500;
  margin-top: 28px; margin-bottom: 10px; color: var(--ink); line-height: 1.3;
}
.info-block p { color: var(--ink-soft); margin-bottom: 14px; font-size: 16.5px; line-height: 1.7; }
.info-block ul, .info-block ol { color: var(--ink-soft); margin: 12px 0 14px 20px; font-size: 16.5px; line-height: 1.7; }
.info-block li { margin-bottom: 6px; }
.info-block strong { color: var(--ink); font-weight: 600; }
.info-block a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.info-block a:hover { border-bottom-color: var(--accent); }

.duration-picker { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.duration-picker .field-group label { text-align: center; }
.duration-picker input { text-align: center; font-size: 24px; padding: 14px 8px; }

.lap-list { margin-top: 24px; max-height: 320px; overflow-y: auto; border-top: 1px solid var(--line); }
.lap-row {
  display: grid; grid-template-columns: 60px 1fr 1fr;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  font-family: 'DM Mono', monospace; font-size: 14px; font-variant-numeric: tabular-nums;
}
.lap-row:hover { background: var(--bg-elev); }
.lap-row .lap-num { color: var(--ink-muted); }
.lap-row .lap-split { color: var(--ink-soft); text-align: right; }
.lap-row .lap-total { color: var(--accent); text-align: right; }
.lap-row.best { background: rgba(16, 185, 129, 0.05); }
.lap-row.best .lap-total { color: var(--success); font-weight: 600; }
.lap-row.worst { background: rgba(245, 158, 11, 0.05); }
.lap-row.worst .lap-total { color: var(--warn); }

.alarm-overlay {
  position: fixed; inset: 0; background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px); z-index: 1000;
  display: none; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
}
[data-theme="dark"] .alarm-overlay { background: rgba(10, 15, 30, 0.98); }
.alarm-overlay.active { display: flex; animation: pulseFlash 1s infinite; }
@keyframes pulseFlash {
  0%, 100% { background: rgba(255, 255, 255, 0.98); }
  50% { background: rgba(59, 130, 246, 0.12); }
}
.alarm-message {
  font-family: 'Fraunces', serif; font-size: clamp(36px, 8vw, 80px);
  font-weight: 500; color: var(--ink); margin-bottom: 24px; text-align: center; letter-spacing: -0.02em;
}
.alarm-time {
  font-family: 'DM Mono', monospace; font-size: clamp(48px, 12vw, 120px);
  color: var(--accent); letter-spacing: -0.03em; margin-bottom: 48px;
  font-variant-numeric: tabular-nums; font-weight: 500;
}
.alarm-stop {
  padding: 20px 48px; font-size: 18px; font-weight: 700;
  background: var(--danger); color: white; border: none; border-radius: 100px;
  cursor: pointer; box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
  animation: pulseScale 1s infinite;
}
@keyframes pulseScale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.status-bar {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 100px;
  font-size: 13px; color: var(--accent-deep); font-weight: 500;
}
.status-bar .dot {
  width: 8px; height: 8px; background: currentColor; border-radius: 50%; animation: blink 1s infinite;
}

.holidays-list { max-width: 760px; margin: 0 auto; }
.holiday-card {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; text-decoration: none; color: var(--ink); transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.holiday-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.holiday-date {
  flex-shrink: 0; width: 80px; text-align: center; padding: 8px 12px;
  background: var(--bg-elev); border-radius: 8px; font-family: 'DM Mono', monospace;
}
.holiday-date .month {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600;
}
.holiday-date .day {
  font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1; margin-top: 2px;
}
.holiday-info { flex: 1; }
.holiday-info h3 {
  font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500;
  margin-bottom: 4px; color: var(--ink);
}
.holiday-info p { color: var(--ink-muted); font-size: 13px; }
.holiday-countdown {
  font-family: 'DM Mono', monospace; font-size: 12px; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 100px; white-space: nowrap;
}
@media (max-width: 560px) {
  .holiday-card { flex-wrap: wrap; }
  .holiday-countdown { width: 100%; text-align: center; }
}

.install-prompt {
  position: fixed; bottom: 24px; right: 24px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: none; align-items: center; gap: 16px; max-width: 400px; z-index: 200;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.install-prompt.active { display: flex; }
.install-prompt .install-info { flex: 1; }
.install-prompt .install-info strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.install-prompt .install-info span { font-size: 12px; color: var(--ink-muted); }
.install-prompt-close {
  background: transparent; border: none; color: var(--ink-muted); cursor: pointer;
  font-size: 20px; padding: 0; line-height: 1;
}
@media (max-width: 720px) {
  .install-prompt { left: 16px; right: 16px; bottom: 80px; max-width: none; }
}

footer {
  border-top: 1px solid var(--line); padding: 48px 0 24px;
  margin-top: 96px; background: var(--bg-elev);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-muted); margin-bottom: 14px; font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px; transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-tag {
  color: var(--ink-muted); font-size: 14px; max-width: 300px; line-height: 1.6; margin-top: 14px;
}
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-muted);
}
@media (max-width: 720px) { .footer-bottom { flex-direction: column; gap: 8px; } }

@media (max-width: 720px) {
  .topbar-inner { padding: 12px 16px; }
  .tools-nav { display: none; }
  .container { padding: 0 16px; }
  main { padding: 16px 0 32px; }
  .clock-display { padding: 32px 16px 24px; }
  .control-panel { padding: 20px; }
  .info-block { padding: 24px; }
  .time-picker { grid-template-columns: 1fr 1fr; }
  .time-picker .field-group:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.mobile-tools-nav { display: none; }
@media (max-width: 720px) {
  .mobile-tools-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line); padding: 8px;
    justify-content: space-around; z-index: 100;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
  }
  [data-theme="dark"] .mobile-tools-nav { background: rgba(10, 15, 30, 0.95); }
  .mobile-tools-nav a {
    flex: 1; text-align: center; color: var(--ink-muted); text-decoration: none;
    padding: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
    border-radius: 8px; display: flex; flex-direction: column; align-items: center;
    gap: 4px; font-weight: 600;
  }
  .mobile-tools-nav a.active { color: var(--accent); }
  .mobile-tools-nav svg { width: 18px; height: 18px; }
  body { padding-bottom: 64px; }
}

.hidden { display: none !important; }
.text-muted { color: var(--ink-muted); }
.text-accent { color: var(--accent); }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

::selection { background: var(--accent); color: #ffffff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-elev); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }

/* ====== SAVED ALARMS / TIMERS ====== */
.saved-alarm-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 100ms ease, transform 60ms ease, box-shadow 100ms ease;
}
.saved-alarm-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.10);
}
.saved-alarm-load {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 14px 38px 12px 16px;
  color: var(--ink);
  font-family: inherit;
}
.saved-alarm-load:active { transform: translateY(1px); }
.saved-alarm-name {
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
  word-break: break-word;
}
.saved-alarm-time {
  font-family: 'DM Mono', monospace;
  font-size: 20px; font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.saved-alarm-sub {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: capitalize;
}
.saved-alarm-del {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 100ms ease, color 100ms ease;
}
.saved-alarm-del:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.3);
}

/* ====== DAY-OF-WEEK PICKER (recurring alarms) ====== */
.day-picker {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.day-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 100ms ease;
  display: flex; align-items: center; justify-content: center;
}
.day-btn:hover {
  border-color: var(--accent);
}
.day-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.day-btn:active { transform: scale(0.95); }

.day-preset {
  font-family: inherit;
  font-size: 12px;
  padding: 5px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  border-radius: 14px;
  cursor: pointer;
  transition: all 100ms ease;
}
.day-preset:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.day-preset:active { transform: translateY(1px); }

/* Recurring-alarm card visual indicator */
.saved-alarm-card.recurring {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--paper) 0%, var(--accent-soft, rgba(59,130,246,0.04)) 100%);
}
.saved-alarm-days {
  display: flex; gap: 3px; margin-top: 4px;
}
.saved-alarm-day-pill {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
}
.saved-alarm-day-pill.on {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.saved-alarm-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
}
.saved-alarm-status.active {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}
.saved-alarm-status.paused {
  background: rgba(148, 163, 184, 0.18);
  color: var(--ink-muted);
}
.saved-alarm-next {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 4px;
  font-style: italic;
}
.saved-alarm-toggle {
  position: absolute; top: 8px; right: 38px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px; font-weight: 500;
  cursor: pointer;
  transition: all 100ms ease;
}
.saved-alarm-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Disclaimer note under saved alarms section */
.saved-alarms-disclaimer {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--bg-elev);
  border-left: 3px solid var(--ink-muted);
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ====== SR-ONLY (visually hidden, screen-reader/SEO accessible) ====== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ====== CITY TRAVEL / FOOD LISTS ====== */
.cwu-city-list {
  margin: 0 0 18px 0;
  padding-left: 22px;
  list-style: none;
  position: relative;
}
.cwu-city-list li {
  margin: 10px 0;
  line-height: 1.55;
  position: relative;
  padding-left: 4px;
}
.cwu-city-list li::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 9px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.cwu-city-list li strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   Ad banner — Adsterra 728x90 desktop / 320x50 mobile
   ============================================================ */
.ad-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px auto 0;
  padding: 0 20px;
  width: 100%;
  max-width: 1200px;
  min-height: 90px;
}
.ad-banner-inner {
  display: none;
  line-height: 0;
}
.ad-banner-inner.desktop {
  width: 728px;
  height: 90px;
}
.ad-banner-inner.mobile {
  width: 320px;
  height: 50px;
}
@media (min-width: 768px) {
  .ad-banner-inner.desktop { display: block; }
}
@media (max-width: 767px) {
  .ad-banner-inner.mobile { display: block; }
  .ad-banner { min-height: 50px; padding: 0 12px; }
}
@media print {
  .ad-banner { display: none !important; }
}
