:root{
  --bg:#0b1020;
  --bg2:#121a31;
  --panel:rgba(18,24,39,.84);
  --panel-solid:#121827;
  --text:#eef4ff;
  --muted:#9eb0cc;
  --border:rgba(255,255,255,.1);
  --accent:#4da3ff;
  --accent2:#7c5cff;
  --shadow:0 20px 60px rgba(0,0,0,.35);
  --radius:24px;
  --sans:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --ok:#3ddc97;
  --warn:#ffcc66;
  --bad:#ff5a6b;
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
  min-height:100%;
  width:100%;
  max-width:100%;
  font-family:var(--sans);
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(77,163,255,.20), transparent 30%),
    radial-gradient(circle at bottom right, rgba(124,92,255,.16), transparent 28%),
    linear-gradient(160deg, var(--bg), var(--bg2));
  overflow-x:hidden;
}

body{
  padding:18px;
}

a{
  color:#b9daff;
}

img,
iframe,
video,
canvas,
svg{
  max-width:100%;
}

.wrap{
  width:min(96vw, 1760px);
  max-width:1760px;
  margin:0 auto;
  padding:0;
}

/* =========================================================
   Header / topbar
   ========================================================= */

.topbar,
.site-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:16px;
  padding:18px 20px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.05);
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
}

.brand{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.eyebrow{
  display:inline-flex;
  align-self:flex-start;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#d9e8ff;
}

h1{
  margin:0;
  font-size:clamp(2rem,3.4vw,3.4rem);
  line-height:1.02;
  letter-spacing:-.03em;
}

.sub,
.site-sub{
  margin:0;
  max-width:760px;
  color:var(--muted);
  font-size:1rem;
  line-height:1.65;
}

.actions,
.account-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.account-status{
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
  margin-right:2px;
}

.account-status strong{
  color:var(--text);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn,
button{
  appearance:none;
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  color:var(--text);
  text-decoration:none;
  padding:12px 16px;
  border-radius:14px;
  font-weight:700;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor:pointer;
  white-space:nowrap;
}

.btn:hover,
button:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  text-decoration:none;
}

.btn-primary{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg, var(--accent), #2c6cf2);
  box-shadow:0 14px 30px rgba(77,163,255,.25);
}

.btn-primary:hover{
  background:linear-gradient(135deg, #64b1ff, #3b73f1);
}

/* =========================================================
   Universal navigation
   Supports both nav.php versions:
   .site-nav and .universal-nav
   ========================================================= */

.site-nav,
.universal-nav{
  width:100%;
  margin:0 0 18px;
  padding:8px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:rgba(255,255,255,.045);
  box-shadow:0 14px 36px rgba(0,0,0,.24);
  backdrop-filter:blur(12px);
}

.site-nav-menu,
.universal-nav-menu{
  display:grid !important;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:8px;
  align-items:stretch;
}

.site-nav-link,
.universal-nav-link{
  display:flex !important;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:13px;
  background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  color:#eef4ff !important;
  text-decoration:none !important;
  text-align:center;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  white-space:normal;
  box-shadow:none;
}

.site-nav-link:hover,
.universal-nav-link:hover{
  text-decoration:none !important;
  border-color:rgba(255,255,255,.20);
  background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
  transform:translateY(-1px);
}

.site-nav-link.is-active,
.universal-nav-link.is-active{
  color:#fff !important;
  border-color:rgba(77,163,255,.48);
  background:
    linear-gradient(135deg, rgba(77,163,255,.35), rgba(124,92,255,.24)),
    rgba(255,255,255,.06);
  box-shadow:0 10px 24px rgba(77,163,255,.16);
}

.site-nav-toggle,
.universal-nav-toggle{
  display:none !important;
  width:100%;
  min-height:42px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:13px;
  background:linear-gradient(135deg, var(--accent), #2c6cf2);
  color:#fff;
  font-size:13px;
  font-weight:900;
}

/* =========================================================
   Homepage / shared page layouts
   ========================================================= */

.home-layout,
.tracker-layout,
.search-layout,
.person-layout,
.page-with-sidebar{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:22px;
  align-items:start;
  width:100%;
}

.home-main,
.tracker-main,
.search-main,
.person-main,
.page-main,
.main-stack{
  min-width:0;
  width:100%;
}

.main-stack{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.home-tool-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
  width:100%;
}

/* =========================================================
   Hero
   ========================================================= */

.hero{
  position:relative;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:30px;
  background:
    linear-gradient(135deg, rgba(77,163,255,.12), rgba(124,92,255,.10)),
    rgba(255,255,255,.04);
  box-shadow:var(--shadow);
  margin-bottom:22px;
}

.hero::before,
.hero::after{
  content:"";
  position:absolute;
  border-radius:999px;
  filter:blur(10px);
  opacity:.6;
  pointer-events:none;
}

.hero::before{
  width:280px;
  height:280px;
  top:-90px;
  right:-60px;
  background:radial-gradient(circle, rgba(77,163,255,.35), transparent 68%);
}

.hero::after{
  width:260px;
  height:260px;
  bottom:-100px;
  left:-70px;
  background:radial-gradient(circle, rgba(124,92,255,.28), transparent 68%);
}

.hero-inner{
  position:relative;
  z-index:1;
  padding:34px 28px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:22px;
  align-items:center;
}

.hero-copy h2{
  margin:0 0 14px;
  font-size:clamp(2rem,3vw,3.1rem);
  line-height:1.05;
  letter-spacing:-.03em;
}

.hero-copy p{
  margin:0 0 16px;
  max-width:720px;
  color:var(--muted);
  font-size:1rem;
  line-height:1.65;
}

.hero-points{
  display:grid;
  gap:10px;
}

.point{
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.05);
}

.point strong{
  display:block;
  font-size:15px;
  margin-bottom:4px;
  color:#fff;
}

.point span{
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

/* =========================================================
   Cards / content blocks
   ========================================================= */

.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.tool-grid{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:14px;
}

.card{
  border:1px solid var(--border);
  border-radius:24px;
  background:rgba(18,24,39,.78);
  box-shadow:var(--shadow);
  overflow:hidden;
  margin-bottom:20px;
  max-width:100%;
}

.home-tool-grid .card{
  margin-bottom:0;
}

.card.flex-card{
  display:flex;
  flex-direction:column;
  min-height:100%;
}

.card-top{
  padding:22px 22px 12px;
}

.card-actions{
  margin-top:auto;
  padding:18px 22px 22px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.badge{
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  margin-bottom:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#dce9ff;
}

.badge.private{
  background:rgba(77,163,255,.12);
  color:#b9daff;
}

.badge.public{
  background:rgba(124,92,255,.12);
  color:#d7cbff;
}

.card h3{
  margin:0 0 10px;
  font-size:1.35rem;
  line-height:1.15;
}

.card p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:.95rem;
}

.feature-list{
  margin:18px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}

.feature-list li{
  position:relative;
  padding-left:18px;
  color:#dfe8f8;
  font-size:13px;
  line-height:1.5;
}

.feature-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.58em;
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
}

.hd{
  padding:14px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,#161c25,var(--panel));
}

.bd{
  padding:14px;
}

.entry-card .bd{
  max-width:none;
}

.section-title{
  margin:0 0 10px;
  font-size:1.9rem;
  line-height:1.15;
  text-align:center;
}

.section-copy{
  margin:0 auto 22px;
  max-width:820px;
  color:var(--muted);
  line-height:1.7;
  font-size:1rem;
  text-align:center;
}

.section-copy a{
  color:#b9daff;
  font-weight:700;
  text-decoration:none;
}

/* =========================================================
   Forms
   ========================================================= */

.form-wrap{
  max-width:820px;
  margin:0 auto;
}

.field{
  margin-bottom:12px;
}

label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:0 0 6px 2px;
}

input[type="file"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="range"],
input[type="date"],
input[type="number"],
textarea,
select{
  width:100%;
  max-width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  background:#090d12;
  color:var(--text);
  outline:none;
  font-size:13px;
}

textarea{
  min-height:120px;
  resize:vertical;
}

/* =========================================================
   Print quality / placement tools
   ========================================================= */

.preview-box{
  margin-top:18px;
  display:none;
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px;
  background:#0d1218;
}

.preview-box.show{
  display:block;
}

.preview-box img{
  display:block;
  max-width:100%;
  max-height:320px;
  margin:0 auto;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
}

#qualityResults{
  margin-top:20px;
  font-size:17px;
  text-align:left;
  font-weight:600;
}

.metric-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.metric{
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:12px;
  background:#0d1218;
}

.metric .k{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.metric .v{
  font-size:18px;
  font-weight:800;
}

.results,
.issues{
  margin-top:14px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#0d1218;
}

.issues ul{
  margin:10px 0 0 18px;
  padding:0;
}

.issues li{
  margin-bottom:8px;
  line-height:1.5;
  color:var(--text);
  font-weight:500;
}

.quality-excellent{color:var(--ok);}
.quality-good{color:#9fe870;}
.quality-fair{color:var(--warn);}
.quality-poor{color:var(--bad);}

.canvas-stack{
  position:relative;
  display:inline-block;
  max-width:100%;
  line-height:0;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:auto;
  background:#0a0f14;
}

#finalSignatureCanvas,
#heatmapCanvas,
#signatureCanvas{
  max-width:100%;
  height:auto;
  display:block;
}

#finalSignatureCanvas{
  position:relative;
  z-index:1;
}

#heatmapCanvas{
  position:absolute;
  left:0;
  top:0;
  z-index:2;
  pointer-events:none;
  opacity:1;
}

#signatureCanvas{
  position:absolute;
  left:0;
  top:0;
  z-index:3;
  pointer-events:auto;
  background:transparent;
  cursor:move;
}

/* =========================================================
   FAQ / helper blocks
   ========================================================= */

.faq-grid{
  display:grid;
  gap:16px;
  max-width:1000px;
  margin:0 auto;
}

.faq-item{
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:18px;
  background:#0d1218;
}

.faq-item strong{
  display:block;
  margin-bottom:8px;
  font-size:17px;
}

.faq-item p{
  font-size:15px;
  color:var(--muted);
  line-height:1.7;
  margin:0;
}

/* =========================================================
   Tables / overflow safety
   ========================================================= */

.table-wrap,
.table-scroll-y{
  max-width:100%;
  min-width:0;
  overflow-x:auto;
}

.entries-table{
  width:100%;
  min-width:720px;
}

/* =========================================================
   Auth pages
   ========================================================= */

.auth-shell{
  max-width:720px;
  margin:36px auto 0;
}

.auth-card{
  background:rgba(8,18,40,.82);
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.28);
  backdrop-filter:blur(8px);
}

.auth-card-header{
  padding:32px 32px 18px;
  background:
    radial-gradient(circle at top right, rgba(110,145,255,.20), transparent 28%),
    linear-gradient(135deg, rgba(54,90,150,.28), rgba(67,76,160,.18));
  border-bottom:1px solid rgba(255,255,255,.08);
}

.auth-card-header h2{
  margin:0 0 10px;
  font-size:clamp(1.8rem,3vw,2.4rem);
  line-height:1.1;
}

.auth-card-header p{
  margin:0;
  max-width:560px;
  color:rgba(255,255,255,.78);
  font-size:1rem;
  line-height:1.65;
}

.auth-card-body{
  padding:28px 32px 32px;
}

.auth-form{
  width:100%;
}

.form-row{
  margin-bottom:18px;
}

.form-row label{
  display:block;
  margin:0 0 8px;
  font-size:.95rem;
  font-weight:700;
  color:rgba(255,255,255,.92);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"]{
  display:block;
  width:100%;
  min-height:50px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font:inherit;
  box-sizing:border-box;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-form input::placeholder{
  color:rgba(255,255,255,.45);
}

.auth-form input:focus{
  outline:none;
  border-color:rgba(110,168,255,.95);
  box-shadow:0 0 0 4px rgba(75,138,255,.18);
  background:rgba(255,255,255,.09);
}

.auth-actions{
  margin-top:24px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.auth-actions .btn{
  width:auto;
}

.auth-note{
  margin:20px 0 0;
  color:rgba(255,255,255,.76);
  font-size:.97rem;
}

.auth-note a{
  color:#9dc3ff;
  font-weight:700;
  text-decoration:none;
}

.auth-note a:hover{
  text-decoration:underline;
}

.alert{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:14px;
  font-size:.95rem;
  line-height:1.5;
}

.alert-error{
  background:rgba(180,32,32,.14);
  border:1px solid rgba(255,120,120,.28);
  color:#ffd0d0;
}

.alert-success{
  background:rgba(28,120,60,.16);
  border:1px solid rgba(100,220,140,.25);
  color:#d6ffe2;
}

/* =========================================================
   Sidebar
   ========================================================= */

.site-sidebar{
  width:100%;
  min-width:0;
  align-self:start;
  position:sticky;
  top:18px;
  border-radius:24px;
  overflow:hidden;
}

.site-sidebar .sidebar-shell,
.sidebar-shell{
  display:flex;
  flex-direction:column;
  gap:0;
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  background:
    radial-gradient(circle at top, rgba(77,163,255,.10), transparent 34%),
    rgba(18,24,39,.78);
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
  overflow-y:auto;
  overflow-x:hidden;
  text-align:left;
  padding:0;
  max-height:var(--sidebar-match-height, none);
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:rgba(185,218,255,.32) transparent;
}

.site-sidebar .sidebar-shell::-webkit-scrollbar{
  width:7px;
}

.site-sidebar .sidebar-shell::-webkit-scrollbar-track{
  background:transparent;
  border-radius:999px;
  margin:14px 0;
}

.site-sidebar .sidebar-shell::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, rgba(77,163,255,.30), rgba(124,92,255,.30));
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  min-height:48px;
}

.site-sidebar .sidebar-shell:hover::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, rgba(77,163,255,.48), rgba(124,92,255,.48));
}

.site-sidebar .sidebar-shell::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg, rgba(77,163,255,.65), rgba(124,92,255,.65));
}

.site-sidebar .sidebar-section,
.sidebar-section{
  padding:16px;
  text-align:left;
  margin:0;
}

.site-sidebar .sidebar-section + .sidebar-section,
.sidebar-section + .sidebar-section{
  border-top:1px solid rgba(255,255,255,.08);
}

.site-sidebar .sidebar-title,
.sidebar-title{
  margin:0 0 14px;
  font-size:14px;
  line-height:1.25;
  font-weight:900;
  letter-spacing:-.01em;
  color:#eef4ff;
  text-align:left;
}

.site-sidebar .sidebar-title::after,
.sidebar-title::after{
  content:"";
  display:block;
  width:42px;
  height:3px;
  margin-top:8px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
}

.site-sidebar .sidebar-video-list,
.sidebar-video-list{
  list-style:none !important;
  margin:0;
  padding:0;
  display:grid;
  gap:14px;
}

.site-sidebar .sidebar-video-item,
.sidebar-video-item{
  list-style:none !important;
  width:100%;
  margin:0;
  padding:10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(5,10,18,.42);
  text-align:center;
}

.site-sidebar .sidebar-video-item::marker,
.sidebar-video-item::marker{
  content:"";
}

.site-sidebar .sidebar-video-embed,
.sidebar-video-embed{
  position:relative;
  width:100%;
  padding-bottom:56.25%;
  height:0;
  overflow:hidden;
  border-radius:13px;
  margin:0 0 9px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.08);
}

.site-sidebar .sidebar-video-embed iframe,
.sidebar-video-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  border-radius:13px;
}

.site-sidebar .sidebar-video-link,
.sidebar-video-link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:34px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.055);
  color:#eef4ff;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  text-align:center;
}

.site-sidebar .sidebar-video-link:hover,
.sidebar-video-link:hover{
  text-decoration:none;
  background:rgba(255,255,255,.09);
  border-color:rgba(255,255,255,.18);
}

.site-sidebar .sidebar-prnewswire,
.sidebar-prnewswire{
  text-align:left;
  background:rgba(5,10,18,.24);
  overflow:visible;
}

.site-sidebar .sidebar-prnewswire::before,
.site-sidebar .sidebar-prnewswire::after,
.sidebar-prnewswire::before,
.sidebar-prnewswire::after{
  content:none !important;
  display:none !important;
}

.site-sidebar .prnewswire-box,
.prnewswire-box{
  width:100%;
  max-width:100%;
  min-height:260px;
  max-height:420px;
  overflow-y:auto;
  overflow-x:hidden;
  padding:10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(5,10,18,.42);
}

.site-sidebar .prnewswire-box::-webkit-scrollbar,
.prnewswire-box::-webkit-scrollbar{
  width:7px;
}

.site-sidebar .prnewswire-box::-webkit-scrollbar-track,
.prnewswire-box::-webkit-scrollbar-track{
  background:transparent;
}

.site-sidebar .prnewswire-box::-webkit-scrollbar-thumb,
.prnewswire-box::-webkit-scrollbar-thumb{
  background:rgba(185,218,255,.24);
  border-radius:999px;
}

.site-sidebar .prnewswire-widget-target,
.prnewswire-widget-target{
  width:100%;
  max-width:100%;
  min-height:220px;
  overflow:visible !important;
}

.site-sidebar .prnewswire-loading,
.prnewswire-loading{
  margin:0;
  padding:12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(5,10,18,.38);
  color:rgba(238,244,255,.72);
  font-size:12px;
  line-height:1.5;
  text-align:center;
}

.site-sidebar .sidebar-prnewswire,
.site-sidebar .sidebar-prnewswire *,
.sidebar-prnewswire,
.sidebar-prnewswire *{
  max-width:100% !important;
  box-sizing:border-box;
}

.site-sidebar .sidebar-prnewswire a,
.sidebar-prnewswire a{
  color:#eef4ff !important;
  text-decoration:none !important;
}

.site-sidebar .sidebar-prnewswire a:hover,
.sidebar-prnewswire a:hover{
  color:#b9daff !important;
  text-decoration:underline !important;
}

.site-sidebar .sidebar-prnewswire img,
.sidebar-prnewswire img{
  max-width:100% !important;
  height:auto !important;
  border-radius:10px !important;
}

.site-sidebar .sidebar-prnewswire table,
.sidebar-prnewswire table{
  width:100% !important;
}

.site-sidebar .sidebar-prnewswire iframe,
.site-sidebar .sidebar-prnewswire img,
.site-sidebar .sidebar-prnewswire table,
.site-sidebar .sidebar-prnewswire div,
.sidebar-prnewswire iframe,
.sidebar-prnewswire img,
.sidebar-prnewswire table,
.sidebar-prnewswire div{
  max-width:100% !important;
}

.site-sidebar .sidebar-ad,
.site-sidebar .sidebar-image-card,
.sidebar-ad,
.sidebar-image-card{
  text-align:center;
}

.site-sidebar .sidebar-ad-link,
.sidebar-ad-link{
  display:block;
}

.site-sidebar .sidebar-ad-img,
.site-sidebar .sidebar-feature-image,
.sidebar-ad-img,
.sidebar-feature-image{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin:0 auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(5,10,18,.42);
}

.sidebar-card{
  width:100%;
  padding:18px;
  border:1px solid var(--border);
  border-radius:20px;
  background:rgba(255,255,255,.05);
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
  overflow:hidden;
  text-align:center;
}

/* =========================================================
   Signature display
   ========================================================= */

.signature-display-card{
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  background:#0d1218;
  text-align:center;
}

.signature-display-card b{
  display:block;
  margin-bottom:10px;
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.person-signature-image{
  display:block;
  max-width:min(420px, 100%);
  max-height:180px;
  width:auto;
  height:auto;
  object-fit:contain;
  margin:0 auto;
  padding:12px;
  border-radius:12px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.12);
}

/* =========================================================
   Footer
   ========================================================= */

.footer-note{
  margin-top:20px;
  padding:18px 20px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.04);
  color:var(--muted);
  line-height:1.7;
  font-size:.95rem;
}

.site-footer{
  width:100%;
  margin:28px auto 0;
  padding:18px 16px;
  text-align:center;
  color:rgba(238,244,255,.72);
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}

.site-footer *{
  box-sizing:border-box;
}

.site-footer .footer-inner{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.site-footer p,
.site-footer div,
.site-footer nav{
  text-align:center;
}

.site-footer .footer-status{
  width:100%;
  margin:0 0 10px;
  font-size:.84rem;
  line-height:1.4;
  color:rgba(238,244,255,.72);
}

.site-footer .footer-status strong{
  color:var(--text);
}

.site-footer .footer-mail{
  width:100%;
  margin:0 auto 12px;
  text-align:center;
  line-height:1.45;
  font-size:.84rem;
  color:rgba(238,244,255,.72);
}

.site-footer .footer-mail-title{
  margin:0 0 4px;
  font-weight:800;
  color:#ffffff;
  text-align:center;
}

.site-footer .footer-socials{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  width:100%;
  max-width:100%;
  margin:10px auto 12px;
  padding:0;
  text-align:center;
}

.site-footer .footer-social-link{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:32px;
  height:32px;
  min-width:32px;
  max-width:32px;
  min-height:32px;
  max-height:32px;
  padding:0;
  margin:0;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  color:#ffffff;
  background:rgba(255,255,255,.06);
  text-decoration:none;
  line-height:1;
  overflow:hidden;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}

.site-footer .footer-social-link:hover,
.site-footer .footer-social-link:focus{
  transform:translateY(-1px);
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.35);
  color:#ffffff;
  text-decoration:none;
}

.site-footer .footer-social-icon{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:16px;
  height:16px;
  min-width:16px;
  max-width:16px;
  min-height:16px;
  max-height:16px;
  padding:0;
  margin:0;
  line-height:1;
}

.site-footer .footer-social-icon svg{
  display:block;
  width:16px;
  height:16px;
  min-width:16px;
  max-width:16px;
  min-height:16px;
  max-height:16px;
  fill:currentColor;
  stroke:none;
  overflow:hidden;
}

.site-footer .footer-social-label{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.site-footer .footer-meta{
  width:100%;
  margin:0;
  text-align:center;
  font-size:.78rem;
  line-height:1.6;
  color:rgba(238,244,255,.58);
}

.site-footer .footer-meta a{
  color:rgba(238,244,255,.68);
  text-decoration:none;
}

.site-footer .footer-meta a:hover,
.site-footer .footer-meta a:focus{
  color:#ffffff;
  text-decoration:underline;
}

.site-footer .footer-sep{
  display:inline-block;
  margin:0 7px;
  color:rgba(255,255,255,.25);
}

/* =========================================================
   Desktop wide-screen tuning
   ========================================================= */

@media (min-width:1600px){
  body{
    padding-left:24px;
    padding-right:24px;
  }

  .wrap,
  .footer-inner{
    width:min(97vw, 1840px);
    max-width:1840px;
  }

  .home-layout{
    grid-template-columns:minmax(0,1fr) 380px;
  }

  .tracker-layout,
  .search-layout,
  .person-layout,
  .page-with-sidebar{
    grid-template-columns:minmax(0,1fr) 360px;
  }
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width:1300px){
  .home-layout,
  .tracker-layout,
  .search-layout,
  .person-layout,
  .page-with-sidebar{
    grid-template-columns:minmax(0,1fr) 320px;
    gap:20px;
  }
}

@media (max-width:1050px){
  .site-nav-menu,
  .universal-nav-menu{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width:980px){
  body{
    padding:16px;
  }

  .wrap{
    width:100%;
    max-width:100%;
  }

  .home-layout,
  .tracker-layout,
  .search-layout,
  .person-layout,
  .page-with-sidebar{
    grid-template-columns:1fr;
  }

  .home-tool-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .hero-inner,
  .grid,
  .tool-grid{
    grid-template-columns:1fr;
  }

  .site-sidebar{
    position:static;
    top:auto;
    overflow:visible;
  }

  .site-sidebar .sidebar-shell,
  .sidebar-shell{
    max-width:720px;
    max-height:none !important;
    overflow:visible !important;
    margin:0 auto;
  }

  .page-main{
    order:1;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width:860px){
  .home-tool-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:760px){
  body{
    padding:12px;
  }

  .topbar,
  .site-header{
    align-items:stretch;
  }

  .actions,
  .account-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    justify-content:stretch;
  }

  .actions .btn,
  .account-actions .btn{
    width:100%;
  }

  .account-status{
    text-align:center;
    margin:0;
  }

  .top-actions{
    width:100%;
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .top-actions .btn,
  .top-actions a.btn{
    min-height:42px;
    padding:10px 8px;
    font-size:12px;
  }

  .metric-grid{
    grid-template-columns:1fr;
  }

  .card-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .card-actions .btn{
    width:100%;
  }
}

@media (max-width:640px){
  body{
    padding:10px;
  }

  .site-nav-toggle,
  .universal-nav-toggle{
    display:flex !important;
    align-items:center;
    justify-content:center;
  }

  .site-nav-menu,
  .universal-nav-menu{
    display:none !important;
    grid-template-columns:1fr;
    margin-top:8px;
  }

  .site-nav-menu.is-open,
  .universal-nav-menu.is-open{
    display:grid !important;
  }

  .topbar,
  .site-header,
  .hero-inner,
  .card-top,
  .card-actions,
  .hd,
  .bd,
  .footer-note{
    padding-left:16px;
    padding-right:16px;
  }

  .topbar,
  .site-header{
    padding-top:16px;
    padding-bottom:16px;
  }

  .hero-inner{
    padding-top:28px;
    padding-bottom:28px;
  }

  .section-title{
    font-size:1.6rem;
  }

  .auth-shell{
    margin-top:24px;
  }

  .auth-card-header,
  .auth-card-body{
    padding-left:20px;
    padding-right:20px;
  }

  .sidebar-section,
  .sidebar-card{
    padding:16px;
  }

  .sidebar-title{
    font-size:1rem;
  }

  .sidebar-video-link{
    font-size:.92rem;
  }

  .site-footer{
    padding:16px 10px;
  }

  .site-footer .footer-inner{
    max-width:100%;
  }

  .site-footer .footer-socials{
    gap:8px;
  }

  .site-footer .footer-social-link{
    width:30px;
    height:30px;
    min-width:30px;
    max-width:30px;
    min-height:30px;
    max-height:30px;
  }

  .site-footer .footer-social-icon,
  .site-footer .footer-social-icon svg{
    width:15px;
    height:15px;
    min-width:15px;
    max-width:15px;
    min-height:15px;
    max-height:15px;
  }

  .site-footer .footer-meta{
    font-size:.76rem;
  }

  .site-footer .footer-sep{
    margin:0 5px;
  }
}

/* =========================================================
   Public Entry Share Page
   entry.php
   ========================================================= */

.public-entry-page .wrap{
  max-width:1180px;
}

.public-entry-page .entry-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.08fr) minmax(320px, .92fr);
  gap:18px;
  align-items:start;
  width:100%;
}

.public-entry-page .entry-media-card{
  padding:0;
}

.public-entry-page .entry-image-wrap{
  padding:16px;
}

.public-entry-page .hero-img{
  display:block;
  width:100%;
  max-height:740px;
  object-fit:contain;
  object-position:center;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(5,10,18,.55);
  box-shadow:0 16px 42px rgba(0,0,0,.22);
}

.public-entry-page .entry-title-block{
  min-width:0;
}

.public-entry-page .entry-kicker{
  margin:0 0 6px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.public-entry-page .entry-title{
  margin:0;
  font-size:clamp(2rem, 4vw, 3.8rem);
  line-height:1.02;
  letter-spacing:-.04em;
}

.public-entry-page .entry-sub{
  margin:8px 0 0;
  max-width:760px;
  color:var(--muted);
  font-size:1rem;
  line-height:1.6;
}

.public-entry-page .entry-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.public-entry-page .entry-card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.public-entry-page .entry-card-header h2{
  margin:0;
  font-size:1.45rem;
  line-height:1.15;
}

.public-entry-page .entry-card-header .muted{
  margin-top:5px;
}

.public-entry-page .badge-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin:0 0 14px;
}

.public-entry-page .badge,
.public-entry-page .status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:30px;
  margin:0;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:#dce9ff;
  font-size:12px;
  font-weight:900;
  line-height:1;
  letter-spacing:.02em;
  text-transform:none;
  white-space:nowrap;
}

.public-entry-page .status-pill{
  font-size:12px;
}

.public-entry-page .st-ok{
  border-color:rgba(61,220,151,.45);
  background:rgba(61,220,151,.10);
  color:#dff7ed;
}

.public-entry-page .st-warn{
  border-color:rgba(255,204,102,.50);
  background:rgba(255,204,102,.10);
  color:#fff0c4;
}

.public-entry-page .st-bad{
  border-color:rgba(255,90,107,.50);
  background:rgba(255,90,107,.10);
  color:#ffd7dc;
}

.public-entry-page .st-done{
  border-color:rgba(77,163,255,.50);
  background:rgba(77,163,255,.12);
  color:#d8ebff;
}

.public-entry-page .detail-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.public-entry-page .detail{
  min-height:76px;
  padding:13px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(5,10,18,.42);
  overflow:hidden;
}

.public-entry-page .detail.full{
  grid-column:1 / -1;
}

.public-entry-page .detail b{
  display:block;
  margin:0 0 7px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.public-entry-page .detail div{
  color:var(--text);
  line-height:1.55;
  overflow-wrap:anywhere;
}

.public-entry-page .detail a{
  color:#b9daff;
  font-weight:800;
  text-decoration:none;
}

.public-entry-page .detail a:hover{
  text-decoration:underline;
}

.public-entry-page .mono{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
}

.public-entry-page .muted{
  color:var(--muted);
}

.public-entry-page .share-box{
  margin-top:16px;
  padding:15px;
  border:1px solid var(--border);
  border-radius:18px;
  background:
    linear-gradient(135deg, rgba(77,163,255,.08), rgba(124,92,255,.07)),
    rgba(5,10,18,.42);
}

.public-entry-page .share-box strong{
  display:block;
  margin-bottom:6px;
  color:#fff;
  font-size:1rem;
}

.public-entry-page .privacy-note{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}

.public-entry-page .share-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:12px;
}

.public-entry-page .share-preview{
  margin-top:12px;
  padding:13px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(5,10,18,.58);
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.public-entry-page .copy-note{
  display:none;
  margin-top:9px;
  color:#9fe870;
  font-size:13px;
  font-weight:900;
}

.public-entry-page .copy-note.show{
  display:block;
}

.public-entry-page .entry-not-found{
  max-width:860px;
  margin:0 auto;
}

.public-entry-page .entry-not-found .card{
  padding:24px;
}

.public-entry-page .entry-not-found h1{
  margin:0 0 10px;
}

.public-entry-page .entry-not-found p{
  margin:0;
  color:var(--muted);
}

/* Latest Community Entries share/view buttons inside tracker.php */

.community-head > div:last-child{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.share-entry-btn{
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

.person-link-btn,
.person-page-link{
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

/* =========================================================
   Public Entry Share Page Responsive
   ========================================================= */

@media (max-width:980px){
  .public-entry-page .entry-layout{
    grid-template-columns:1fr;
  }

  .public-entry-page .entry-actions{
    width:100%;
    justify-content:flex-start;
  }

  .public-entry-page .hero-img{
    max-height:680px;
  }
}

@media (max-width:760px){
  .public-entry-page .entry-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .public-entry-page .entry-actions .btn{
    width:100%;
  }

  .public-entry-page .detail-grid{
    grid-template-columns:1fr;
  }

  .public-entry-page .share-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .public-entry-page .share-actions button,
  .public-entry-page .share-actions .btn{
    width:100%;
  }

  .community-head{
    align-items:flex-start;
  }

  .community-head > div:last-child{
    width:100%;
    justify-content:flex-start;
  }
}

@media (max-width:520px){
  .public-entry-page .entry-image-wrap{
    padding:12px;
  }

  .public-entry-page .hero-img{
    max-height:540px;
    border-radius:14px;
  }

  .public-entry-page .entry-title{
    font-size:2rem;
  }

  .public-entry-page .badge-row{
    gap:6px;
  }

  .public-entry-page .badge,
  .public-entry-page .status-pill{
    max-width:100%;
    white-space:normal;
    line-height:1.25;
    text-align:center;
  }
}
