/* UMBRELLAHTECH SMS 3.6.1 - redesigned forms: sectioned cards, progress, segmented attendance.
   Scoped to .uhtf-* and .uht-modern so it cannot restyle the host theme. Colours follow Appearance & Themes. */
.uhtf-form{--p:var(--uht-primary,#5b5cf0);--ink:var(--uht-text,#111827);--mute:var(--uht-muted,#6b7280);--line:var(--uht-border,#dfe3ec);--soft:var(--uht-soft,#eef0ff);--ok:#059669;--bad:#dc2626;--late:#d97706;--exc:#2563eb}
.uhtf-form,.uhtf-form *{box-sizing:border-box}
.uhtf-prog{background:var(--uht-bg,#fff);padding:4px 0 6px;margin-bottom:10px}
.uhtf-prog i{display:block;height:6px;border-radius:9px;background:var(--line);overflow:hidden}
.uhtf-prog i b{display:block;height:100%;width:0;background:var(--p);transition:width .25s}
.uhtf-prog span{display:block;font-size:12.5px;color:var(--mute);margin-top:4px}
.uhtf-card{background:var(--uht-bg,#fff);border:1px solid var(--line);border-radius:14px;padding:16px;margin:0 0 14px}
.uhtf-card>h3{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--line);font-size:16px;line-height:1.3;color:var(--ink)}
.uhtf-card>h3 .n{flex:none;width:30px;height:30px;border-radius:10px;background:var(--soft);color:var(--p);display:grid;place-items:center;font-size:14px;font-weight:700}
.uhtf-body{display:grid;gap:14px}
@media(min-width:700px){.uhtf-body{grid-template-columns:1fr 1fr}.uhtf-body>.uht-grid,.uhtf-body>.uht-wide,.uhtf-body>.uhtf-full{grid-column:1/-1}}
.uhtf-body>p,.uhtf-body>div{margin:0}
.uhtf-body .uht-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.uhtf-form label{font-weight:600;font-size:14px;color:var(--ink)}
.uhtf-form label .req{color:var(--bad);margin-left:2px}
.uhtf-form input:not([type]),.uhtf-form input[type=search],.uhtf-form input[type=text],.uhtf-form input[type=tel],.uhtf-form input[type=email],.uhtf-form input[type=date],.uhtf-form input[type=number],.uhtf-form select,.uhtf-form textarea{width:100%;min-height:44px;margin-top:6px;padding:10px 12px;font-size:15px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);box-shadow:none}
.uhtf-form input[type=file]{width:100%;margin-top:6px;padding:10px;border:2px dashed var(--line);border-radius:10px;background:var(--soft)}
.uhtf-form input:focus,.uhtf-form select:focus,.uhtf-form textarea:focus{outline:2px solid var(--p);outline-offset:1px;border-color:var(--p)}
.uhtf-form .uhtf-bad{border-color:var(--bad)!important}
.uhtf-form input[type=checkbox]{width:20px;height:20px;accent-color:var(--p);vertical-align:middle;margin-right:8px}
.uhtf-form .uht-consent,.uhtf-card .uht-consent{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
.uhtf-form button[type=submit],.uhtf-form .uht-btn{width:100%;min-height:48px;border-radius:10px;font-size:16px;font-weight:700;background:var(--p);color:#fff;border:0;cursor:pointer}
@media(min-width:700px){.uhtf-form button[type=submit],.uhtf-form .uht-btn{width:auto;min-width:240px}}


/* Attendance register */
.uhtf-sum{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 10px}
.uhtf-chip{border:1px solid #dfe3ec;border-radius:999px;padding:5px 11px;font-size:12.5px;font-weight:600;background:#fff}
.uhtf-chip i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;background:var(--c,#9ca3af)}
.uhtf-rate{flex:1 1 100%;height:8px;border-radius:9px;background:#e5e7eb;overflow:hidden}.uhtf-rate b{display:block;height:100%;background:#059669;width:0;transition:width .25s}
.uhtf-search{width:100%;min-height:42px;margin:0 0 10px;padding:10px 12px;border:1px solid #dfe3ec;border-radius:10px}
.uhtf-hide{position:absolute!important;opacity:0;pointer-events:none;width:1px;height:1px}
.uhtf-seg{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:3px;border:1px solid #dfe3ec;border-radius:12px;min-width:260px}
.uhtf-seg button{border:0;background:none;border-radius:9px;min-height:46px;padding:6px 2px;font-size:12px;font-weight:600;color:#6b7280;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px}
.uhtf-seg button b{font-size:15px;line-height:1}
.uhtf-seg button[aria-pressed=true]{color:#fff}
.uhtf-seg button[data-v=present][aria-pressed=true]{background:#059669}
.uhtf-seg button[data-v=absent][aria-pressed=true]{background:#dc2626}
.uhtf-seg button[data-v=late][aria-pressed=true]{background:#d97706}
.uhtf-seg button[data-v=excused][aria-pressed=true]{background:#2563eb}
.uhtf-seg button:focus-visible{outline:2px solid #5b5cf0}
@media(max-width:782px){.uhtf-reg table.widefat thead{display:none}.uhtf-reg table.widefat,.uhtf-reg table.widefat tbody{display:block}
.uhtf-reg table.widefat tr{display:grid;grid-template-columns:1fr;gap:6px;padding:12px 4px;border-bottom:1px solid #dfe3ec;background:none!important}
.uhtf-reg table.widefat td{display:block;padding:0!important;border:0!important}
.uhtf-reg table.widefat td:first-child{display:none}
.uhtf-reg table.widefat td:nth-child(2){font-size:12.5px;color:#6b7280}
.uhtf-reg table.widefat td:nth-child(3){font-weight:700;font-size:15px}
.uhtf-seg{min-width:0}}
@media print{.uhtf-sum,.uhtf-search,.uhtf-seg{display:none!important}.uhtf-hide{position:static!important;opacity:1;width:auto;height:auto}}

/* Students / Staff admin forms (3.6.2) */
.uhtf-form .uhtf-f label{display:block;margin-bottom:6px}
.uhtf-form .regular-text,.uhtf-form .large-text{width:100%;max-width:100%}
.uhtf-form .description{margin:6px 0 0;font-size:12.5px;color:var(--mute)}
.uhtf-form input[readonly]{background:var(--soft);color:var(--mute)}
.uhtf-form p.submit{margin:6px 0 14px}
.uhtf-form input[type=submit]{min-height:46px;border-radius:10px;font-weight:700;padding:0 22px}
.uhtf-form .uhtf-f img{border-radius:10px}

/* 3.7.1 - one modern look for every public form: login, exams, assignments, offline learning, portal */
.uht-portal,.uht-login-panel,.uht-online-exam-portal,.uht-assignment-list,.uht-offline-learning,.uht-public-form,.uht-portal-extra{--p:var(--uht-primary,#5b5cf0);--line:var(--uht-border,#dfe3ec);--ink:var(--uht-text,#111827);--soft:var(--uht-soft,#eef0ff)}
.uht-login-panel,.uht-online-exam-portal,.uht-assignment-list,.uht-offline-learning,.uht-portal-extra{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;margin:0 0 14px}
.uht-login-panel #uht-loginform p{margin:0 0 14px}
.uht-login-panel #uht-loginform label{display:block;font-weight:600;margin-bottom:6px}
.uht-login-panel input[type=text],.uht-login-panel input[type=password],.uht-login-panel input[type=email],
.uht-online-exam-portal input[type=text],.uht-online-exam-portal textarea,.uht-online-exam-portal select,
.uht-assignment-list input[type=text],.uht-assignment-list input[type=file],.uht-assignment-list textarea,.uht-assignment-list select,
.uht-portal input[type=text],.uht-portal input[type=search],.uht-portal select,.uht-portal textarea{width:100%;min-height:44px;padding:10px 12px;font-size:15px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);box-sizing:border-box}
.uht-assignment-list input[type=file]{border:2px dashed var(--line);background:var(--soft)}
.uht-login-panel input:focus,.uht-online-exam-portal textarea:focus,.uht-online-exam-portal input:focus,.uht-assignment-list textarea:focus,.uht-portal input:focus{outline:2px solid var(--p);outline-offset:1px;border-color:var(--p)}
.uht-login-panel input[type=submit],.uht-login-panel .button,.uht-online-exam-portal .button,.uht-online-exam-portal button[type=submit],.uht-assignment-list .button,.uht-assignment-list button[type=submit],.uht-assignment-list input[type=submit]{width:100%;min-height:48px;border:0;border-radius:10px;background:var(--p);color:#fff;font-size:16px;font-weight:700;cursor:pointer}
@media(min-width:700px){.uht-login-panel input[type=submit],.uht-online-exam-portal button[type=submit],.uht-assignment-list button[type=submit],.uht-assignment-list input[type=submit]{width:auto;min-width:220px}}
.uht-online-exam-portal fieldset{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:0 0 12px}
.uht-online-exam-portal legend{font-weight:700;padding:0 6px}
.uht-online-exam-portal fieldset label{display:flex;gap:10px;align-items:center;padding:8px 0}
.uht-online-exam-portal input[type=radio],.uht-online-exam-portal input[type=checkbox],.uht-login-panel input[type=checkbox]{width:20px;height:20px;accent-color:var(--p)}
.uht-assignment-list article{border:1px solid var(--line)!important;border-radius:12px!important;background:#fff}
.uht-alert{border-radius:12px;padding:12px 14px;margin:0 0 12px}
.uht-alert-ok{background:#ecfdf5;border:1px solid #6ee7b7;color:#065f46}
.uht-alert-bad{background:#fef2f2;border:1px solid #fca5a5;color:#991b1b}

/* ==========================================================================
   3.8.0 DESIGN SYSTEM - modern, calm, high-contrast; geometric pattern canvas, gradient hero, soft cards
   ========================================================================== */
.uhtf-wrap,.uhtf-form,body.uht-screen{--f:"Inter","Segoe UI Variable","Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;--p:var(--uht-primary,#5b5cf0);--p2:#7c3aed;--ink:#0f172a;--mute:#64748b;--line:#e2e8f5;--field:#fbfcff;--soft:#eef0ff;--ring:rgba(91,92,240,.18);--shadow:0 1px 2px rgba(15,23,42,.04),0 14px 34px -14px rgba(79,70,229,.22);--star:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%235b5cf0' stroke-opacity='.085' stroke-width='1.2'%3E%3Crect x='14' y='14' width='36' height='36'/%3E%3Crect x='14' y='14' width='36' height='36' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3C/g%3E%3C/svg%3E");--starw:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.17' stroke-width='1.2'%3E%3Crect x='14' y='14' width='36' height='36'/%3E%3Crect x='14' y='14' width='36' height='36' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3C/g%3E%3C/svg%3E")}

/* canvas */
.uht-form-container.uhtf-wrap,.uhtf-wrap.uht-login-panel,.uhtf-wrap{max-width:900px;margin:0 auto 24px;padding:clamp(12px,3vw,28px);font-family:var(--f);font-size:16px;line-height:1.55;color:var(--ink);background:var(--star) 0 0/64px 64px,radial-gradient(1200px 400px at 10% -10%,rgba(124,58,237,.10),transparent 60%),linear-gradient(180deg,#f8f9ff,#f1f4ff);border:1px solid rgba(91,92,240,.10);border-radius:28px;box-shadow:0 30px 60px -40px rgba(79,70,229,.35);box-sizing:border-box}
.uhtf-wrap *{box-sizing:border-box}
.uhtf-wrap h2,.uhtf-wrap h3{font-family:var(--f);letter-spacing:-.015em}

/* hero */
.uhtf-hero{position:relative;overflow:hidden;border-radius:22px;padding:clamp(20px,4vw,34px);margin:0 0 18px;color:#fff;background:var(--starw) right -10px top -10px/64px 64px,linear-gradient(135deg,var(--p) 0%,var(--p2) 58%,#c026d3 118%);box-shadow:0 20px 40px -22px rgba(79,70,229,.7)}
.uhtf-hero:after{content:"";position:absolute;right:-60px;bottom:-80px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.22),transparent 65%)}
.uhtf-eyebrow{display:inline-block;padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.18);backdrop-filter:blur(4px);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.uhtf-hero h2{margin:12px 0 8px;color:#fff;font-size:clamp(24px,4.6vw,36px);line-height:1.15;font-weight:800}
.uhtf-hero p{margin:0;max-width:60ch;color:rgba(255,255,255,.92);font-size:clamp(14.5px,2vw,16.5px)}
.uhtf-badges{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;padding:0;list-style:none}
.uhtf-badges li{margin:0;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);font-size:13px;font-weight:600}
.uhtf-badges li:before{content:"\2713";margin-right:6px;font-weight:800}

/* progress */
.uhtf-prog{position:static;background:transparent;padding:2px 2px 0;margin:0 0 14px}
.uhtf-prog i{height:8px;border-radius:99px;background:rgba(91,92,240,.14)}
.uhtf-prog i b{background:linear-gradient(90deg,var(--p),var(--p2));border-radius:99px}
.uhtf-prog span{font-size:12.5px;font-weight:600;color:var(--mute);margin-top:6px}

/* cards */
.uhtf-form .uhtf-card,.uhtf-wrap .uhtf-card{background:#fff;border:1px solid rgba(15,23,42,.06);border-radius:20px;box-shadow:var(--shadow);padding:clamp(16px,3vw,26px);margin:0 0 16px}
.uhtf-card>h3{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:0 0 14px;border-bottom:1px solid var(--line);font-size:clamp(16px,2.4vw,19px);font-weight:750;color:var(--ink)}
.uhtf-card>h3 .n{flex:none;width:34px;height:34px;border-radius:12px;display:grid;place-items:center;color:#fff;font-size:15px;font-weight:800;background:linear-gradient(135deg,var(--p),var(--p2));box-shadow:0 8px 16px -8px rgba(91,92,240,.8)}
.uhtf-body{display:grid;gap:18px}
@media(min-width:700px){.uhtf-body{grid-template-columns:1fr 1fr}}

/* fields */
.uhtf-form label{font-family:var(--f);font-size:13.5px;font-weight:650;color:#334155;letter-spacing:.005em}
.uhtf-form label br{display:none}
.uhtf-body .uht-grid label,.uhtf-body>p>label,.uhtf-body>p>label{display:flex;flex-direction:column;gap:6px}
.uhtf-form .req{color:#e11d48}
.uhtf-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=file]),.uhtf-form select,.uhtf-form textarea{width:100%;min-height:50px;margin:0;padding:12px 14px;font:inherit;font-size:16px;color:var(--ink);background-color:var(--field);border:1.5px solid var(--line);border-radius:14px;box-shadow:none;transition:border-color .15s,box-shadow .15s,background-color .15s}
.uhtf-form textarea{min-height:96px;line-height:1.5}
.uhtf-form input::placeholder,.uhtf-form textarea::placeholder{color:#94a3b8}
.uhtf-form input:hover,.uhtf-form select:hover,.uhtf-form textarea:hover{border-color:#c7d0f2;background-color:#fff}
.uhtf-form input:focus,.uhtf-form select:focus,.uhtf-form textarea:focus{outline:0;border-color:var(--p);background-color:#fff;box-shadow:0 0 0 4px var(--ring)}
.uhtf-form select{appearance:none;-webkit-appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.uhtf-form input[type=file]{width:100%;padding:16px;border:2px dashed #c7d0f2;border-radius:14px;background:var(--soft);font:inherit;font-size:14px;color:var(--mute);cursor:pointer}
.uhtf-form input[type=file]::file-selector-button{margin-right:12px;padding:9px 14px;border:0;border-radius:10px;background:var(--p);color:#fff;font-weight:650;cursor:pointer}
.uhtf-form input.uhtf-bad,.uhtf-form select.uhtf-bad,.uhtf-form textarea.uhtf-bad{border-color:#e11d48!important;box-shadow:0 0 0 4px rgba(225,29,72,.12)!important}
.uhtf-form .uht-consent,.uhtf-body .uht-consent{margin:0;padding:14px 16px;border:1.5px solid var(--line);border-radius:14px;background:var(--soft);font-size:14.5px}
.uhtf-form input[type=checkbox]{width:22px;height:22px;margin-right:10px;vertical-align:middle;accent-color:var(--p)}
.uhtf-form small{color:var(--mute);font-size:13px}
.uhtf-form .description{font-size:13px}

/* actions */
.uhtf-actions{display:flex;justify-content:flex-end;margin:4px 0 0}
.uhtf-form .uht-btn,.uhtf-form button[type=submit],.uhtf-form input[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:54px;padding:0 28px;border:0;border-radius:16px;font:inherit;font-size:16.5px;font-weight:750;letter-spacing:.01em;color:#fff;cursor:pointer;background:linear-gradient(135deg,var(--p),var(--p2));box-shadow:0 14px 28px -12px rgba(91,92,240,.85);transition:transform .12s,box-shadow .12s,filter .12s}
.uhtf-form .uht-btn:hover,.uhtf-form button[type=submit]:hover,.uhtf-form input[type=submit]:hover{transform:translateY(-1px);filter:brightness(1.05);box-shadow:0 18px 32px -12px rgba(91,92,240,.9)}
.uhtf-form .uht-btn:active,.uhtf-form button[type=submit]:active{transform:translateY(0)}
.uhtf-form .uht-btn:focus-visible,.uhtf-form button:focus-visible{outline:3px solid var(--ring);outline-offset:2px}
@media(min-width:700px){.uhtf-form .uht-btn,.uhtf-form button[type=submit]{width:auto;min-width:280px}}

/* alerts + notes */
.uhtf-wrap .uht-alert{border-radius:16px;padding:14px 16px;margin:0 0 16px;font-size:15px;border-width:1.5px;border-style:solid}
.uhtf-wrap .uht-alert-ok{background:#ecfdf5;border-color:#6ee7b7;color:#065f46}
.uhtf-wrap .uht-alert-bad{background:#fff1f2;border-color:#fda4af;color:#9f1239}
.uhtf-wrap .uht-note{padding:12px 16px;border-radius:14px;background:#fffbeb;border:1.5px solid #fde68a;color:#92400e;margin:0 0 16px;font-size:14.5px}
.uhtf-wrap .uht-hp,.uht-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* login, exams, assignments, portal (public) */
.uht-login-panel:not(.uhtf-wrap),.uht-online-exam-portal,.uht-assignment-list,.uht-offline-learning,.uht-portal-extra{font-family:var(--f,inherit);border-radius:22px;box-shadow:0 1px 2px rgba(15,23,42,.04),0 14px 34px -14px rgba(79,70,229,.2);border:1px solid rgba(15,23,42,.06);background:#fff}
.uht-login-panel h2,.uht-online-exam-portal h2,.uht-offline-learning h2{font-size:clamp(22px,3.6vw,28px);font-weight:800;letter-spacing:-.02em}
.uht-login-panel input[type=text],.uht-login-panel input[type=password],.uht-login-panel input[type=email],.uht-online-exam-portal textarea,.uht-assignment-list textarea,.uht-assignment-list input[type=text]{min-height:50px;border:1.5px solid #e2e8f5;border-radius:14px;background:#fbfcff;font-size:16px}
.uht-login-panel input[type=submit],.uht-online-exam-portal button[type=submit],.uht-assignment-list button[type=submit],.uht-assignment-list input[type=submit]{min-height:52px;border-radius:16px;background:linear-gradient(135deg,var(--uht-primary,#5b5cf0),#7c3aed);box-shadow:0 14px 28px -12px rgba(91,92,240,.85);font-size:16.5px}

/* ==========================================================================
   ADMIN: every plugin screen (body.uht-screen) - pattern canvas, typography, cards, tables, buttons
   ========================================================================== */
body.uht-screen,body.uht-screen #wpwrap{background:var(--star) 0 0/64px 64px,linear-gradient(180deg,#f8f9ff,#eef2ff) fixed!important}
body.uht-screen #wpcontent,body.uht-screen #wpbody-content{font-family:var(--f);font-size:15px;color:var(--ink)}
body.uht-screen .wrap{max-width:1280px}
body.uht-screen .wrap>h1,body.uht-screen .wrap h1.wp-heading-inline{font-size:clamp(24px,3.4vw,32px);font-weight:800;letter-spacing:-.02em;margin:10px 0 14px}
body.uht-screen .wrap h2{font-size:20px;font-weight:750;letter-spacing:-.01em;margin:22px 0 12px}
body.uht-screen .wrap h3{font-size:17px;font-weight:700}
body.uht-screen .uht-panel,body.uht-screen .uht-modern .uht-panel,body.uht-screen .card{background:#fff;border:1px solid rgba(15,23,42,.06);border-radius:20px;box-shadow:var(--shadow);padding:18px 20px}
body.uht-screen .notice{border-radius:14px;border-width:1.5px;box-shadow:none}
body.uht-screen input[type=text],body.uht-screen input[type=search],body.uht-screen input[type=number],body.uht-screen input[type=email],body.uht-screen input[type=tel],body.uht-screen input[type=url],body.uht-screen input[type=date],body.uht-screen input[type=password],body.uht-screen input:not([type]),body.uht-screen select,body.uht-screen textarea{min-height:44px;padding:9px 13px;border:1.5px solid var(--line);border-radius:12px;background-color:var(--field);font-size:15px;box-shadow:none;max-width:100%;transition:border-color .15s,box-shadow .15s}
body.uht-screen input:focus,body.uht-screen select:focus,body.uht-screen textarea:focus{border-color:var(--p);box-shadow:0 0 0 4px var(--ring);outline:0}
body.uht-screen .button,body.uht-screen input.button{min-height:42px;padding:0 18px;border-radius:12px;border:1.5px solid var(--line);background:#fff;color:#334155;font-weight:650;line-height:39px;box-shadow:none;transition:transform .12s,border-color .12s}
body.uht-screen .button:hover{border-color:var(--p);color:var(--p);transform:translateY(-1px)}
body.uht-screen .button-primary,body.uht-screen input.button-primary{border:0;color:#fff!important;background:linear-gradient(135deg,var(--p),var(--p2))!important;box-shadow:0 12px 24px -12px rgba(91,92,240,.85)}
body.uht-screen .button-primary:hover{color:#fff!important;filter:brightness(1.06)}
body.uht-screen .widefat{border:0;border-radius:18px;overflow:hidden;border-collapse:separate;border-spacing:0;box-shadow:var(--shadow)}
body.uht-screen .widefat thead th{background:#f1f3ff;color:#475569;font-size:12px;font-weight:750;letter-spacing:.05em;text-transform:uppercase;padding:13px 14px;border-bottom:1px solid var(--line)}
body.uht-screen .widefat td,body.uht-screen .widefat tbody th{padding:12px 14px;border-bottom:1px solid #eef1fa;font-variant-numeric:tabular-nums;vertical-align:middle}
body.uht-screen .widefat tbody tr:hover td{background:#f8f9ff}
body.uht-screen .widefat.striped>tbody>:nth-child(odd){background:#fcfdff}
/* legacy form-table forms become card grids (no markup change) */
body.uht-screen .form-table{display:block;background:#fff;border:1px solid rgba(15,23,42,.06);border-radius:20px;box-shadow:var(--shadow);padding:6px 20px;margin:12px 0}
body.uht-screen .form-table tbody{display:block}
body.uht-screen .form-table tr{display:grid;grid-template-columns:minmax(150px,240px) 1fr;gap:6px 22px;padding:14px 0;border-bottom:1px solid #eef1fa;align-items:start}
body.uht-screen .form-table tr:last-child{border-bottom:0}
body.uht-screen .form-table th,body.uht-screen .form-table td{display:block;width:auto;padding:0;margin:0}
body.uht-screen .form-table th{font-weight:650;color:#334155}
body.uht-screen .form-table input[type=text],body.uht-screen .form-table input[type=number],body.uht-screen .form-table input[type=email],body.uht-screen .form-table input[type=date],body.uht-screen .form-table select,body.uht-screen .form-table textarea,body.uht-screen .form-table .regular-text{width:100%;max-width:560px}
@media(max-width:782px){body.uht-screen .form-table tr{grid-template-columns:1fr;gap:6px}body.uht-screen .form-table input,body.uht-screen .form-table select,body.uht-screen .form-table textarea{max-width:100%}}
/* admin forms in the new card layout sit on white cards */
body.uht-screen .uhtf-form{max-width:900px}
body.uht-screen .uhtf-form .uhtf-card{margin-bottom:16px}
@media(prefers-reduced-motion:reduce){.uhtf-form *,body.uht-screen *{transition:none!important}}
/* polish */
.uhtf-form input:not([type=checkbox]):not([type=radio]),.uhtf-form select,.uhtf-form textarea{font-weight:450}
.uhtf-form .uht-consent label,.uhtf-body .uht-consent label,.uhtf-form label:has(>input[type=checkbox]){display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px;font-weight:500;font-size:14.5px;line-height:1.45}
.uhtf-form .uht-consent input[type=checkbox],.uhtf-form label>input[type=checkbox]{flex:none;margin:1px 0 0}

/* 3.9.0 */
.uhtf-bank{display:block;width:100%;max-width:560px;min-height:38px;margin:0 0 6px;padding:6px 10px;border:1.5px dashed #c7d0f2;border-radius:10px;background:#f6f7ff;color:#475569;font-size:13.5px}
.uhtf-draft{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 12px;padding:12px 14px;border:1.5px solid #fde68a;border-radius:14px;background:#fffbeb;color:#92400e;font-weight:600}
.uhtf-offline{position:fixed;left:12px;right:12px;bottom:12px;z-index:99999;padding:12px 16px;border-radius:14px;background:#0f172a;color:#fff;font-weight:600;text-align:center;box-shadow:0 16px 36px -12px rgba(0,0,0,.5)}
.uhtf-offline[hidden]{display:none}

/* 3.9.0 security live wall */
.uht-sec-alerts{margin:12px 0;padding:12px 16px;border:1.5px solid #e2e8f5;border-radius:16px;background:#fff}
.uht-sec-alerts.has-open{border-color:#fca5a5;background:#fff1f2}
.uht-sec-alerts ul{margin:8px 0 0;padding:0;list-style:none;max-height:180px;overflow:auto}
.uht-sec-alerts li{padding:6px 0;border-top:1px solid #f1f5f9}
.uht-sec-alerts li span{color:#64748b;font-size:12.5px}
.uht-sec-alerts li.sev-critical strong{color:#be123c}
.uht-sec-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.uht-cam{margin:0;background:#0f172a;border-radius:18px;overflow:hidden;box-shadow:0 14px 30px -16px rgba(15,23,42,.6)}
.uht-cam figcaption{display:flex;flex-direction:column;padding:10px 14px;color:#fff;font-size:13px}
.uht-cam figcaption span{color:#94a3b8}
.uht-cam img,.uht-cam video,.uht-cam iframe{display:block;width:100%;aspect-ratio:16/9;border:0;background:#000;object-fit:cover}
