:root{
  --bg:#0b1220;
  --card:#0f1a2e;
  --text:#e7eefc;
  --muted:#a8b6d6;
  --border:rgba(255,255,255,.10);
  --primary:#4f7cff;
  --primary2:#3a63e8;
  --danger:#ff3b4a;
  --shadow: 0 18px 60px rgba(0,0,0,.40);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% 10%, #142447 0%, var(--bg) 55%);
  color:var(--text);
}
.wrap{max-width:760px;margin:0 auto;padding:28px 18px 40px}
.header h1{margin:0 0 8px;font-size:34px;letter-spacing:.2px}
.sub{margin:0;color:var(--muted);line-height:1.35}
.card{
  margin-top:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--shadow);
  backdrop-filter: blur(6px);
}
.row{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end}
.field{flex:1;min-width:160px;display:flex;flex-direction:column;gap:6px}
.field span{font-size:12px;color:var(--muted)}
.field input[type="number"]{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(10,16,30,.55);
  color:var(--text);
  font-size:16px;
  outline:none;
}
.field input[type="number"]:focus{border-color:rgba(79,124,255,.65)}
.display{margin:16px 0 14px;padding:14px;border-radius:16px;border:1px solid var(--border);background:rgba(0,0,0,.18)}
.time{font-variant-numeric:tabular-nums; font-size:56px; letter-spacing:1px; line-height:1.1}
.status{margin-top:6px;color:var(--muted)}
.buttons{display:flex;gap:10px;flex-wrap:wrap}
button{
  border-radius:12px;
  border:1px solid var(--border);
  padding:10px 14px;
  font-size:15px;
  color:var(--text);
  background:rgba(255,255,255,.06);
  cursor:pointer;
}
button:disabled{opacity:.45; cursor:not-allowed}
.primary{background:linear-gradient(180deg, var(--primary), var(--primary2)); border-color:rgba(79,124,255,.75)}
.secondary{background:rgba(255,255,255,.10)}
.ghost{background:transparent}
.advanced{margin-top:14px}
.advanced summary{cursor:pointer;color:var(--muted)}
.checkbox{display:flex;gap:10px;align-items:center;color:var(--muted);padding:10px 0}
.checkbox input{transform: translateY(1px)}
.hint{color:var(--muted);margin:6px 0 0;line-height:1.35}
.footer{margin-top:14px;color:rgba(168,182,214,.75);font-size:12px}

.alarm{
  position:fixed; inset:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.60);
  padding:18px;
}
.alarm-inner{
  width:min(520px, 100%);
  border-radius:20px;
  border:1px solid rgba(255,255,255,.15);
  background: linear-gradient(180deg, rgba(255,59,74,.25), rgba(15,26,46,.95));
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
  padding:18px;
}
.alarm-title{font-size:40px;letter-spacing:.2px;margin-bottom:6px}
.alarm-sub{color:rgba(231,238,252,.85);margin-bottom:16px}
.alarm-buttons{display:flex;gap:10px;flex-wrap:wrap}
