:root{--bg:#F5F8FD;--surface:#fff;--surface-2:#EAF0FA;--ink:#0A1E3A;--muted:#4A5A72;--line:#D6DFEC;--navy:#002855;--gold:#F7C948;--gold-ink:#2E2200;--crimson:#8B0000;--btn-bg:#002855;--btn-ink:#fff;--ok-bg:#DDF4E6;--ok-ink:#0B4A25;--warn-bg:#FFF4CF;--warn-ink:#3A2B00;--err-bg:#FCE3E3;--err-ink:#6B0F0F;--info-bg:#E6EEFB;--info-ink:#0A2A57}
@media (prefers-color-scheme:dark){:root{--bg:#061224;--surface:#0C2038;--surface-2:#12294A;--ink:#EAF1FB;--muted:#A3B4CC;--line:#1E3A5F;--btn-bg:#F7C948;--btn-ink:#2E2200;--ok-bg:#0F3B26;--ok-ink:#CFF3DD;--warn-bg:#3E3210;--warn-ink:#FFE9A8;--err-bg:#4A1616;--err-ink:#FFD5D5;--info-bg:#12305C;--info-ink:#DCE8FB}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:400 15px/1.55 Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;padding:0 0 env(safe-area-inset-bottom,0)}
h1,h2,h3{font-family:"Bricolage Grotesque","Trebuchet MS",system-ui,sans-serif;line-height:1.15;margin:0 0 8px;text-wrap:balance}
h1{font-size:1.7rem}h2{font-size:1.25rem}h3{font-size:1.05rem}
.muted{color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:var(--navy);color:#fff;padding:calc(12px + env(safe-area-inset-top,0)) 16px 12px}
.brand b{font:800 1.15rem "Bricolage Grotesque",system-ui,sans-serif;margin-right:10px}.brand span{color:#B9C8DE;font-size:.85rem}
.who{display:flex;align-items:center;gap:10px;font-size:.82rem;color:#DCE7F7}
.wrap{max-width:1040px;margin:0 auto;padding:20px 16px 60px}.narrow{max-width:460px}
.card,.item{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px}
.card{display:grid;gap:8px;margin-top:14px}
label{font-weight:600;font-size:.84rem;display:block;margin-top:4px}
input,select,textarea{width:100%;font:inherit;color:var(--ink);background:var(--surface);border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;min-height:44px}
textarea{min-height:90px;resize:vertical}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.btn,.ghost,.tabs button,.mini{font:600 .88rem Poppins,system-ui,sans-serif;border-radius:999px;cursor:pointer;min-height:44px;padding:10px 18px;border:1.5px solid var(--btn-bg)}
.btn{background:var(--btn-bg);color:var(--btn-ink)}
.ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.top .ghost{color:#fff;border-color:rgba(255,255,255,.4);min-height:36px;padding:6px 14px}
.mini{min-height:40px;padding:8px 14px;font-size:.82rem;background:var(--btn-bg);color:var(--btn-ink)}
.mini.no{background:transparent;color:var(--crimson);border-color:var(--crimson)}
.mini.alt{background:transparent;color:var(--ink);border-color:var(--line)}
@media (prefers-color-scheme:dark){.mini.no{color:#FFB4B4;border-color:#FFB4B4}}
button:disabled{opacity:.55;cursor:progress}
.err{color:var(--crimson);min-height:1.2em;margin:0;font-size:.86rem}
@media (prefers-color-scheme:dark){.err{color:#FFB4B4}}
.tabs{display:flex;gap:8px;overflow-x:auto;margin-bottom:16px;padding-bottom:4px;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{flex:none;background:var(--surface);color:var(--ink);border-color:var(--line)}
.tabs button[aria-selected="true"]{background:var(--btn-bg);color:var(--btn-ink);border-color:var(--btn-bg)}
.tabs em{font-style:normal;background:var(--gold);color:var(--gold-ink);border-radius:999px;padding:0 7px;margin-left:6px;font-size:.74rem}
.bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.bar select{max-width:340px}
.note{border-radius:12px;padding:12px 14px;margin:0 0 14px;background:var(--info-bg);color:var(--info-ink)}
.note.ok{background:var(--ok-bg);color:var(--ok-ink)}.note.err{background:var(--err-bg);color:var(--err-ink)}.note.warn{background:var(--warn-bg);color:var(--warn-ink)}
.list{display:grid;gap:12px}
.item{display:grid;gap:8px}
.item .row{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;justify-content:space-between}
.item .meta{font-size:.84rem;color:var(--muted);overflow-wrap:anywhere}
.item .meta b{color:var(--ink)}
.item .acts{display:flex;flex-wrap:wrap;gap:8px}
.st{display:inline-block;border-radius:999px;padding:3px 12px;font:700 .72rem Poppins,sans-serif;background:var(--info-bg);color:var(--info-ink)}
.st.ok{background:var(--ok-bg);color:var(--ok-ink)}.st.pend,.st.warn{background:var(--warn-bg);color:var(--warn-ink)}.st.no{background:var(--err-bg);color:var(--err-ink)}
.grid2{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.sub{margin:26px 0 10px;font:700 .78rem Poppins,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.chk{display:flex;align-items:center;gap:8px;font-weight:500}.chk input{width:auto;min-height:0}
details.add{margin:10px 0}details.add summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
a{color:inherit}
/* ================= APPEND TO css/admin.css ================= */
.rp { margin-top: 12px; }
.rp-stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; border: 1px solid #d6d6d6; border-radius: 6px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; background: #f4f4f4; }
.rp-stage[hidden] { display: none; }
.rp-stage img { display: block; max-width: 100%; height: auto; pointer-events: none; }
.rp-box { position: absolute; border: 2px dashed #e8590c; background: rgba(232, 89, 12, .12); cursor: move; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.rp-box.locked { cursor: default; border-style: solid; background: rgba(232, 89, 12, .06); }
.rp-text { pointer-events: none; white-space: nowrap; line-height: 1; font-weight: 600; font-family: Georgia, "Times New Roman", serif; }
.rp-h { position: absolute; width: 14px; height: 14px; background: #fff; border: 2px solid #e8590c; border-radius: 50%; box-sizing: border-box; }
.rp-box.locked .rp-h { display: none; }
.rp-nw { left: -8px; top: -8px; cursor: nwse-resize; } .rp-ne { right: -8px; top: -8px; cursor: nesw-resize; }
.rp-sw { left: -8px; bottom: -8px; cursor: nesw-resize; } .rp-se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.rp-hint { margin: 8px 0 0; font-size: .85rem; }
.rp-empty { margin: 8px 0; }
.item.tpl { display: flex; gap: 12px; align-items: flex-start; }
.tpl-thumb { width: 120px; max-width: 35%; height: auto; border-radius: 4px; border: 1px solid #d6d6d6; }
@media (max-width: 480px) { .rp-h { width: 22px; height: 22px; } .rp-nw { left: -12px; top: -12px; } .rp-ne { right: -12px; top: -12px; } .rp-sw { left: -12px; bottom: -12px; } .rp-se { right: -12px; bottom: -12px; } }
.item.clickable { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.item.clickable:hover, .item.clickable:focus-visible { box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-1px); outline: none; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 20px; margin: 12px 0; }
.pf { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-l { font-size: .78rem; opacity: .65; }
.pf-v { font-weight: 500; overflow-wrap: anywhere; }
#userSearch { flex: 1 1 220px; min-width: 0; }
.pager { justify-content: space-between; align-items: center; margin-top: 14px; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }


/* FOR DRAGGING THE DATE */
/* Append to css/admin.css (keeps your existing .rp, .rp-stage, .rp-box, .rp-h rules) */

.rp-tools { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }

/* small label in the corner of each box */
.rp-tag {
  position: absolute; left: 0; top: -18px;
  font: 600 10px/1 Poppins, system-ui, sans-serif;
  padding: 3px 6px; border-radius: 4px 4px 0 0;
  background: #2563eb; color: #fff; pointer-events: none; white-space: nowrap;
}
.rp-box.rp-date { border-color: #db2777; }
.rp-box.rp-date .rp-tag { background: #db2777; }
.rp-box.rp-date .rp-h { background: #db2777; }

/* the box currently being placed is brighter, the other is softer */
.rp-box { opacity: .75; }
.rp-box.on { opacity: 1; z-index: 2; box-shadow: 0 0 0 2px rgba(37, 99, 235, .35); }
.rp-box.rp-date.on { box-shadow: 0 0 0 2px rgba(219, 39, 119, .35); }
.rp-box.locked { opacity: 1; box-shadow: none; }
.rp-box.locked .rp-tag { display: none; }

/* keep the toggle buttons readable when active */
.rp-tools .mini[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: 1px; }



.p-certs{margin:0 0 28px}
.p-certlist{display:grid;gap:12px;margin-top:12px}
.p-cert{border:1px solid var(--line,#e2e8f0);border-radius:12px;padding:14px 16px;background:var(--surface,#fff)}
.p-cert-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.p-cert-st{font-size:.78rem;font-weight:600;padding:3px 10px;border-radius:99px}
.p-cert-st.ok{background:#dcfce7;color:#166534}
.p-cert-st.no{background:#fee2e2;color:#991b1b}
.p-cert-id{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.p-cert-l{font-size:.8rem;color:var(--muted,#64748b)}
.p-cert-id code{font-weight:600;letter-spacing:.03em}
.p-cert-meta{margin-top:6px;font-size:.88rem;color:var(--muted,#64748b)}