*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  background:#eef1f5;
  color:#0a2546;
  font-family:"Segoe UI","Noto Naskh Arabic","Droid Arabic Naskh",Tahoma,Arial,sans-serif;
  font-size:18px;
  line-height:1.6;
  -webkit-text-size-adjust:100%;
}
.top{
  background:#0a2546;
  color:#fff;
  padding:calc(12px + env(safe-area-inset-top,0px)) 14px 12px;
  border-bottom:3px solid #b3802f;
}
.now{max-width:720px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:2px}
.nowdate{color:#cca658;font-size:16px;font-weight:700}
.nowtime{font-size:30px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}
main{padding:14px 12px 40px;max-width:720px;margin:0 auto}
.box{background:#fff;border-radius:14px;padding:12px;box-shadow:0 1px 3px rgba(10,37,70,.12)}
#txt{
  display:block;width:100%;
  min-height:200px;
  padding:14px;
  border:2px solid #c9d3e0;
  border-radius:12px;
  font-family:inherit;
  font-size:21px;
  line-height:1.8;
  color:#0a2546;
  background:#fdfefe;
  resize:vertical;
  outline:none;
}
#txt:focus{border-color:#b3802f;background:#fff}
#txt::placeholder{color:#9aa8bc}
.editbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;flex-wrap:wrap}
.editbar[hidden]{display:none}
.edittime{font-size:17px;color:#8a6410;font-weight:700}
.cancel{
  font-family:inherit;font-size:17px;font-weight:700;
  background:#fff;color:#0a2546;border:2px solid #c9d3e0;border-radius:10px;
  padding:10px 14px;cursor:pointer;
}
.cancel:active{background:#e6ebf2}
.save{
  display:block;width:100%;
  margin-top:12px;
  min-height:68px;
  border:0;border-radius:14px;
  background:#0a2546;color:#fff;
  font-family:inherit;font-size:25px;font-weight:700;
  cursor:pointer;
  transition:transform .06s ease,background .12s ease;
}
.save:active{transform:scale(.985);background:#123a68}
.save[data-busy="1"]{background:#123a68;opacity:.85}
.msg{margin:10px 2px 0;min-height:24px;font-size:17px;color:#8a6410;font-weight:700}
.msg.err{color:#a1231b}
.groups{margin-top:18px}
.group{margin-bottom:18px}
.ghead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 4px 8px}
.glabel{font-size:19px;font-weight:700;color:#0a2546}
.glabel small{display:block;font-size:14px;font-weight:600;color:#6b7c93}
.gdel{
  font-family:inherit;font-size:15px;font-weight:700;
  background:#fff;color:#a1231b;border:2px solid #e3c8c5;border-radius:10px;
  padding:8px 12px;cursor:pointer;white-space:nowrap;
}
.gdel:active{background:#fbeceb}
.list{list-style:none;margin:0;padding:0}
.rec{
  background:#fff;border-radius:14px;padding:12px 14px;margin-bottom:10px;
  border-right:5px solid #b3802f;
  box-shadow:0 1px 3px rgba(10,37,70,.10);
}
.rec:active{background:#f4f7fb}
.rec.pend{border-right-color:#8a6410;background:#fffaf0}
.rec .body{
  font-size:19px;line-height:1.8;white-space:pre-wrap;word-break:break-word;
  margin:0 0 8px;color:#0a2546;
}
.rec .foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rec .when{font-size:15px;color:#6b7c93;font-weight:700}
.rec .flag{font-size:15px;color:#8a6410;font-weight:700;margin-inline-start:8px}
.rec .del{
  font-family:inherit;font-size:15px;font-weight:700;
  background:#fff;color:#a1231b;border:2px solid #e3c8c5;border-radius:9px;
  padding:6px 12px;cursor:pointer;
}
.rec .del:active{background:#fbeceb}
.empty{margin:22px 4px;color:#6b7c93;font-size:18px;text-align:center}
.ask{position:fixed;inset:0;background:rgba(10,37,70,.55);display:flex;align-items:center;justify-content:center;padding:18px;z-index:50}
.ask[hidden]{display:none}
.askbox{background:#fff;border-radius:16px;padding:18px;width:100%;max-width:420px}
.asktext{margin:0 0 16px;font-size:19px;font-weight:700;line-height:1.7;color:#0a2546}
.askrow{display:flex;gap:10px}
.askyes,.askno{
  flex:1;font-family:inherit;font-size:19px;font-weight:700;
  min-height:56px;border-radius:12px;cursor:pointer;border:0;
}
.askyes{background:#a1231b;color:#fff}
.askyes:active{background:#8a1d16}
.askno{background:#eef1f5;color:#0a2546;border:2px solid #c9d3e0}
.askno:active{background:#e2e8f0}
