.admin-quick-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0; }
.admin-form-group { margin:16px 0; border:1px solid #ded2d6; border-radius:14px; background:white; overflow:hidden; }
.admin-form-group>summary { cursor:pointer; padding:18px; color:#860a2e; font-size:18px; font-weight:700; min-height:48px; box-sizing:border-box; overflow-wrap:anywhere; }
.admin-form-group>.panel { margin:0; border:0; box-shadow:none; }
.admin-form-group form { scroll-margin-top:24px; }
.admin-quick-actions button { white-space:normal; min-height:48px; overflow-wrap:anywhere; }
@media(max-width:600px) {
  .admin-quick-actions { grid-template-columns:1fr; }
  input, select, textarea { font-size:16px; min-height:46px; max-width:100%; box-sizing:border-box; }
  button, .mode-switch a { min-height:44px; white-space:normal; }
  .helper, .panel p { font-size:16px; line-height:1.55; }
  .panel, .grid-form, .grid-form>label { min-width:0; }
  .panel h2 { font-size:21px; line-height:1.3; overflow-wrap:anywhere; }
  .mode-switch { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

.admin-quick-actions a {display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;box-sizing:border-box;background:#860a2e;color:#fff;border-radius:12px;text-align:center;text-decoration:none;font-weight:700;overflow-wrap:anywhere}.admin-quick-actions a:focus-visible{outline:3px solid #222;outline-offset:3px}

.trial-entry>td{background:#fff4d6}.trial-entry>td:first-child{border-left:5px solid #936000}.trial-label{display:inline-block;margin-top:6px;padding:4px 8px;border-radius:6px;background:#ffdf91;color:#493000;font-weight:700;line-height:1.5}

.admin-overview{background:#fff;border:1px solid #ded2d6;border-radius:16px;padding:clamp(16px,3vw,28px);margin:16px 0 24px}.admin-overview h2{margin:0 0 8px;color:#860a2e}.admin-overview p{margin:0 0 20px;line-height:1.55;color:#595355}.admin-overview h3{font-size:1rem;margin:22px 0 10px}.admin-request-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-request-cards a{display:flex;flex-direction:column;gap:6px;padding:18px;border-radius:12px;background:#f6edf0;border:1px solid #e5cdd6;color:#790c2d;text-decoration:none;overflow-wrap:anywhere}.admin-request-cards strong{font-size:1.1rem}.admin-request-cards span{color:#595355;font-size:1rem;line-height:1.45}.admin-overview .admin-quick-actions{margin:0}.admin-overview .admin-quick-actions :is(button,a){background:#fff;color:#790c2d;border:1px solid #decbd2;border-radius:10px;text-align:left;justify-content:flex-start;padding:12px 16px;font-size:1rem;font-weight:600}.admin-overview :is(a,button):hover{background:#f2e1e8}.admin-overview :is(a,button):focus-visible{outline:3px solid #860a2e;outline-offset:3px}@media(max-width:600px){.admin-request-cards{grid-template-columns:1fr}}
/* Keep the working area visible on phones and preserve clear field groups. */
@media(max-width:600px){
 .topbar{position:static;flex-direction:column;align-items:stretch;gap:8px;padding:10px 12px}
 .topbar h1{font-size:20px;line-height:1.25}
 .topbar p{display:none}
 .mode-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 .mode-switch :is(button,a){min-width:0;padding:8px 6px;font-size:14px;text-align:center;justify-content:center}
 #adminView .summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #adminView .metric{padding:12px}
 .admin-overview{padding:16px;margin:0}
 .admin-overview p{margin-bottom:12px}
 .admin-overview h3{margin:14px 0 8px}
 .admin-request-cards a{padding:12px;gap:4px}
}
