/* =============================================================================
   Soft Clay — theme layer for the Email Extractor (serper.mycrms.in, serper.hrmdesk.in)
   -----------------------------------------------------------------------------
   Loaded by head() AFTER the base inline stylesheet, so it re-skins the existing
   class vocabulary without touching any PHP logic. Remove the <link> to revert.

   Design contract
   - Claymorphism on surfaces that carry hierarchy: cards, buttons, the active nav
     pill, task cards, dialogs, the login card. One light source (top-left):
     inner white highlight + inner indigo shade + broad ambient shadow.
   - Dense data stays calm: tables and row lists are flat; fields are soft inset
     wells with a real 3:1 boundary.
   - Motion: spring-eased hover lift, press-in, card rise on load, dialog pop,
     cross-page View Transitions. All disabled under prefers-reduced-motion.
   - Contrast: every text/background pair below measured >= 4.5:1 (AA);
     field boundaries and focus rings >= 3:1.
   Selectors prefixed with `html` beat page-level <style> blocks that load later.
   ============================================================================= */

:root{
  /* --- base tokens re-mapped (the PHP templates and inline styles use these) --- */
  --bg:#eceefb; --panel:#f9f9ff; --ink:#1d1a45; --body:#3d3a5c; --muted:#5d5a7e; --line:#e3e4f4;
  --primary:#4f46e5; --primary-d:#4338ca; --primary-soft:#e9e8ff;
  --green:#047857; --green-soft:#dff5ec; --red:#dc2626; --red-soft:#fde8e8; --amber:#92400e; --amber-soft:#fdf1d8;
  --radius:26px;

  /* --- clay material --- */
  --well:#f0f1fb;                    /* inset field / bar background */
  --field-edge:#8a87b0;              /* >= 3:1 against the card */
  --soft-edge:#cfcde8;               /* decorative boundary (secondary buttons, dividers) */
  --focus:#4f46e5;
  --hi:rgba(255,255,255,.92);        /* inner highlight (top-left) */
  --shade:rgba(79,70,229,.10);       /* inner shade (bottom-right) */
  --amb:rgba(49,46,129,.30);         /* ambient outer shadow tint */
  --clay-card:
    inset 3px 3px 4px var(--hi),
    inset -6px -8px 16px rgba(79,70,229,.07),
    0 24px 44px -28px var(--amb),
    0 4px 10px -6px rgba(49,46,129,.10);
  --clay-raised:
    inset 2px 2px 3px var(--hi),
    inset -3px -4px 8px var(--shade),
    0 10px 20px -12px var(--amb),
    0 2px 4px -2px rgba(49,46,129,.10);
  --clay-pressed:
    inset 2px 3px 6px rgba(49,46,129,.16),
    inset -2px -2px 4px rgba(255,255,255,.7);
  --well-shadow:
    inset 2px 3px 6px rgba(79,70,229,.10),
    inset -2px -2px 4px rgba(255,255,255,.9);

  /* --- motion --- */
  --ease:cubic-bezier(.22,1,.36,1);        /* smooth deceleration */
  --spring:cubic-bezier(.34,1.56,.64,1);   /* gentle overshoot for lifts */
  --t-fast:.16s; --t:.22s; --t-slow:.42s;

  --display:'Nunito','Inter',system-ui,'Segoe UI',Arial,sans-serif;
}

/* ============================================================== canvas & type */
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--body);
  font-size:14px;
  text-rendering:optimizeLegibility;
}
/* Three soft pastel blobs, static and decorative (no animated blur). */
body::before{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(38vw 34vw at 88% -6%, rgba(196,181,253,.55), rgba(196,181,253,0) 70%),
    radial-gradient(34vw 30vw at -6% 8%, rgba(167,243,208,.50), rgba(167,243,208,0) 70%),
    radial-gradient(40vw 34vw at 70% 108%, rgba(253,205,178,.42), rgba(253,205,178,0) 70%),
    var(--bg);
}
::selection{background:rgba(79,70,229,.20)}
a{color:var(--primary);text-underline-offset:3px}
a:hover{color:var(--primary-d)}
h1,h2,h3{font-family:var(--display);color:var(--ink);letter-spacing:-.01em}
h1{font-size:25px;font-weight:800;line-height:1.2}
h2{font-size:17.5px;font-weight:800;line-height:1.3}
.muted{color:var(--muted)}
code{background:var(--well);color:var(--ink);border-radius:8px;padding:2px 7px;box-shadow:inset 1px 1px 2px rgba(79,70,229,.08)}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:10px}

/* thin, rounded scrollbars (Chromium/Firefox) */
*{scrollbar-width:thin;scrollbar-color:#c4c2e6 transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#c9c7ea;border-radius:10px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:#aeabdd;background-clip:padding-box}

/* ============================================================== top navigation */
.nav{
  position:sticky; top:10px; z-index:50;
  margin:10px 16px 0; padding:8px 10px 8px 12px;
  display:flex; align-items:center; gap:10px; flex-wrap:nowrap;
  background:rgba(249,249,255,.94);
  border:1px solid rgba(255,255,255,.85); border-bottom:1px solid rgba(255,255,255,.85);
  border-radius:24px;
  box-shadow:var(--clay-card);
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .nav{background:rgba(249,249,255,.84);-webkit-backdrop-filter:saturate(160%) blur(12px);backdrop-filter:saturate(160%) blur(12px)}
}
.brand{font-family:var(--display);font-weight:800;font-size:16px;color:var(--ink);margin-right:4px;white-space:nowrap;flex:none}
.brand .logo{
  width:32px; height:32px; border-radius:12px; font-size:15px;
  background:linear-gradient(145deg,#8b85ff,#4f46e5);
  box-shadow:inset 2px 2px 3px rgba(255,255,255,.45), inset -3px -4px 7px rgba(30,27,75,.35), 0 8px 16px -8px rgba(79,70,229,.8);
}
/* Desktop: every tab stays visible — the strip wraps inside the capsule when space runs out.
   Phones: the strip scrolls sideways (visible scrollbar + edge fade), see the media query below. */
.navtabs{display:flex;align-items:center;flex-wrap:wrap;gap:4px;flex:1 1 auto;min-width:0;padding:3px 2px}
.nav .sp{display:none}
.nav a.tab{
  flex:none; white-space:nowrap;
  color:var(--muted); font-weight:650; font-size:13.5px;
  padding:8px 12px; border-radius:15px;
  transition:color var(--t) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform .28s var(--spring);
}
.nav a.tab:hover{color:var(--ink);background:rgba(79,70,229,.07);text-decoration:none}
.nav a.tab:active{transform:scale(.97)}
.nav a.tab.active,.nav a.tab[aria-current="page"]{
  color:var(--primary-d); background:#fff;
  box-shadow:inset 2px 2px 3px #fff, inset -2px -3px 6px rgba(79,70,229,.14), 0 8px 16px -10px rgba(79,70,229,.55);
}
.nav .who{white-space:nowrap;flex:none;color:var(--muted);font-weight:600}
.navpill{background:var(--primary-soft);color:#3b33b8;border-radius:999px;font-weight:700;
  box-shadow:inset 1px 1px 1px rgba(255,255,255,.8), inset -1px -2px 3px rgba(49,46,129,.08)}
.nav form{flex:none}
/* Laptops: logo-only brand so every tab fits on one row (the name stays in the
   accessibility tree — font-size:0 hides it visually only). */
@media (max-width:1440px){
  .brand{font-size:0;gap:0;margin-right:2px}
  .brand .logo{font-size:15px}
}
/* Tablets and phones: tabs get their own row and scroll sideways
   (visible scrollbar + edge fade; the current tab is scrolled into view). */
@media (max-width:1180px){
  .nav{flex-wrap:wrap}
  .nav .who{margin-left:auto}
  .navtabs{order:5;flex-basis:100%;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;
    padding:3px 44px 8px 2px;
    -webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}
}
@media (max-width:820px){
  .nav{position:relative;top:0;margin:8px 8px 0;border-radius:20px}   /* not sticky: keep the small screen for content */
}

/* ============================================================== layout & cards */
.wrap{padding:0 26px;margin:18px auto 40px}
@media (max-width:640px){.wrap{padding:0 12px}}
.card{
  background:var(--panel);
  border:1px solid rgba(255,255,255,.78);
  border-radius:var(--radius);
  padding:24px 26px; margin:18px 0;
  box-shadow:var(--clay-card);
  overflow-x:auto;              /* wide tables scroll inside the card, never the whole page */
}
@media (max-width:640px){.card{padding:18px 16px;border-radius:22px}}
/* cards rise in once on load (staggered, then static) */
.wrap > .card, .wrap > .center > .card, .authwrap > .card{animation:clayRise var(--t-slow) var(--ease) both}
.wrap > .card:nth-of-type(2){animation-delay:.04s}
.wrap > .card:nth-of-type(3){animation-delay:.08s}
.wrap > .card:nth-of-type(4){animation-delay:.12s}
.wrap > .card:nth-of-type(n+5){animation-delay:.16s}
@keyframes clayRise{from{opacity:0;transform:translateY(10px) scale(.992)}to{opacity:1;transform:none}}

/* ============================================================== forms */
label{color:var(--ink);font-weight:700;font-size:12.5px;margin:14px 0 6px}
input[type=text],input[type=password],input[type=number],input[type=email],input[type=search],input[type=url],
input[type=date],input[type=file],select,textarea{
  background:var(--well); color:var(--ink);
  border:1px solid var(--field-edge); border-radius:14px;
  padding:11px 14px;
  box-shadow:var(--well-shadow);
  transition:border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
input::placeholder,textarea::placeholder{color:#686590;opacity:1}
input:hover,select:hover,textarea:hover{border-color:#6f6c9c}
input:focus,select:focus,textarea:focus{
  background:#fff; border-color:var(--primary);
  box-shadow:inset 1px 2px 4px rgba(79,70,229,.06), 0 0 0 4px rgba(79,70,229,.18);
}
select{appearance:none;-webkit-appearance:none;padding-right:38px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center}
select:focus{background-color:#fff}
/* Some row-level selects carry legacy inline styles (padding:5px; border:1px solid #ccc). The arrow
   needs its gutter and the boundary needs 3:1, so those two win here. */
select[style]{padding-right:30px !important;border-color:var(--field-edge) !important;border-radius:11px !important;background-position:right 10px center}
textarea{border-radius:16px;line-height:1.55}
input[type=checkbox],input[type=radio]{accent-color:var(--primary);width:17px;height:17px;cursor:pointer}
input[type=file]{padding:7px 10px}
input[type=file]::file-selector-button{
  margin-right:12px; border:0; border-radius:11px; padding:7px 13px; cursor:pointer;
  font:600 12.5px/1.2 Inter,system-ui,sans-serif; color:var(--ink); background:#fff;
  box-shadow:var(--clay-raised); transition:transform .26s var(--spring);
}
input[type=file]::file-selector-button:hover{transform:translateY(-1px)}

/* ============================================================== buttons */
button,.btn{
  position:relative;
  border:0; border-radius:14px;
  padding:10px 18px; min-height:40px;
  font-weight:700; font-size:13.5px; letter-spacing:.005em; color:#fff;
  background:linear-gradient(180deg,#5b53ea 0%,#4f46e5 55%,#4840d8 100%);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.30),
    inset 0 -3px 0 rgba(30,27,75,.18),
    0 10px 18px -10px rgba(79,70,229,.75),
    0 2px 4px -1px rgba(30,27,75,.14);
  transition:transform .28s var(--spring), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease);
}
button:hover,.btn:hover{
  background:linear-gradient(180deg,#554ce6 0%,#4338ca 60%,#3d33c0 100%);
  color:#fff; text-decoration:none; transform:translateY(-2px);
  box-shadow:inset 0 2px 1px rgba(255,255,255,.28), inset 0 -3px 0 rgba(30,27,75,.20),
    0 16px 24px -12px rgba(79,70,229,.8), 0 3px 6px -2px rgba(30,27,75,.16);
}
button:active,.btn:active{
  transform:translateY(1px) scale(.985); transition-duration:.08s;
  box-shadow:inset 0 3px 6px rgba(30,27,75,.30), 0 2px 4px -2px rgba(30,27,75,.20);
}
button:disabled,button:disabled:hover{opacity:.55;transform:none;cursor:not-allowed;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.3), 0 2px 4px -2px rgba(30,27,75,.12)}

button.green,.btn.green,button.is-on{
  background:linear-gradient(180deg,#067f5c 0%,#047857 60%,#036a4d 100%);
  box-shadow:inset 0 2px 1px rgba(255,255,255,.28), inset 0 -3px 0 rgba(2,44,34,.22), 0 10px 18px -10px rgba(4,120,87,.75), 0 2px 4px -1px rgba(2,44,34,.16);
}
button.green:hover,.btn.green:hover{background:linear-gradient(180deg,#05724f 0%,#036a4d 60%,#025c43 100%);
  box-shadow:inset 0 2px 1px rgba(255,255,255,.26), inset 0 -3px 0 rgba(2,44,34,.24), 0 16px 24px -12px rgba(4,120,87,.8), 0 3px 6px -2px rgba(2,44,34,.18)}
button.red,.btn.red{
  background:linear-gradient(180deg,#da2a2a 0%,#d42424 60%,#c91f1f 100%);
  box-shadow:inset 0 2px 1px rgba(255,255,255,.28), inset 0 -3px 0 rgba(69,10,10,.22), 0 10px 18px -10px rgba(220,38,38,.7), 0 2px 4px -1px rgba(69,10,10,.16);
}
button.red:hover,.btn.red:hover{background:linear-gradient(180deg,#c62222 0%,#bd1d1d 60%,#b41a1a 100%);
  box-shadow:inset 0 2px 1px rgba(255,255,255,.26), inset 0 -3px 0 rgba(69,10,10,.24), 0 16px 24px -12px rgba(220,38,38,.75), 0 3px 6px -2px rgba(69,10,10,.18)}
/* secondary: white clay with a real outline */
button.grey,.btn.grey{
  color:var(--ink); background:#fff;
  border:1px solid var(--soft-edge);
  box-shadow:var(--clay-raised);
}
button.grey:hover,.btn.grey:hover{color:var(--primary-d);background:#fff;border-color:#b3b0dd;
  box-shadow:inset 2px 2px 3px #fff, inset -3px -4px 8px rgba(79,70,229,.12), 0 14px 22px -12px var(--amb), 0 3px 6px -2px rgba(49,46,129,.10)}
button.grey:active,.btn.grey:active{box-shadow:var(--clay-pressed)}
button.sm,.btn.sm{padding:7px 12px;min-height:32px;font-size:12.5px;border-radius:11px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px}

/* ============================================================== chips */
.badge,.pill{
  border-radius:999px; padding:3px 10px; font-weight:700; font-size:11.5px; line-height:1.5;
  box-shadow:inset 1px 1px 1px rgba(255,255,255,.85), inset -1px -2px 3px rgba(49,46,129,.08);
}
.badge{background:var(--primary-soft);color:#3b33b8}
.pill.admin{background:var(--red-soft);color:#b91c1c}
.pill.manager{background:var(--amber-soft);color:var(--amber)}
.pill.employee{background:var(--primary-soft);color:#3b33b8}
.pill.off{background:#e7e8f4;color:#4d4a6b}

/* ============================================================== tables */
table{border-collapse:separate;border-spacing:0;font-size:13px}
th{
  background:#eef0fb; color:#56537a; border-bottom:0;
  padding:10px 12px; font-size:11px; font-weight:750; letter-spacing:.06em;
}
tr > th:first-child{border-radius:12px 0 0 12px}
tr > th:last-child{border-radius:0 12px 12px 0}
tr > th:only-child{border-radius:12px}
th{white-space:nowrap}
/* Words wrap whole (no "ad/min" splits); only links and code — URLs, IDs — may break anywhere. */
td{padding:11px 12px;border-bottom:1px solid var(--line);color:var(--body);overflow-wrap:break-word;word-break:normal}
td a,td code{overflow-wrap:anywhere}
td .pill,td .badge,td button,td .btn,.pill,.badge{white-space:nowrap}
tbody tr{transition:background-color var(--t-fast) var(--ease)}
tbody tr:hover{background:transparent}
tbody tr:hover:not(:has(th)) > td{background:rgba(79,70,229,.045)}
tbody tr:hover:not(:has(th)) > td:first-child{border-radius:12px 0 0 12px}
tbody tr:hover:not(:has(th)) > td:last-child{border-radius:0 12px 12px 0}
tr:last-child > td{border-bottom:0}

/* ============================================================== notices */
.flash{
  border-radius:16px; padding:12px 16px; margin:14px 0;
  background:#f1f0ff; border:1px solid #dcdaf8; color:var(--body);
  box-shadow:inset 2px 2px 3px rgba(255,255,255,.7), 0 10px 20px -16px var(--amb);
  animation:claySlide .32s var(--ease) both;
}
.flash.ok{background:var(--green-soft);border-color:#bde6d4;color:#065f46}
.flash.err{background:var(--red-soft);border-color:#f5c2c2;color:#b91c1c}
@keyframes claySlide{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* ============================================================== running searches */
.run-bar,.task .t-bar{background:var(--well);height:10px;border-radius:999px;box-shadow:var(--well-shadow);overflow:hidden}
.run-bar-fill,.task .t-bar > div{
  position:relative; border-radius:999px; overflow:hidden;
  background:linear-gradient(90deg,#8b85ff,#4f46e5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45);
  transition:width .7s var(--ease);
}
/* a soft sheen travels across the bar only while a search is genuinely running */
.task[data-status="running"] .t-bar > div::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.55) 50%,transparent 80%);
  transform:translateX(-100%); animation:claySheen 1.8s var(--ease) infinite;
}
@keyframes claySheen{to{transform:translateX(100%)}}
.task-grid{gap:16px}
.task{
  position:relative; border:1px solid rgba(255,255,255,.8); border-radius:22px; padding:16px;
  background:var(--panel); box-shadow:var(--clay-raised);
  transition:transform .32s var(--spring), opacity var(--t) var(--ease);
}
/* hover depth via an opacity-only shadow layer (cheaper than animating box-shadow) */
.task::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;
  box-shadow:0 22px 36px -20px rgba(49,46,129,.45);transition:opacity var(--t) var(--ease)}
.task:hover{transform:translateY(-3px);box-shadow:var(--clay-raised)}
.task:hover::after{opacity:1}
.task .ico{
  border-radius:16px; background:linear-gradient(145deg,#f3f2ff,#dcd9ff);
  box-shadow:inset 2px 2px 3px #fff, inset -3px -4px 7px rgba(79,70,229,.16), 0 6px 12px -8px rgba(79,70,229,.5);
}
.task .t-title{font-family:var(--display);font-weight:800;font-size:14.5px}
.run-row{border-top:1px solid var(--line)}

/* ============================================================== dialogs */
html #uiModal, html .eum, html .ipm{background:rgba(30,27,75,.34)}
html #uiModal .ui-dialog, html .eum-dialog, html .ipm-dialog{
  background:var(--panel); border:1px solid rgba(255,255,255,.85); border-radius:28px; padding:26px;
  box-shadow:inset 3px 3px 5px var(--hi), inset -6px -8px 18px rgba(79,70,229,.08), 0 40px 80px -30px rgba(30,27,75,.6);
  animation:clayPop .34s var(--spring) both;
}
@keyframes clayPop{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
html #uiModal .ui-title, html .eum-title, html .ipm-title{font-family:var(--display);font-weight:800;font-size:18px}
html .eum-x, html .ipm-x{min-height:0;background:transparent;color:var(--muted);box-shadow:none;border-radius:12px}
html .eum-x:hover, html .ipm-x:hover{background:var(--well);color:var(--ink);transform:none;box-shadow:none}
html .eum-err, html .ipm-err{border-radius:14px}

/* ============================================================== Extension Users: device groups */
html .devhead td{background:#f1f0ff}
html .devhead:hover td{background:#e8e6ff}
html .devhead td:first-child{border-radius:14px 0 0 14px}
html .devhead td:last-child{border-radius:0 14px 14px 0}

/* ============================================================== login */
html .authwrap{max-width:440px}
html .authwrap .card{padding:28px 28px 26px}
html .authwrap h1{
  font-family:var(--display); font-size:27px; animation:none;
  background:linear-gradient(90deg,#4338ca,#7c3aed 55%,#047857); -webkit-background-clip:text; background-clip:text; color:transparent;
}
html .authwrap button{min-height:46px;border-radius:16px;font-size:14.5px}
/* sized to fit inside the 300px hero, so the soft disc is never clipped flat on the light canvas */
html .auth-hero .glow{width:290px;height:290px;background:radial-gradient(circle at 50% 45%, rgba(167,139,250,.38), rgba(110,231,183,.18) 45%, transparent 70%)}
html .ringline.o{border:2px dashed rgba(79,70,229,.22)}
html .ringline.i{border:2px dashed rgba(4,120,87,.22)}
html .hub{
  border-radius:26px; background:linear-gradient(145deg,#8b85ff,#4f46e5);
  box-shadow:inset 3px 3px 5px rgba(255,255,255,.45), inset -6px -8px 14px rgba(30,27,75,.38), 0 20px 34px -16px rgba(79,70,229,.8);
}
html .chip{box-shadow:inset 2px 2px 3px rgba(255,255,255,.55), inset -3px -4px 7px rgba(30,27,75,.25), 0 10px 18px -10px rgba(49,46,129,.55)}
html .chip.ars{background:linear-gradient(145deg,#a5a0ff,#5b53ea)}
html .chip.amg{background:linear-gradient(145deg,#34d399,#047857)}
html .chip.mail,html .dot{background:#fff;border:0;
  box-shadow:inset 2px 2px 3px #fff, inset -3px -4px 7px rgba(79,70,229,.16), 0 10px 18px -10px rgba(49,46,129,.5)}
html .float{color:rgba(79,70,229,.35)}

/* ============================================================== Operations pages (scoped palettes re-mapped) */
html #opswrap, html #opsApp{
  --bg:#f0f1fb; --surface:#f9f9ff; --border:#e0e1f3; --text:#1d1a45; --muted:#5d5a7e;
  --accent:#4f46e5; --accent-ink:#ffffff; --accent-soft:#e9e8ff; --danger:#b91c1c;
  --shadow:var(--clay-card); --oshadow:var(--clay-card);
}
html #opswrap .card, html #opsApp .ops-card, html #opswrap .sidebar, html #opsApp .ops-side{
  border-radius:24px; border:1px solid rgba(255,255,255,.8); box-shadow:var(--clay-card);
}
html #opswrap .nav-btn, html #opsApp .nav-btn{border-radius:14px;transition:background-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease)}
html #opswrap .nav-btn.active, html #opsApp .nav-btn.active{background:#fff;color:var(--primary-d);
  box-shadow:inset 2px 2px 3px #fff, inset -2px -3px 6px rgba(79,70,229,.14), 0 8px 16px -10px rgba(79,70,229,.55)}
html #opswrap textarea, html #opsApp textarea, html #opswrap input[type="text"], html #opsApp input[type="text"]{
  background:var(--well); border:1px solid var(--field-edge); border-radius:16px; box-shadow:var(--well-shadow)}
html #opswrap textarea:focus, html #opsApp textarea:focus, html #opswrap input[type="text"]:focus, html #opsApp input[type="text"]:focus{
  background:#fff; border-color:var(--primary); box-shadow:0 0 0 4px rgba(79,70,229,.18); outline:none}
html #opswrap button, html #opsApp button{border-radius:13px}
html #opswrap button.primary, html #opsApp button.primary{
  background:linear-gradient(180deg,#5b53ea 0%,#4f46e5 55%,#4840d8 100%); border-color:transparent; color:#fff;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.30), inset 0 -3px 0 rgba(30,27,75,.18), 0 10px 18px -10px rgba(79,70,229,.75)}
html #opswrap .chip, html #opsApp .chip{border-radius:10px;box-shadow:inset 1px 1px 1px rgba(255,255,255,.8), inset -1px -2px 3px rgba(49,46,129,.08)}

/* ============================================================== cross-page transitions */
@view-transition{navigation:auto}
.nav{view-transition-name:clay-nav}
::view-transition-old(root),::view-transition-new(root){animation-duration:.24s;animation-timing-function:var(--ease)}
::view-transition-group(clay-nav){animation-duration:.24s}

/* ============================================================== user preferences */
@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none !important;transition-duration:.01ms !important}
  button:hover,.btn:hover,.task:hover,.nav a.tab:active,button:active,.btn:active{transform:none}
}
@media (forced-colors:active){
  .card,.nav,.task,button,.btn,.badge,.pill,.flash,input,select,textarea,
  html #uiModal .ui-dialog, html .eum-dialog, html .ipm-dialog{box-shadow:none !important;border:1px solid CanvasText}
  button,.btn{border:1px solid ButtonText}
  .nav a.tab.active,.nav a.tab[aria-current="page"]{outline:2px solid Highlight}
  body::before{display:none}
  :focus-visible{outline-color:Highlight}
}
@media print{
  body::before,.nav{display:none}
  .card{box-shadow:none;border:1px solid #ccc}
}
