:root{
  --bg:#07101f;
  --bg2:#0b1728;
  --panel:rgba(12,25,43,.78);
  --panel-strong:rgba(16,32,54,.92);
  --line:rgba(255,255,255,.11);
  --line-strong:rgba(172,214,255,.30);
  --text:#f3f8ff;
  --muted:#9fb1c6;
  --accent:#b9dcff;
  --accent2:#77b5ff;
  --danger:#ffb0b0;
  --success:#89e3ad;
  --shadow:0 30px 90px rgba(0,0,0,.38);
  font-family:Inter,"Segoe UI","Microsoft YaHei",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{
  margin:0;
  min-width:320px;
  min-height:100vh;
  color:var(--text);
  background:
    radial-gradient(circle at 82% -8%,rgba(64,126,194,.20),transparent 33%),
    radial-gradient(circle at 8% 28%,rgba(34,78,126,.12),transparent 28%),
    linear-gradient(180deg,#07101f 0%,#091423 48%,#07101f 100%);
}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.wrap{width:min(1180px,94vw);margin:0 auto;padding:22px 0 70px}
header{
  min-height:105px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  padding:20px 27px;
  margin-bottom:13px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  background:
    radial-gradient(circle at 90% 0%,rgba(88,158,229,.17),transparent 40%),
    linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.025));
}
header h1{margin:0;font-size:35px;font-weight:700;letter-spacing:-.02em}
.eyebrow{
  margin:0 0 8px;
  color:#a9c8e8;
  font-size:10px;
  font-weight:700;
  letter-spacing:.19em;
  text-transform:uppercase;
}
.link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 15px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:11px;
  color:#d0e4f7;
  background:rgba(255,255,255,.055);
  font-size:12px;
  transition:.18s ease;
}
.link:hover{border-color:rgba(142,199,255,.45);background:rgba(109,166,224,.10);transform:translateY(-1px)}
.card{
  margin:13px 0 0;
  padding:19px 20px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(19,39,65,.72),rgba(8,19,34,.64));
  box-shadow:0 18px 46px rgba(0,0,0,.14);
}
.identity{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:76px;
}
.label{
  display:block;
  color:#73889e;
  font-size:9px;
  font-weight:650;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.identity strong{display:block;margin-top:4px;font-size:15px}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:86px;
  padding:6px 10px;
  border:1px solid rgba(82,156,232,.42);
  border-radius:999px;
  color:#9dcbff;
  background:rgba(65,130,198,.12);
  font-size:10px;
  font-weight:750;
  letter-spacing:.05em;
}
h2{margin:0 0 16px;font-size:18px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}
label{color:#9fb1c6;font-size:12px}
input{
  display:block;
  width:100%;
  margin-top:7px;
  padding:12px 13px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:11px;
  outline:none;
  color:#edf6ff;
  background:rgba(4,11,21,.46);
}
input::placeholder{color:#60778d}
input:focus{border-color:rgba(142,199,255,.50);box-shadow:0 0 0 3px rgba(95,164,229,.08)}
button{
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  color:#d0e4f7;
  background:rgba(255,255,255,.055);
  cursor:pointer;
  transition:.18s ease;
}
button:hover{border-color:rgba(142,199,255,.45);background:rgba(109,166,224,.10);transform:translateY(-1px)}
button:disabled{opacity:.48;cursor:not-allowed;transform:none}
.primary{
  border-color:rgba(84,174,255,.44);
  color:#eef8ff;
  background:linear-gradient(180deg,rgba(64,139,211,.30),rgba(41,100,160,.23));
}
.primary:hover{background:linear-gradient(180deg,rgba(75,154,230,.38),rgba(46,111,176,.28))}
.danger{color:var(--danger);border-color:rgba(230,108,108,.38)}
.ghost{background:rgba(150,44,44,.08)}
.session-head,.actions{display:flex;align-items:center;justify-content:space-between;gap:14px}
.session-head h2{margin:4px 0 0}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}
.stats div{
  padding:12px 13px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:12px;
  background:rgba(4,11,21,.32);
}
.stats span{display:block;margin-bottom:5px;color:#71869b;font-size:10px}
.stats strong{font-size:13px;color:#dce9f5}
.instruction{
  margin:16px 0;
  padding:15px 16px;
  border:1px solid rgba(112,184,255,.23);
  border-radius:12px;
  color:#bdd6ec;
  background:rgba(53,113,172,.11);
  line-height:1.7;
  font-size:12px;
}
.actions{justify-content:flex-start;flex-wrap:wrap}
.hidden{display:none!important}
.note p{margin:0;color:#8397ab;line-height:1.75;font-size:12px}
code{
  padding:2px 6px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:6px;
  color:#cce7ff;
  background:rgba(0,0,0,.26);
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.plan-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.plan-row:first-child{border-top:0}
.plan-row strong{color:#e3edf7}
.plan-row .label{margin-top:5px;text-transform:none;letter-spacing:.04em;font-size:10px}
.run-plan{min-width:96px}
.toast{
  position:fixed;
  z-index:100;
  right:24px;
  bottom:24px;
  max-width:380px;
  padding:12px 16px;
  border:1px solid rgba(172,214,255,.25);
  border-radius:11px;
  color:#eaf5ff;
  background:rgba(9,25,43,.96);
  box-shadow:var(--shadow);
  font-size:12px;
}
@media(max-width:720px){
  .wrap{width:94vw;padding:16px 0 48px}
  header{align-items:flex-start;flex-direction:column;padding:18px 20px}
  header h1{font-size:29px}
  .link{width:100%}
  .grid,.stats{grid-template-columns:1fr}
  .identity,.session-head,.plan-row{align-items:flex-start;flex-direction:column}
  .run-plan{width:100%}
}
.plan-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.plan-copy{min-width:0}
.rename-plan{border-color:rgba(112,184,255,.28);color:#b9dcff;background:rgba(53,113,172,.08)}
.alarm-grid{display:grid;grid-template-columns:minmax(180px,.32fr) minmax(0,1fr);gap:14px;margin:16px 0}
.alarm-time-field{align-self:start}
.alarm-script-field{min-width:0}
.alarm-field-label{display:block;margin-bottom:7px;color:#9fb1c6;font-size:12px}
.alarm-plan-list{display:flex;flex-wrap:wrap;gap:8px;min-height:44px}
.alarm-plan-option{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:8px 10px;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(4,11,21,.34);color:#dce9f5;cursor:pointer}
.alarm-plan-option input{display:inline-block;width:auto;margin:0;padding:0;accent-color:#77b5ff}
.alarm-empty{align-self:center;color:#71869b;font-size:11px}
.alarm-actions{margin-top:4px}
.alarm-status{margin:12px 0 0;color:#bdd6ec;font-size:12px;line-height:1.65}
.alarm-help{margin:7px 0 0;color:#71869b;font-size:11px;line-height:1.65}
.badge.alarm-enabled{color:#89e3ad;border-color:rgba(81,190,123,.38);background:rgba(60,166,102,.10)}
.badge.alarm-running{color:#ffd38b;border-color:rgba(230,177,84,.38);background:rgba(170,112,32,.10)}
@media(max-width:720px){
  .alarm-grid{grid-template-columns:1fr}
  .plan-actions{width:100%;justify-content:stretch}
  .plan-actions button{flex:1}
}
