﻿/* LifeMD Report app: sign-in, account and admin pages. Brand palette from the LifeMD brand guide. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(/fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url(/fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  --navy: #000229; --blue: #2273B5; --green: #0D835A; --purple: #573AA0; --sky: #61B7E7;
  --steel: #3A61A0; --mint: #5BA983; --lilac: #A996DC; --slate: #6F707F;
  --ink: #0B1033; --ink2: #3B4060; --ink3: #6F707F; --line: #DDE1EA; --bg: #F4F6FA; --card: #fff;
  --ok: #0D835A; --bad: #B42318; --warn: #9A5B00;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===================== Sign-in ===================== */
body.auth { min-height: 100vh; background: var(--navy); color: #fff; overflow-x: hidden; }
.stage { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.stage .glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.stage .g1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle at 40% 40%, var(--blue), transparent 65%); }
.stage .g2 { width: 40vw; height: 40vw; right: -10vw; top: 8vh; background: radial-gradient(circle at 50% 50%, var(--purple), transparent 65%); animation-duration: 28s; animation-delay: -6s; }
.stage .g3 { width: 38vw; height: 38vw; left: 22vw; bottom: -18vw; background: radial-gradient(circle at 50% 50%, var(--green), transparent 65%); animation-duration: 26s; animation-delay: -12s; opacity: .45; }
.stage .g4 { width: 24vw; height: 24vw; right: 18vw; bottom: -6vw; background: radial-gradient(circle at 50% 50%, var(--sky), transparent 65%); animation-duration: 19s; animation-delay: -3s; opacity: .35; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(4vw,3vh,0) scale(1.08); } 100% { transform: translate3d(-3vw,-2vh,0) scale(.96); } }
.stage .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(97,183,231,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(97,183,231,.07) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 30% 60%, #000 20%, transparent 75%); }
.stage svg.curves { position: absolute; left: 0; bottom: 0; width: 100%; height: 72%; }
.curves path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 3.2s cubic-bezier(.2,.7,.2,1) forwards; }
.curves path.c1 { stroke: var(--sky); animation-delay: .2s; } .curves path.c2 { stroke: var(--mint); animation-delay: .5s; opacity: .8; }
.curves path.c3 { stroke: var(--lilac); animation-delay: .8s; opacity: .7; } .curves path.c4 { stroke: var(--blue); animation-delay: 1.1s; opacity: .6; }
.curves path.area { stroke: none; fill: url(#fillA); stroke-dasharray: none; animation: fadein 2.4s ease 1s forwards; opacity: 0; }
.curves circle { fill: var(--sky); opacity: 0; animation: fadein .6s ease forwards, pulse 2.6s ease-in-out 3.4s infinite; }
.curves circle.d1 { animation-delay: 2.6s, 3.4s; } .curves circle.d2 { animation-delay: 3.1s, 3.9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { r: 4; opacity: .9; } 50% { r: 7; opacity: .35; } }

.auth-wrap { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px); align-items: center; gap: 48px; max-width: 1240px; margin: 0 auto; padding: 48px 40px; }
/* LifeMD logo + the enterprise's logo, side by side on every page (Brand) */
.hero .lockup { display: flex; align-items: center; gap: 16px; margin-bottom: 56px; }
.hero .logo { width: 172px; height: auto; display: block; }
.hero .logo.ent { width: auto; height: 50px; }
.lockup .plus { color: var(--sky); font-family: var(--head); font-weight: 300; font-size: 30px; line-height: 1; }
.hero .kick { font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.hero .kick::before { content: ""; width: 28px; height: 2px; background: var(--sky); }
.hero h1 { font-family: var(--head); font-weight: 600; font-size: clamp(44px, 6vw, 80px); line-height: .95; letter-spacing: -.02em; margin: 0 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--sky), var(--lilac) 55%, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: rgba(255,255,255,.72); max-width: 520px; margin: 0 0 30px; }
.hero .stats { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .stats span { font-family: var(--head); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.82); border: 1px solid rgba(97,183,231,.35); background: rgba(0,2,41,.72); padding: 6px 12px; border-radius: 999px; }

.card-auth { position: relative; background: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: 36px 34px 28px; backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12); animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.card-auth::before { content: ""; position: absolute; inset: -1px; border-radius: 20px; padding: 1px; background: linear-gradient(140deg, rgba(97,183,231,.7), transparent 35%, transparent 65%, rgba(169,150,220,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.card-auth h2 { font-family: var(--head); font-weight: 600; font-size: 32px; letter-spacing: -.01em; margin: 0 0 4px; }
.card-auth .sub { color: rgba(255,255,255,.62); margin: 0 0 26px; font-size: 15px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.field .in { position: relative; }
.field input { width: 100%; height: 50px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,2,41,.55); color: #fff; font: inherit; font-size: 16px; padding: 0 16px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.field input::placeholder { color: rgba(255,255,255,.35); }
.field input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(97,183,231,.22); background: rgba(0,2,41,.75); }
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #0b1a4a inset; caret-color: #fff; }
.field .peek { position: absolute; right: 8px; top: 8px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.6); font-family: var(--head); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.field .peek:hover { color: #fff; background: rgba(255,255,255,.08); }
.field.pw input { padding-right: 72px; }
.row-x { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 22px; font-size: 14px; color: rgba(255,255,255,.7); }
.row-x label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.row-x input { width: 16px; height: 16px; accent-color: var(--sky); }
.row-x a { color: var(--sky); text-decoration: none; }
.row-x a:hover { text-decoration: underline; }
.btn-primary { width: 100%; height: 52px; border: 0; border-radius: 12px; cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 19px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(100deg, var(--blue), var(--steel) 45%, var(--purple)); background-size: 200% 100%; background-position: 0 0; box-shadow: 0 10px 30px rgba(34,115,181,.45); transition: background-position .5s ease, transform .1s ease, box-shadow .2s; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 12px 36px rgba(87,58,160,.5); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.alert { border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; font-size: 14.5px; }
.alert.err { background: rgba(180,35,24,.18); border: 1px solid rgba(240,120,110,.45); color: #FFD9D4; }
.alert.ok { background: rgba(13,131,90,.2); border: 1px solid rgba(91,169,131,.5); color: #D6F5E7; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(255,255,255,.5); display: flex; gap: 8px; align-items: center; }
.foot .lock { width: 14px; height: 14px; flex: none; }
.foot a { color: inherit; }
.foot form.inline { margin: 0; }
.textbtn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; font: inherit; }
.btn-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.field input.code { font-size: 28px; letter-spacing: .45em; text-align: center; font-weight: 600; height: 60px; padding: 0 0 0 .45em; }
.alt { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.75); }
.alt .textbtn { color: var(--sky); }
.alt form.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.hint { font-size: 13.5px; color: rgba(255,255,255,.6); margin: -8px 0 18px; }

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 28px; padding: 28px 18px; }
  .hero .lockup { margin-bottom: 28px; }
  .hero .logo { width: 140px; }
  .hero .logo.ent { width: auto; height: 41px; }
  .hero p, .hero .stats { display: none; }
  .hero h1 { font-size: 44px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stage .glow, .curves path, .curves circle, .card-auth { animation: none !important; }
  .curves path { stroke-dashoffset: 0; } .curves path.area, .curves circle { opacity: 1; }
}

/* ===================== Admin / account pages (light) ===================== */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.15); }   /* stays at the top while the page scrolls */
.top .in { max-width: 1440px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 14px; }
.top img { height: 28px; display: block; }
.top .lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.top .lockup img + .plus + img { width: auto; }
.top .lockup .plus { font-size: 20px; }
.top nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav .sep { width: 1px; height: 18px; background: rgba(255,255,255,.25); margin: 0 6px; flex: none; }   /* report pages | admin */
.top nav a { color: rgba(255,255,255,.75); text-decoration: none; font-family: var(--head); font-size: 14px; font-weight: 500; letter-spacing: .02em; padding: 6px 7px; border-radius: 8px; white-space: nowrap; flex: none; }
.top nav a:hover, .top nav a.on { color: #fff; background: rgba(255,255,255,.1); }
/* admin sub-navigation: the pages of the current admin area, in a lighter row under the header (sticky with it) */
.top .subnav { background: #F4F6FA; border-bottom: 1px solid var(--line); }
.top .subnav .in { padding: 6px 20px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.top .subnav .gl { font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-right: 10px; flex: none; }
.top .subnav a { color: var(--ink2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 5px 10px; border-radius: 8px; white-space: nowrap; flex: none; }
.top .subnav a:hover { background: #E8ECF3; color: var(--ink); }
.top .subnav a.on { background: #fff; color: var(--blue); box-shadow: 0 0 0 1px var(--line); font-weight: 600; }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.hub .hubg { margin: 0; }
.hub .hubg .small { color: var(--ink3); margin: -6px 0 10px; font-size: 13.5px; }
.hub ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hub li a { font-weight: 600; color: var(--blue); text-decoration: none; }
.hub li a:hover { text-decoration: underline; }
.hub li span { display: block; font-size: 13px; color: var(--ink3); }
.top .who { font-size: 13px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; }
.top .who .em { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.top .who form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--sky); cursor: pointer; text-decoration: underline; }
main.page { max-width: 1200px; margin: 0 auto; padding: 28px 24px 60px; }
main.page h1 { font-family: var(--head); font-size: 36px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
main.page .lead { color: var(--ink3); margin: 0 0 24px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 20px; }
.panel h2 { font-family: var(--head); font-size: 22px; font-weight: 600; margin: 0 0 12px; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-family: var(--head); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.grid td { padding: 10px; border-bottom: 1px solid #EEF0F5; vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #EEF3FE; color: var(--steel); }
.pill.admin { background: #EFEAFB; color: var(--purple); } .pill.off { background: #FDECEA; color: var(--bad); } .pill.ok { background: #E6F4EE; color: var(--ok); } .pill.warn { background: #FFF4E5; color: var(--warn); }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.form-inline label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.form-inline input, .form-inline select { height: 38px; border: 1px solid #C9CFDB; border-radius: 9px; padding: 0 10px; font: inherit; font-size: 14px; min-width: 200px; }
.btn { white-space: nowrap; height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.btn.ghost { background: #fff; color: var(--blue); }
.btn.danger { background: #fff; color: var(--bad); border-color: #E5B4AE; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { margin: 0; }
form.inline { display: inline; margin: 0; }
.msg { border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 14.5px; }
.msg.ok { background: #E6F4EE; color: #0B5E41; border: 1px solid #B9E0CD; }
.msg.err { background: #FDECEA; color: #8E1C12; border: 1px solid #F3C2BC; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #0B1033; color: #fff; padding: 2px 8px; border-radius: 6px; user-select: all; }
.small { font-size: 13px; color: var(--ink3); }

/* user settings */
.vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; margin: 8px 0 4px; }
.vlist label, .radios label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.radios { display: flex; gap: 18px; flex-wrap: wrap; margin: 4px 0 6px; }
.fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.fieldset legend { font-family: var(--head); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); font-weight: 600; margin-bottom: 6px; }
.form-stack label.txt { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink2); max-width: 420px; margin-bottom: 14px; }
.form-stack input[type=text], .form-stack input[type=email] { height: 38px; border: 1px solid #C9CFDB; border-radius: 9px; padding: 0 10px; font: inherit; font-size: 14px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--ink3); } .kv dd { margin: 0; }
.backlink { display: inline-block; margin-bottom: 10px; font-size: 14px; }
.hidden { display: none !important; }
.btn-a { display: inline-flex; align-items: center; text-decoration: none; }

/* NDA signing */
body.auth.wide .auth-wrap { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); max-width: 1400px; align-items: start; }
body.auth.wide .hero { position: sticky; top: 48px; padding-top: 40px; }
.card-doc { padding: 30px 30px 24px; }
.doc { max-height: 46vh; overflow: auto; background: rgba(255,255,255,.96); color: #0B1033; border-radius: 12px; padding: 18px 22px; font-size: 14.5px; line-height: 1.6; margin-bottom: 8px; }
.doc p { margin: 0 0 12px; white-space: pre-line; }
.doc-hash { word-break: break-all; font-size: 11.5px; }
.sigtabs { display: flex; gap: 6px; margin: 4px 0 8px; }
.sigtab { background: transparent; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.75); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13.5px; cursor: pointer; }
.sigtab.on { background: #fff; color: #0B1033; border-color: #fff; }
.sigbox { position: relative; background: #fff; border-radius: 12px; height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; overflow: hidden; }
.sigbox #sigPreview { font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; font-size: 40px; color: #0B1033; }
.sigbox #sigPreview.ph { color: #B8BCC9; }
.sigbox canvas { width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sigbox .sigclear { position: absolute; right: 12px; top: 8px; color: #3B4060; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 12px; }
label.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--sky); flex: none; }
@media (max-width: 900px) { body.auth.wide .auth-wrap { grid-template-columns: 1fr; } body.auth.wide .hero { position: static; padding-top: 0; } body.auth.wide .hero > :not(.lockup) { display: none; } body.auth.wide .hero .lockup { margin-bottom: 0; } }
.form-stack label.txt.wide { max-width: none; }
.form-stack textarea { border: 1px solid #C9CFDB; border-radius: 9px; padding: 10px; font: inherit; font-size: 14px; line-height: 1.5; width: 100%; }
label.check-dark { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 0 0 14px; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.sel { height: 38px; border: 1px solid #C9CFDB; border-radius: 9px; padding: 0 10px; font: inherit; font-size: 14px; min-width: 260px; }
.grp-all { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); font-size: 14px; letter-spacing: .06em; }
.fieldset.grp { border-top: 1px solid var(--line); padding-top: 10px; }
svg.dau { width: 100%; height: 140px; display: block; }
svg.dau rect { fill: var(--blue); }
svg.dau rect:hover { fill: var(--purple); }
svg.dau line { stroke: var(--line); }
tr.muted td { opacity: .55; }

/* Segments */
.seg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.seg-head h2 { margin: 0; }
.seg-cat { background: #EEF6FC; color: #2273B5; border: 1px solid #CFE5F6; }
.seg p { margin: 6px 0 12px; color: var(--ink2); font-size: 14px; line-height: 1.5; }
.seg-form { margin: 4px 0 8px; }
.seg-fields { margin-top: 6px; font-size: 13px; }
.seg-fields summary { cursor: pointer; color: #2273B5; }
.seg-fields code { display: block; margin-top: 6px; padding: 10px 12px; background: #F4F6FA; border-radius: 8px; white-space: normal; line-height: 1.6; }

/* Email previews */
.mail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 18px; }
@media (max-width: 640px) { .mail-grid { grid-template-columns: 1fr; } }
.mail { margin: 0; }
.mail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mail-head h2 { margin: 0 0 2px; }
.mail-head p { margin: 0; }
.mail-subject { margin: 12px 0 10px; font-size: 13.5px; color: var(--ink); }
.mail-subject span { display: inline-block; min-width: 58px; color: var(--ink3); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.mail-frame { width: 100%; height: 660px; border: 1px solid var(--line); border-radius: 10px; background: #F2F4F8; }
.mail-frame.mail-invite { height: 860px; }
.mail-frame.mail-reset { height: 640px; }
.mail-frame.mail-contact { height: 520px; }
.mail-text { white-space: pre-wrap; font-size: 12.5px; background: #F4F6FA; border-radius: 8px; padding: 10px 12px; margin: 6px 0 0; }
.sms { margin: 14px 0 0; }
.sms-from { font-size: 12px; color: var(--ink3); margin: 0 0 4px 4px; }
.sms-bubble { display: inline-block; max-width: 340px; background: #E9EBF0; color: var(--ink); border-radius: 18px 18px 18px 6px; padding: 10px 14px; font-size: 14px; line-height: 1.4; }
/* NDA fill-in fields (signing page) */
.doc mark.fill { background: #EAF3FC; color: #0B1033; border-bottom: 1px dashed #2273B5; padding: 0 2px; border-radius: 2px; }
.doc mark.fill.ph { color: #6F707F; font-style: italic; }
.doc .doc-sig { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid #DDE1EA; padding-top: 12px; }
@media (max-width: 640px) { .doc .doc-sig { grid-template-columns: 1fr; } }
.nda-fields code { background: #F0F4FB; padding: 1px 4px; border-radius: 4px; }

/* Admin → Usage */
.tw { overflow-x: auto; }
.utiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 20px; }
.utile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.utile .l { font-family: var(--head); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); font-weight: 600; }
.utile .v { font-family: var(--head); font-size: 30px; font-weight: 600; line-height: 1.15; }
.utile .n { font-size: 12px; color: var(--ink3); }
.utile.warn { background: #FFF4E5; }
.ubar { width: 100%; min-width: 80px; height: 10px; display: block; }
.col-bar { width: 22%; }   /* admin pages allow no inline styles (CSP style-src 'self') */
.mb10 { margin-bottom: 10px; }
.ubar rect { fill: var(--blue); } .ubar rect.bg { fill: #EEF1F7; }
table.grid td.h1 { background: rgba(34, 115, 181, 0.17);  }
table.grid td.h2 { background: rgba(34, 115, 181, 0.26);  }
table.grid td.h3 { background: rgba(34, 115, 181, 0.35);  }
table.grid td.h4 { background: rgba(34, 115, 181, 0.44);  }
table.grid td.h5 { background: rgba(34, 115, 181, 0.53);  }
table.grid td.h6 { background: rgba(34, 115, 181, 0.62); color: #fff; }
table.grid td.h7 { background: rgba(34, 115, 181, 0.71); color: #fff; }
table.grid td.h8 { background: rgba(34, 115, 181, 0.80); color: #fff; }
table.grid td.h9 { background: rgba(34, 115, 181, 0.89); color: #fff; }
tr.muted td { color: var(--ink3); }
table.grid td.hc { text-align: center; font-size: 12px; padding: 6px 4px; min-width: 34px; }
table.umatrix th { vertical-align: bottom; padding: 4px; }
table.umatrix th span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 170px; overflow: hidden; text-overflow: ellipsis; display: inline-block; letter-spacing: .04em; font-size: 11px; }
table.uweek th { font-size: 11px; padding: 4px; text-align: center; }
table.uweek td.hc { min-width: 28px; }
.ucols { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; margin-top: 16px; }
.ucols h3 { font-family: var(--head); font-size: 17px; margin: 0 0 8px; }

/* NDA signed on the uploaded document (signer page and admin field editor) */
.ndoc-setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 22px; align-items: start; }
@media (max-width: 760px) { .ndoc-setup { grid-template-columns: 1fr; } }
.panel .ndoc-setup { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.panel .ndoc-setup form { margin: 0; }
.sigtabs-lab { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); align-self: center; margin-right: 6px; min-width: 64px; }
.sigbox-sm { height: 92px; }
.sigbox-xs { height: 72px; max-width: 220px; }
@font-face { font-family: "Great Vibes"; font-weight: 400; font-display: swap; src: url(/fonts/greatvibes-regular.ttf) format("truetype"); }   /* SIL OFL: the signed PDF uses the same font */
.script, .sigbox #iniPreview { font-family: "Great Vibes", "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; color: #0B1033; }
.sigbox-sm #sigPreview { font-size: 32px; }
.sigbox #iniPreview { font-size: 30px; }
.sigbox #iniPreview.ph { color: #B8BCC9; }
.btn-ghost-sm { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ndoc-bar { position: sticky; top: 58px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; justify-content: space-between; padding: 10px 14px; margin: 6px 0 10px;
  background: rgba(11,16,51,.92); color: #fff; border-radius: 10px; font-size: 14px; backdrop-filter: blur(4px); }
.panel .ndoc-bar { background: #F4F6FA; color: var(--ink); justify-content: flex-start; border: 1px solid var(--line); }
.panel .ndoc-bar.selbar { position: static; background: #EEF6FC; border-color: #CFE5F6; }
.panel .ndoc-bar select { height: 30px; border: 1px solid #C9CFDB; border-radius: 7px; font: inherit; font-size: 13px; padding: 0 6px; }
.panel .ndoc-bar .check-dark { margin: 0; }
.ndoc-pages { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; max-height: 72vh; overflow: auto; background: rgba(0,0,0,.18); border-radius: 12px; margin-bottom: 14px; }
.ndoc-pages.view { max-height: 60vh; }
.panel .ndoc-pages { background: #E4E8F0; max-height: none; }
.ndoc-page { position: relative; flex: none; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.ndoc-page canvas { display: block; }
.ndoc-num { position: absolute; right: -2px; top: -18px; font-size: 11px; color: var(--ink3); }
.ndoc-pages.placing .ndoc-page canvas { cursor: crosshair; }
.ndf { position: absolute; box-sizing: border-box; display: flex; align-items: center; overflow: hidden; white-space: nowrap; color: #0B1033; line-height: 1;
  border: 1.5px dashed #2273B5; background: rgba(97,183,231,.16); border-radius: 3px; padding: 0 3px; font-family: "Barlow", system-ui, sans-serif; }
.ndf.cover { background: #fff; }
.ndf.auto { border-color: transparent; background: rgba(97,183,231,.10); }
.ndf.auto.cover { background: #fff; }
.ndf.ph { color: #8A90A6; font-style: italic; }
.ndf.hide { display: none; }
button.ndf { cursor: pointer; font: inherit; justify-content: center; border-color: #E8A33D; background: rgba(255,214,102,.55); }
button.ndf .tag { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6B4300; }
button.ndf:hover, button.ndf:focus-visible { outline: 2px solid #573AA0; outline-offset: 1px; }
button.ndf.done { border: 1px solid transparent; background: rgba(13,131,90,.07); justify-content: flex-start; }
button.ndf.done img { max-width: 100%; max-height: 100%; }
button.ndf.done .script { font-size: 1.35em; }
.ndf.shake { animation: ndfshake .45s; }
@keyframes ndfshake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
/* admin editor */
.ndf-edit { cursor: move; touch-action: none; user-select: none; }
.ndf-edit .tag { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #1B4F7A; pointer-events: none; }
.ndf-edit.ndf-signature, .ndf-edit.ndf-initials { border-color: #E8A33D; background: rgba(255,214,102,.45); }
.ndf-edit.ndf-signature .tag, .ndf-edit.ndf-initials .tag { color: #6B4300; }
.ndf-edit.co { border-color: #573AA0; background: rgba(169,150,220,.25); }
.ndf-edit.co .tag { color: #3D2873; }
.ndf-edit.cover { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.85) 0 4px, rgba(255,255,255,.55) 4px 8px); }
.ndf-edit.sel, .ndf-edit:focus-visible { outline: 2px solid #0B1033; outline-offset: 1px; z-index: 2; }
.ndf-x { position: absolute; right: 0; top: 0; width: 14px; height: 14px; line-height: 12px; padding: 0; border: 0; border-radius: 0 0 0 4px; background: rgba(11,16,51,.7); color: #fff; font-size: 12px; cursor: pointer; display: none; }
.ndf-rs { position: absolute; right: 0; bottom: 0; width: 9px; height: 9px; background: #0B1033; cursor: nwse-resize; display: none; }
.ndf-edit:hover .ndf-x, .ndf-edit.sel .ndf-x, .ndf-edit:hover .ndf-rs, .ndf-edit.sel .ndf-rs { display: block; }
details.panel > summary { cursor: pointer; list-style: revert; }
details.panel > summary h2.inline { display: inline; margin: 0; font-size: 18px; }
.ndoc-bar[hidden], .ndoc [hidden] { display: none !important; }
label.check-dark.pcheck { align-items: flex-start; } label.check-dark.pcheck input { margin-top: 3px; flex: none; }

/* Import data */
.msg.warn { background: #FFF4E5; color: #6B3F00; border: 1px solid #F1D3A6; }
table.grid td.num, table.grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid tr.grp td { font-family: var(--head); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); font-weight: 600; background: #F7F9FC; padding: 7px 10px; }
.impbar { height: 10px; border-radius: 999px; background: #EEF1F6; overflow: hidden; margin: 6px 0 10px; max-width: 640px; }
.impbar span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .25s ease; }
.impbar.indet span { width: 35% !important; animation: impslide 1.2s ease-in-out infinite; }
.impbar.done span { background: var(--ok); } .impbar.fail span { background: var(--bad); }
@keyframes impslide { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .impbar.indet span { animation-duration: 3s; } }
.impstep { font-size: 14px; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.implist { margin: 6px 0 0; padding-left: 18px; max-height: 260px; overflow: auto; font-size: 12.5px; }
.impcols { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 2px 0 12px; }
.impcols code { background: #F2F4F8; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 12px; }
.impcols code.req { border-color: #B9CFE8; background: #EEF5FC; color: var(--steel); font-weight: 600; }
details summary { cursor: pointer; }
.sel.sm { min-width: 150px; }
#impFiles .sel { min-width: 240px; }
#impFiles .sel.sm { min-width: 150px; }
.impcolbox details { margin-top: 4px; }
.impres { margin: 8px 0; font-size: 14px; }
.impchk { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; margin: 10px 0 4px; font-weight: 400 !important; }
.impchk input { width: 16px !important; height: 16px !important; margin: 0; flex: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
/* Admin > Web analytics (PostHog) */
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 16px; margin: 6px 0 14px; }
.formgrid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.formgrid label .small { font-weight: 400; }
.formgrid input:not([type=checkbox]), .formgrid select { height: 38px; border: 1px solid #C9CFDB; border-radius: 9px; padding: 0 10px; font: inherit; font-size: 14px; }
.formgrid label.chk, label.chk { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.panel.warn { border-left: 4px solid #B3261E; }
td.nowrap { white-space: nowrap; } td.nowrap form { display: inline-flex; margin: 0 4px 4px 0; }
/* previewing an access profile (Security/Preview.cs): on every page until Exit preview */
.lmd-preview { max-width: 1180px; margin: 14px auto 0; padding: 10px 14px; background: #FFF6DB; color: #3D2E00; border: 1px solid #E8C24A; border-radius: 10px; font-size: 14px; }
.lmd-preview a { color: #2273B5; font-weight: 600; }
table.grid td.sub { padding-left: 24px; }
table.grid tr.grp .sub-tot { text-transform: none; letter-spacing: 0; font-family: var(--body, inherit); color: var(--ink3); font-weight: 400; }
/* switch between the enterprises a person has access to (ADR 0007) */
.ent-switch { position: relative; margin-right: 12px; }
.ent-switch summary { cursor: pointer; list-style: none; padding: 3px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 13px; color: #fff; white-space: nowrap; }
.ent-switch summary::-webkit-details-marker { display: none; }
.ent-switch summary::after { content: " \25BE"; opacity: .8; }
.ent-switch .ent-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,2,41,.18); padding: 4px; }
.ent-switch .ent-list a, .ent-switch .ent-list span { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; color: var(--ink, #0B1033); font-size: 14px; text-decoration: none; }
.ent-switch .ent-list a:hover { background: #F2F4F8; }
.ent-switch .ent-list img { height: 16px; width: auto; max-width: 48px; object-fit: contain; }
.ent-switch .ent-list .on { font-weight: 600; }
.ent-switch .ent-list .on::after { content: "\2713"; margin-left: auto; color: #2273B5; }
.ent-cell { display: inline-flex; align-items: center; gap: 8px; }
.ent-cell img { height: 18px; width: auto; max-width: 56px; object-fit: contain; }
/* narrow screens with the switcher: the email moves into the switcher's tooltip, so the admin menu keeps its room */
@media (max-width: 1180px) { header.top .who .ent-switch + .em { display: none; } }

/* Admin > Site: versions, views to review and their figures */
#site-review form.inline, #site-versions form.inline { display: inline; margin: 0; }
#site-review > form.inline { display: block; margin: 0 0 10px; }
.site-views tr.muted-row td { color: var(--ink2); }
.site-views tr.figs td { padding-top: 0; }
.site-views .approve { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
table.grid.compact td, table.grid.compact th { padding: 5px 8px; }
table.grid tr.fig-small td { background: #FFF4E5; }

/* Admin > Enterprises */
.ent-note { margin-top: 4px; max-width: 440px; }
ol.steps { padding-left: 18px; } ol.steps li { margin-bottom: 6px; }
details.ent-more { margin: 4px 0 8px; } details.ent-more summary { cursor: pointer; font-size: 13px; color: var(--steel); }
tr.ent-hosts-row > td { padding-top: 0; }
details.ent-hosts summary { cursor: pointer; font-size: 13px; color: var(--steel); }
details.ent-hosts[open] { margin: 4px 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ent-addhost { margin-top: 10px; }
.msg form.force-primary { display: inline; margin-left: 8px; }
