/* Visual reference: Theraguide overview and laboratory, inspected 2026-11-02.
   HMA is nextvital's administration, with its own code, data and workflows. */
@font-face {
  font-family: 'Mulish HMA';
  src: url('/assets/Mulish-Variable.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  --font: 'Mulish HMA', Mulish, system-ui, sans-serif;
  --ink: #033e46;
  --petrol: #033e46;
  --muted: #526e73;
  --green: #58ce83;
  --blue: #20b8d7;
  --cyan: #20b8d7;
  --bg: #fff;
  --line: #ededed;
  --green-3: #b4e9c7;
  --green-4: #d5f3e0;
  --green-5: #eefaf3;
  --blue-4: #c7edf5;
  --blue-5: #e9fbfb;
  --accent-orange: #ffa170;
  --shadow: 0 4px 16px rgba(3,62,70,.08);
  --page-gutter: 80px;
  --page-width: 1490px;
}
* { letter-spacing: 0; }
body { min-width: 320px; font-size: 17px; line-height: 1.6; font-weight: 500; background: white; }
h1 { font-size: 32px; line-height: 1.25; font-weight: 800; letter-spacing: 0; }
h2 { font-size: 23px; line-height: 1.3; font-weight: 800; letter-spacing: 0; }
h3 { font-size: 18px; line-height: 1.5; font-weight: 800; }
p { line-height: 1.6; }
strong { font-weight: 750; }
.small, small { font-size: 14px; }
.eyebrow { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 750; }
.icon { width: 22px; height: 22px; stroke-width: 1.8; }
.icon.sm { width: 18px; height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
*:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.admin-app { min-height: 100vh; display: flex; flex-direction: column; }
.admin-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--page-width); margin: auto; padding: 20px var(--page-gutter); min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-brand { display: flex; align-items: center; gap: 22px; }
.admin-brand img { display: block; width: 160px; height: auto; }
.brand-divider { width: 1px; height: 38px; background: var(--line); }
.product-name { font-size: 18px; font-weight: 800; line-height: 1.4; }
.product-name small { display: block; font-size: 14px; font-weight: 500; }
.account-actions { display: flex; align-items: center; gap: 16px; }
.account-control { position: relative; }
.account-profile { display: flex; align-items: center; gap: 12px; padding: 4px 6px 4px 12px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; list-style: none; }
.account-profile::-webkit-details-marker { display: none; }
.account-control[open]>.account-profile, .account-profile:hover { background: var(--green-5); }
.account-popover { position: absolute; z-index: 60; top: calc(100% + 12px); right: 0; width: 300px; max-width: calc(100vw - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.account-caption { font-size: 14px; font-weight: 800; margin-bottom: 16px; }
.profile-nav { display: flex; flex-direction: column; gap: 8px; }
.profile-nav a, .profile-nav button { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px; text-align: left; font-size: 17px; font-weight: 750; border: 0; border-radius: 4px; background: transparent; }
.profile-nav a:hover, .profile-nav button:hover { background: var(--blue-5); }
.account-environment { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; margin-top: 20px; }
.account-environment i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.avatar img, .profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-layout { display: grid; grid-template-columns: minmax(0,2.3fr) minmax(280px,1fr); gap: 32px; align-items: start; }
.profile-layout .detail-grid { grid-template-columns: minmax(0,1fr); }
.profile-layout .detail-value { overflow-wrap: anywhere; }
.profile-photo-row { display: flex; align-items: center; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.profile-photo-preview { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--green-4); font-size: 28px; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.profile-photo-row .actions { margin-top: 12px; }
.profile-photo-hint { margin-top: 8px; color: var(--muted); font-size: 13px; }
.profile-contact-heading { font-size: 20px; }
.profile-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.profile-field { min-width: 0; min-height: 62px; padding: 8px 12px; border: 1px solid #bdccce; border-radius: 4px; }
.profile-field>label { display: block; font-size: 12px; font-weight: 750; line-height: 1.5; margin-bottom: 2px; }
#profile-form .profile-field-control>input { width: 100%; min-width: 0; min-height: 26px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; line-height: 1.6; box-shadow: none; outline: none; }
#profile-form .profile-field-control>input:focus { outline: none; border: 0; }
.profile-field:focus-within { border-color: var(--blue); outline: 2px solid #20b8d72b; outline-offset: 1px; }
.profile-field:has(:user-invalid) { border-color: #a23434; }
.profile-error { color: #a23434; font-size: 14px; }
.profile-error:empty { display: none; }
#profile-form .form-actions { justify-content: space-between; gap: 20px; }
#profile-form .form-actions p { font-size: 13px; color: var(--muted); }
@media(max-width:1100px) { .profile-layout { grid-template-columns: minmax(0,1fr); } }
@media(max-width:700px) {
 .profile-fields { grid-template-columns: minmax(0,1fr); }
 .profile-photo-row { align-items: flex-start; flex-wrap: wrap; }
 #profile-form .form-actions { flex-wrap: wrap; }
 .profile-field { min-width: 0; }
}
.account-name { font-size: 14px; font-weight: 750; text-align: right; }
.account-name small { display: block; font-size: 12px; font-weight: 500; }
.avatar { width: 42px; height: 42px; font-size: 14px; color: var(--petrol); }
.avatar.mint { background: var(--green-4); color: var(--petrol); }
.avatar.blue { background: var(--blue-4); color: var(--petrol); }
.avatar.sand { background: #fff0e4; color: var(--petrol); }
.admin-navigation { border-bottom: 1px solid var(--line); background: white; }
.admin-nav { max-width: var(--page-width); margin: auto; padding: 0 var(--page-gutter); display: flex; gap: 24px; overflow-x: auto; scrollbar-width: thin; }
.admin-nav a { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 15px 0 13px; border-bottom: 3px solid transparent; font-size: 14px; font-weight: 650; white-space: nowrap; }
.admin-nav a.active { border-color: var(--blue); font-weight: 800; }
.admin-nav a:hover { color: #00616e; }
.admin-nav .icon { width: 18px; height: 18px; }
.administration-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; font-weight: 750; }
.administration-link:hover, .administration-link.active { background: var(--blue-5); border-color: var(--blue); }
.administration-link .icon { width: 18px; height: 18px; }
.administration-nav { display: flex; gap: 24px; overflow-x: auto; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.administration-nav a { display: flex; align-items: center; gap: 8px; padding: 0 0 12px; border-bottom: 3px solid transparent; white-space: nowrap; font-size: 14px; font-weight: 650; }
.administration-nav a.active { border-color: var(--blue); font-weight: 800; }
.administration-nav .icon { width: 18px; height: 18px; }
.administration-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 24px; }
.administration-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; gap: 12px; border: 1px solid var(--line); }
.administration-card:hover { border-color: var(--blue); }
.administration-card h2 { font-size: 20px; }
.administration-card p { color: var(--muted); font-size: 16px; }
.administration-card>span { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 750; }
@media(max-width:700px) {
 .header-inner { flex-wrap: wrap; gap: 16px; }
 .account-actions { width: 100%; justify-content: flex-end; gap: 12px; }
 .administration-link { margin-right: auto; padding: 8px 10px; }
}
.count { margin-left: 3px; min-width: 21px; font-size: 12px; background: var(--blue-5); color: var(--petrol); border-radius: 4px; }

/* Customer-facing editorial report */
.hma-magazine { width: 100%; max-width: var(--page-width); margin: 4px auto 50px; color: var(--petrol); }
.magazine-cover { min-height: 300px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(190px,.75fr); align-items: center; gap: 22px; padding: clamp(26px,4vw,54px); border-radius: 14px; overflow: hidden; position: relative; background: linear-gradient(115deg,#e9f8f4 0%,#f1f8ed 63%,#ddf2f3 100%); }
.magazine-cover:after { content: ''; position: absolute; inset: 15px; border: 1px solid #ffffffb5; border-radius: 9px; pointer-events: none; }
.magazine-cover-copy { position: relative; z-index: 2; }
.magazine-kicker { display: inline-flex; align-items: center; gap: 10px; color: #557d74; font-size: 13px; font-weight: 800; }
.magazine-kicker i { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: var(--cyan); }
.magazine-cover h2 { max-width: 650px; margin: 18px 0 12px; font-size: clamp(38px,5.2vw,62px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.06; }
.magazine-intro { max-width: 510px; font-size: 18px; color: #526e73; line-height: 1.7; }
.magazine-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; color: #55767b; font-size: 13px; font-weight: 750; }
.magazine-byline i { width: 4px; height: 4px; border-radius: 50%; background: #73c9ba; }
.magazine-cover-art { min-height: 210px; position: relative; display: grid; place-items: center; }
.magazine-orbit { position: absolute; width: 235px; height: 235px; border: 1px solid #84b8b1; border-radius: 50%; }
.magazine-orbit.orbit-one:after { content: ''; position: absolute; inset: 22px; border: 1px dashed #a8d2c8; border-radius: 50%; }
.magazine-orbit.orbit-two { width: 170px; height: 170px; border-color: #b5d9c2; transform: rotate(44deg) scaleX(.68); }
.magazine-leaf { width: 87px; height: 132px; border-radius: 75% 4% 75% 4%; transform: rotate(35deg); background: linear-gradient(145deg,#a7e1bf,#47c8c5); box-shadow: 0 15px 40px #248b7860; position: relative; }
.magazine-leaf:after { content: ''; position: absolute; left: 49%; top: 7%; width: 1px; height: 94%; background: #f5fff9b5; transform: rotate(-21deg); }
.magazine-cover-index { position: absolute; right: 2%; bottom: 8%; padding: 11px 15px; border: 1px solid #ffffffc9; border-radius: 8px; background: #ffffffb8; color: #4b7776; font-size: 11px; font-weight: 800; letter-spacing: 1px; line-height: 1.7; }
.magazine-tools { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.magazine-tools p { color: var(--muted); font-size: 14px; }
.magazine-tools .btn { flex-shrink: 0; }
.magazine-index { position: sticky; z-index: 8; top: 0; display: flex; gap: 6px; overflow-x: auto; margin: 0 -4px 22px; padding: 12px 4px; background: #ffffffed; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.magazine-index::-webkit-scrollbar { display: none; }
.magazine-index a { flex: 0 0 auto; padding: 9px 14px; border: 1px solid transparent; border-radius: 30px; color: #58767a; font-size: 13px; font-weight: 750; transition: background .2s,color .2s,border-color .2s; }
.magazine-index a:hover { border-color: #bfe5e8; background: var(--blue-5); color: var(--petrol); }
.magazine-section { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: clamp(24px,5vw,68px); padding: 54px clamp(8px,3vw,34px); scroll-margin-top: 78px; border-bottom: 1px solid var(--line); }
.magazine-section-label { display: flex; align-items: flex-start; gap: 13px; padding-top: 9px; color: #759696; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; }
.magazine-section-label span:first-child { color: var(--cyan); font-size: 15px; letter-spacing: 0; }
.magazine-section-content { min-width: 0; }
.magazine-section-content>h3 { margin: 0 0 18px; font-size: clamp(25px,3.4vw,38px); line-height: 1.2; letter-spacing: -.6px; }
.magazine-section-content>p,.magazine-section-content>div>p { margin: 0 0 14px; color: #526e73; font-size: 16px; line-height: 1.85; }
.magazine-overview .magazine-section-content>p { max-width: 780px; font-size: 18px; }
.magazine-deck { max-width: 760px; margin-bottom: 22px!important; color: var(--muted)!important; font-size: 16px!important; }
.magazine-profile { margin: 20px 0 23px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.magazine-profile img { display: block; width: 100%; height: auto; max-height: 310px; object-fit: contain; }
.magazine-profile figcaption { margin-top: 10px; color: var(--muted); font-size: 11px; }
.magazine-stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 30px 0 25px; }
.magazine-stat-grid>div { min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 18px; border-radius: 9px; background: var(--blue-5); }
.magazine-stat-grid>div:nth-child(2) { background: #fff5e9; }
.magazine-stat-grid>div:nth-child(3) { background: var(--green-5); }
.magazine-stat-grid strong { font-size: 32px; line-height: 1; font-weight: 800; }
.magazine-stat-grid span { color: #5d777a; font-size: 12px; line-height: 1.45; }
.magazine-callout { margin: 26px 0; padding: 22px 24px; border-left: 3px solid var(--cyan); border-radius: 0 9px 9px 0; background: #f1faf9; }
.magazine-callout-label { display: block; margin-bottom: 9px; color: #457a79; font-size: 12px; font-weight: 800; letter-spacing: .4px; }
.magazine-callout p { color: #526e73; font-size: 15px; }
.magazine-counts { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.magazine-counts span { display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 12px; }
.magazine-counts b { color: var(--petrol); font-size: 17px; }
.magazine-rule-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.magazine-rule-list span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 5px; background: #ffffffc9; color: #607c7c; font-size: 11px; }
.magazine-rule-list b { color: var(--petrol); }
.magazine-ratios { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.magazine-ratios h4 { margin: 0 0 13px; font-size: 15px; }
.magazine-ratios>div { display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; width: min(100%,860px); margin: 0 0 7px; padding: 12px 14px; border-radius: 7px; background: #f3f7f5; }
.magazine-ratios span { color: #77908c; font-size: 11px; }
.magazine-ratios b { font-size: 17px; }
.magazine-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin-top: 26px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }
.magazine-facts>div { min-width: 0; display: grid; grid-template-columns: minmax(100px,.7fr) minmax(0,1fr); gap: 10px; padding: 12px 14px; background: white; }
.magazine-facts span { color: var(--muted); font-size: 11px; }
.magazine-facts strong { overflow-wrap: anywhere; font-size: 12px; font-weight: 750; }
.magazine-values { margin-top: 13px; border: 1px solid var(--line); border-radius: 9px; background: white; overflow: hidden; }
.magazine-values summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; list-style: none; padding: 19px 21px; }
.magazine-values summary::-webkit-details-marker { display: none; }
.magazine-values summary strong,.magazine-values summary small { display: block; }
.magazine-values summary strong { font-size: 16px; }
.magazine-values summary small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.magazine-values summary .icon { color: #69878a; transition: transform .2s; }
.magazine-values[open] summary .icon { transform: rotate(90deg); }
.magazine-value-list { display: grid; grid-template-columns: minmax(0,min(100%,860px)); justify-content: center; gap: 1px; background: white; border-top: 1px solid var(--line); }
.magazine-value { min-width: 0; padding: 15px 17px; background: white; }
.magazine-value-head,.magazine-reference { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.magazine-value-head>div { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.magazine-value-head>div strong { font-size: 14px; }
.magazine-value-head>div span,.magazine-value-head>b small { color: var(--muted); font-size: 11px; font-weight: 600; }
.magazine-value-head>b { text-align: right; font-size: 15px; white-space: nowrap; }
.magazine-reference { margin-top: 7px; color: var(--muted); font-size: 11px; }
.magazine-reference strong { text-align: right; font-weight: 700; }
.magazine-bar { height: 8px; position: relative; margin-top: 13px; border-radius: 10px; background: linear-gradient(90deg,#f4c6c0 0 14%,#fff0ba 14% 28%,#d5eccd 28% 41%,#fff 41% 59%,#d5eccd 59% 72%,#fff0ba 72% 86%,#f4c6c0 86% 100%); box-shadow: inset 0 0 0 1px #dfeae5; }
.magazine-bar.toxic { background: linear-gradient(90deg,#d5eccd 0 33.33%,#fff0ba 33.33% 66.66%,#f4c6c0 66.66% 100%); }
.magazine-bar span { position: absolute; left: var(--marker); top: -3px; width: 3px; height: 14px; border-radius: 3px; background: var(--petrol); box-shadow: 0 0 0 2px white; }
.magazine-review-note { display: block; margin-top: 10px; color: #8c7952; font-size: 11px; line-height: 1.45; }
.magazine-footnote { margin: 0; padding: 13px 19px 17px; border-top: 1px solid #edf2ef; color: var(--muted); font-size: 12px; }
.magazine-story { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 16px; padding: 23px 0; border-bottom: 1px solid #e8efed; }
.magazine-story-number { color: #68b9b8; font-size: 13px; font-weight: 800; }
.magazine-story h4 { margin: 0 0 8px; font-size: 18px; }
.magazine-story p { margin: 0 0 10px; color: #526e73; font-size: 15px; line-height: 1.8; white-space: normal; }
.magazine-products { margin-top: 28px; padding: 23px; border-radius: 9px; background: #f5f8f6; }
.magazine-products>p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.magazine-product { display: grid; grid-template-columns: minmax(150px,.65fr) minmax(0,1fr); gap: 18px; padding: 12px 0; border-top: 1px solid #e1e9e5; font-size: 13px; }
.magazine-product span { color: #526e73; white-space: pre-line; }
.magazine-consultation { display: flex; align-items: center; gap: 15px; margin-top: 25px; padding: 19px; border-radius: 9px; background: var(--blue-5); }
.magazine-consultation-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: white; color: #28aabd; }
.magazine-consultation strong { font-size: 14px; }
.magazine-consultation p { margin-top: 3px; color: #58767a; font-size: 13px; }
.magazine-disclaimer { margin-top: 30px; padding: 27px 30px; border-radius: 9px; background: #f5f8f6; }
.magazine-disclaimer>span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.magazine-disclaimer p { color: #667f80; font-size: 12px; line-height: 1.7; }
.magazine-disclaimer small { display: block; margin-top: 17px; color: #8a9c99; font-size: 11px; }
.magazine-reveal { opacity: 1; transform: none; transition: opacity .4s ease,transform .4s cubic-bezier(.2,.65,.25,1); }
.magazine-reveal.is-visible { opacity: 1; transform: none; }
.generated-report { margin: 26px 0 34px; padding: clamp(18px,3vw,34px); border: 1px solid #dbe9e4; border-radius: 12px; background: #fbfdfb; }
.generated-report-heading { max-width: 850px; margin-bottom: 20px; }
.generated-report-heading p { margin: 8px 0 0; color: #526e73; line-height: 1.7; }
.generated-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 10px; margin: 18px 0 28px; }
.generated-summary-card { padding: 17px; border-radius: 8px; background: #edf7f3; }
.generated-summary-card.alert { background: #fff3ed; }
.generated-summary-card.hint { background: #f1f7ee; }
.generated-summary-card.review { background: #fff7e8; }
.generated-summary-card strong { font-size: 15px; }
.generated-summary-card p { margin: 8px 0 0; color: #526e73; font-size: 14px; line-height: 1.65; }
.generated-page { max-width: 1100px; padding: 24px 0; border-top: 1px solid #e3ece7; }
.generated-page>h4 { margin: 9px 0 12px; font-size: 22px; }
.magazine-story .generated-result { display: inline-block; margin: 0 0 9px; padding: 6px 10px; border-radius: 5px; background: #edf7f3; color: #275b53; font-size: 12px; font-weight: 800; }
.generated-detail { font-weight: 700; }
.generated-values { display: grid; grid-template-columns: minmax(0,min(100%,760px)); gap: 7px; margin: 14px 0; }
.generated-value { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 4px 14px; padding: 11px 13px; border-radius: 6px; background: white; }
.generated-value span { color: #617a7d; font-size: 13px; }
.generated-value strong { text-align: right; font-size: 14px; }
.generated-value small { grid-column: 1/-1; color: #718688; font-size: 11px; }
.generated-ratios { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.generated-ratios span { padding: 7px 10px; border-radius: 5px; background: #edf5f4; font-size: 12px; }
.generated-products { max-width: 760px; margin: 12px 0; padding: 12px 15px; border-radius: 7px; background: #f2f6f3; }
.generated-product-note { max-width: 760px; font-size: 13px!important; }
.generated-disclaimer { margin: 22px 0 0!important; padding-top: 16px; border-top: 1px solid #e3ece7; color: #738485!important; font-size: 12px!important; }
.generated-preview { margin: 0 0 20px; border: 1px solid #d5e5df; border-radius: 9px; background: #fbfdfb; }
.generated-preview>summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 20px; cursor: pointer; list-style: none; }
.generated-preview>summary::-webkit-details-marker { display: none; }
.generated-preview>summary strong,.generated-preview>summary small { display:block; }
.generated-preview>summary small { margin-top:4px; color:var(--muted); font-size:12px; }
.generated-preview[open]>summary .icon { transform:rotate(90deg); }
.generated-preview .generated-report { margin: 0; border: 0; border-top: 1px solid #d5e5df; border-radius: 0 0 9px 9px; }
.personal-additions { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.personal-additions>h4 { font-size: 18px; }
html { scroll-behavior: smooth; }
@media(max-width:800px) {
 .magazine-cover { min-height: 340px; grid-template-columns: minmax(0,1fr) 180px; padding: 36px; }
 .magazine-cover-art { min-height: 200px; }
 .magazine-orbit { width: 180px; height: 180px; }
 .magazine-orbit.orbit-two { width: 135px; height: 135px; }
 .magazine-leaf { width: 67px; height: 106px; }
 .magazine-section { grid-template-columns: 1fr; gap: 14px; padding: 38px 4px; }
 .magazine-section-label { padding: 0; }
}
@media(max-width:600px) {
 .hma-magazine { margin-top: 0; }
 .magazine-cover { min-height: 400px; grid-template-columns: minmax(0,1fr); padding: 28px 24px; }
 .magazine-cover:after { inset: 9px; }
 .magazine-cover h2 { margin: 17px 0 10px; font-size: 47px; letter-spacing: -1.5px; }
 .magazine-intro { font-size: 15px; }
 .magazine-byline { gap: 8px; margin-top: 18px; font-size: 11px; }
 .magazine-cover-art { position: absolute; right: -29px; bottom: -55px; width: 180px; min-height: 180px; opacity: .6; }
 .magazine-cover-index { right: 40px; bottom: 43px; }
 .magazine-tools { align-items: stretch; flex-direction: column; padding: 17px 0; }
 .magazine-tools p { font-size: 12px; }
 .magazine-tools .btn { width: 100%; white-space: normal; text-align: center; }
 .magazine-index { margin-bottom: 8px; }
 .magazine-index a { padding: 8px 11px; font-size: 12px; }
 .magazine-section { padding: 31px 0; }
 .magazine-section-content>h3 { font-size: 27px; }
 .magazine-overview .magazine-section-content>p { font-size: 16px; }
 .magazine-section-content>p,.magazine-section-content>div>p { font-size: 14px; }
 .magazine-stat-grid { grid-template-columns: 1fr; gap: 8px; margin: 20px 0; }
 .magazine-stat-grid>div { min-height: 83px; }
 .magazine-stat-grid strong { font-size: 27px; }
 .magazine-value-list { grid-template-columns: minmax(0,1fr); }
 .magazine-values summary { padding: 16px; }
 .magazine-story { grid-template-columns: 30px minmax(0,1fr); gap: 10px; padding: 18px 0; }
 .magazine-story h4 { font-size: 16px; }
 .magazine-story p { font-size: 14px; }
 .magazine-product { grid-template-columns: 1fr; gap: 5px; }
 .magazine-products,.magazine-disclaimer { padding: 19px; }
 .magazine-counts { gap: 12px; }
 .magazine-facts { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior: auto; }
 .magazine-reveal { opacity: 1; transform: none; transition: none; }
 .magazine-values summary .icon,.magazine-index a { transition: none; }
}
@media print {
 .admin-header,.admin-navigation,.admin-footer,.topbar,.demo-banner,.page-heading,.magazine-index,.magazine-tools .btn,#toast { display:none!important; }
 .page,.main { width:100%; max-width:none; padding:0; margin:0; }
 .hma-magazine { max-width:none; margin:0; }
 .magazine-cover { min-height:250px; padding:35px; break-inside:avoid; }
 .magazine-cover h2 { font-size:48px; }
 .magazine-section { grid-template-columns:120px minmax(0,1fr); gap:22px; padding:27px 10px; }
 .magazine-values:not([open]) .magazine-value-list { display:grid!important; }
 .magazine-values summary .icon { display:none; }
 .magazine-story,.magazine-value,.magazine-stat-grid>div { break-inside:avoid; }
 .magazine-reveal { opacity:1; transform:none; }
 * { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}
.main { width: 100%; max-width: var(--page-width); padding: 36px var(--page-gutter) 56px; margin: 0 auto; flex: 1; }
.main:focus { outline: 0; }
.admin-footer { max-width: var(--page-width); width: 100%; margin: 0 auto; padding: 24px var(--page-gutter); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
.admin-footer span { display: flex; align-items: center; gap: 8px; }
.page-heading { margin-bottom: 28px; align-items: center; }
.page-heading p { font-size: 16px; margin-top: 8px; color: var(--muted); }
.btn { min-height: 46px; font-size: 15px; padding: 10px 18px; border-radius: 4px; font-weight: 800; line-height: 1.4; gap: 9px; }
.btn.primary { min-height: 56px; font-size: 20px; padding: 14px 24px; background: var(--petrol); border-color: var(--petrol); box-shadow: var(--shadow); font-weight: 900; }
.btn.primary:hover { background: #00616e; border-color: #00616e; }
.btn.green { background: var(--green); border-color: var(--green); color: var(--petrol); }
.btn.compact { min-height: 42px; font-size: 14px; padding: 8px 12px; }
.btn.text { font-size: 14px; padding: 8px 0; min-height: 44px; }
.btn:disabled { background: #b7c0c1; border-color: #b7c0c1; color: white; opacity: 1; }
.icon-btn { width: 44px; height: 44px; border-radius: 4px; color: var(--petrol); }
.icon-btn:hover { background: var(--blue-5); }
.panel { border: 0; border-radius: 12px; box-shadow: var(--shadow); background: white; }
.panel-head, .table-head { padding: 24px; gap: 20px; }
.panel-head h2, .table-head h2 { font-size: 20px; }
.panel-body { padding: 24px; }
.panel-head { border-bottom-color: var(--line); }
.stack { gap: 24px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; margin-bottom: 32px; }
.dashboard-metric { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; border: 1px solid transparent; border-radius: 12px; background: var(--blue-5); }
.dashboard-metric:nth-child(2) { background: #fff0e6; }
.dashboard-metric:nth-child(3) { background: var(--green-5); }
.dashboard-metric.customers { background: #f1f3f3; }
.dashboard-metric:hover { border-color: var(--petrol); }
.dashboard-metric-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 750; }
.dashboard-metric-label .icon { width: 20px; height: 20px; }
.dashboard-metric strong { font-size: 32px; line-height: 1.2; font-weight: 800; }
.dashboard-metric-link { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 13px; font-weight: 750; }
.dashboard-content { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 32px; align-items: start; }
.dashboard-content>.stack { min-width: 0; }
.dashboard-panel .panel-head { align-items: center; flex-wrap: wrap; gap: 12px; }
.dashboard-panel .panel-head p { margin-top: 5px; font-size: 14px; color: var(--muted); }
.dashboard-analysis, .dashboard-next-step, .dashboard-customer { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dashboard-analysis:last-child, .dashboard-next-step:last-child, .dashboard-customer:last-child { border-bottom: 0; }
.dashboard-analysis:hover, .dashboard-next-step:hover, .dashboard-customer:hover { background: var(--blue-5); }
.dashboard-analysis-person, .dashboard-next-step>div, .dashboard-customer>div { flex: 1; min-width: 0; }
.dashboard-content h3 { font-size: 16px; line-height: 1.5; }
.dashboard-analysis p, .dashboard-next-step p, .dashboard-customer p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.dashboard-step-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--blue-5); flex-shrink: 0; }
.dashboard-step-icon .icon { width: 20px; height: 20px; }
.dashboard-placeholder { padding: 24px; color: var(--muted); font-size: 15px; }
.dashboard-release { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; background: var(--green-5); box-shadow: none; }
.dashboard-release h2 { font-size: 20px; margin-top: 8px; }
.dashboard-release p { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media(max-width:1100px) {
 .dashboard-metrics { gap: 16px; }
 .dashboard-metric { padding: 20px; }
 .dashboard-content { grid-template-columns: minmax(0,1fr); gap: 24px; }
}
@media(max-width:700px) {
 .dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
 .dashboard-metric { padding: 16px; }
 .dashboard-metric-label { font-size: 13px; gap: 6px; }
 .dashboard-metric-label .icon { display: none; }
 .dashboard-metric-link { font-size: 12px; gap: 4px; }
 .dashboard-metric strong { font-size: 28px; }
 .dashboard-analysis, .dashboard-next-step, .dashboard-customer { padding: 20px; gap: 10px; }
 .dashboard-analysis { flex-wrap: wrap; }
 .dashboard-analysis-person { flex-basis: calc(100% - 60px); }
 .dashboard-analysis>.badge { margin-left: 52px; }
 .dashboard-analysis>.icon { margin-left: auto; }
}
.admin-dashboard { display: grid; grid-template-columns: minmax(0,3fr) minmax(250px,1fr); gap: 32px; align-items: start; }
.dashboard-main { min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 0 0 24px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 8px; padding: 20px; border: 2px solid transparent; border-radius: 12px; box-shadow: none; background: #fff0e6; }
.stat:nth-child(2) { background: var(--blue-5); }
.stat:nth-child(3) { background: var(--green-5); }
.stat:hover { border-color: var(--petrol); transform: none; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: var(--accent-orange); color: var(--petrol); }
.stat-icon .icon { color: var(--petrol); }
.stat:nth-child(2) .stat-icon { background: var(--blue-4); }
.stat:nth-child(3) .stat-icon { background: var(--green-3); }
.stat strong { font-size: 26px; line-height: 1.3; margin: 0; }
.stat-title { font-size: 14px; font-weight: 750; }
.overview-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 14px; }
.overview-list { box-shadow: none; border-radius: 0; }
.overview-list .panel-head { padding: 0 0 12px; border: 0; }
.overview-list .panel-head h2 { font-size: 18px; }
.dashboard-modules { border-left: 1px solid var(--line); padding-left: 24px; min-width: 0; }
.dashboard-module { padding-bottom: 24px; }
.dashboard-module+.dashboard-module { border-top: 1px solid var(--line); padding-top: 24px; }
.dashboard-module h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 20px; }
.dashboard-module h2 span { margin-left: auto; font-size: 14px; }
.dashboard-module p { font-size: 14px; }
.dashboard-task { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dashboard-task:first-of-type { padding-top: 0; }
.dashboard-task:last-child { border: 0; }
.dashboard-task strong, .dashboard-task span { display: block; }
.dashboard-task span { margin-top: 5px; }
.dashboard-task:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.module-number { font-size: 32px; font-weight: 800; line-height: 1.3; }
.progress-track { margin: 16px 0 10px; height: 7px; border-radius: 4px; background: var(--green-5); }
.table-wrap { overflow-x: auto; }
th { font-size: 13px; font-weight: 650; padding: 14px 20px; text-transform: none; letter-spacing: 0; background: white; color: var(--petrol); }
td { font-size: 14px; padding: 20px; line-height: 1.6; border-color: var(--line); }
tbody tr:nth-child(even) { background: #f7f7f7; }
tbody tr:hover { background: #eef8f8; }
.person { gap: 12px; }
.person .avatar { width: 42px; height: 42px; font-size: 13px; }
.person-name { font-size: 16px; font-weight: 750; }
.person small { font-size: 13px; }
.state-note { font-size: 13px; color: var(--muted); }
.case-table { min-width: 960px; }
.case-table.compact-cases { min-width: 640px; }
.compact-cases td, .compact-cases th { padding-left: 12px; padding-right: 12px; }
.compact-cases td:last-child, .compact-cases th:last-child { padding-left: 0; padding-right: 0; width: 44px; }
.badge { font-size: 13px; border-radius: 4px; padding: 5px 9px; font-weight: 650; }
.badge.intake, .badge.waiting_lab { color: var(--petrol); background: #fff0e4; }
.badge.review { color: var(--petrol); background: var(--blue-4); }
.badge.evaluation { color: var(--petrol); background: var(--blue-5); }
.badge.approval { color: var(--petrol); background: #ffe1c7; }
.badge.released, .badge.completed { color: var(--petrol); background: var(--green-4); }
.table-foot { padding: 16px 12px; color: var(--muted); font-size: 13px; }
.search input { min-height: 46px!important; width: 280px!important; font-size: 16px!important; padding-left: 40px!important; }
.search .icon { width: 20px; left: 12px; color: var(--petrol); }
.table-head select { font-size: 15px; min-height: 46px; }
.filter-tabs { gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.filter-tabs button { font-size: 15px; color: var(--petrol); border: 0; border-bottom: 3px solid transparent; padding: 12px 0; border-radius: 0; }
.filter-tabs button.active { background: transparent; border-color: var(--petrol); box-shadow: none; font-weight: 800; }
.back-link { font-size: 15px; font-weight: 750; color: var(--petrol); margin-bottom: 24px; gap: 8px; }
.back-link .icon { width: 20px; height: 20px; }
.case-header { margin-bottom: 24px; align-items: center; }
.case-person { gap: 16px; }
.case-person>.avatar { display: none; }
.case-person h1 { font-size: 28px; }
.case-person .eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.case-person p { font-size: 14px; color: var(--petrol); margin-top: 8px; }
.tabs { gap: 28px; margin-bottom: 32px; }
.tabs a { font-size: 16px; padding: 14px 0; color: var(--petrol); border-bottom-width: 3px; }
.tabs a.active { color: var(--petrol); border-color: var(--blue); }
.tabs a .icon { width: 20px; height: 20px; }
.grid2 { grid-template-columns: minmax(0,2fr) minmax(280px,1fr); gap: 32px; }
.grid-even { gap: 24px; }
.detail-label { font-size: 14px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0; }
.detail-value { font-size: 16px; }
.checklist-item { font-size: 15px; gap: 12px; }
.checklist-item small { font-size: 14px; color: var(--muted); }
.checkmark { width: 32px; height: 32px; }
.timeline-item strong { font-size: 15px; }
.timeline-item p { font-size: 13px; color: var(--muted); }
.notice { padding: 20px 24px; font-size: 15px; background: var(--green-4); border: 0; border-radius: 12px; color: var(--petrol); gap: 12px; margin-bottom: 24px; }
.notice p { font-size: 15px; }
.notice .icon { width: 22px; height: 22px; }
.notice.warning { background: #fff4e7; color: #66421e; }
.notice.error { background: #fff0ed; color: #8d342e; }
.flow { padding: 8px 0 28px; margin-bottom: 32px; }
.flow-step { font-size: 13px; color: var(--muted); }
.flow-step span { width: 32px; height: 32px; font-size: 14px; }
.flow-step:before { top: 16px; }
.flow-step.active span { background: var(--petrol); border-color: var(--petrol); }
label.field { font-size: 15px; color: var(--petrol); gap: 8px; }
input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: 48px; padding: 12px 14px; border-color: #cbd5d5; border-radius: 4px; font-size: 16px; background: white; }
input:focus, select:focus, textarea:focus { border-color: var(--petrol); outline: 2px solid var(--blue-4); }
input::placeholder, textarea::placeholder { color: #6c8286; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--petrol); }
textarea { line-height: 1.7; min-height: 120px; }
.field-help { font-size: 14px; color: var(--muted); }
.form-grid { gap: 24px; }
.form-actions { padding: 20px 24px; background: white; }
.check-field { font-size: 15px; color: var(--petrol); gap: 10px; }
.question>label, .question>legend { font-size: 15px; color: var(--petrol); }
.choice { font-size: 15px; padding: 10px 14px; border-radius: 4px; }
.anam-layout { grid-template-columns: 220px minmax(0,1fr); gap: 32px; }
.section-nav { top: 24px; gap: 4px; }
.section-nav a, .section-nav button { font-size: 15px; padding: 12px; color: var(--petrol); border-radius: 4px; }
.section-nav span, .section-nav small { font-size: 13px; }
.section-nav .active, .section-nav a:hover, .section-nav button:hover { background: var(--blue-5); border-color: transparent; }
.form-section h2 { font-size: 20px; }
.form-section .panel-body { padding: 28px; }
.section-number { font-size: 14px; color: var(--petrol); }
.sticky-actions { padding: 16px 20px; border-radius: 12px; }
.sticky-actions p { font-size: 14px; color: var(--muted); }
.med-row input { font-size: 15px!important; }
.upload-zone { background: var(--blue-5); padding: 40px 24px; border-color: #9cb7bc; border-radius: 12px; }
.upload-zone h3 { font-size: 20px; }
.upload-zone p { font-size: 15px; color: var(--petrol); }
.review-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
.original-panel { position: static; }
.original-panel summary { display: flex; align-items: center; gap: 12px; padding: 20px 24px; cursor: pointer; font-size: 16px; list-style: none; }
.original-panel summary::-webkit-details-marker { display: none; }
.original-panel summary span { margin-left: auto; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.original-panel[open] summary>.icon:last-child { transform: rotate(90deg); }
.original-actions { padding: 0 24px 20px; }
.original-panel iframe { height: 650px; background: #f1f3f3; border-radius: 0 0 12px 12px; }
.review-filter { padding: 16px 24px; gap: 24px; }
.review-filter select { font-size: 15px; padding: 10px 14px; min-height: 46px; }
.review-filter label { font-size: 14px; color: var(--petrol); gap: 10px; }
.review-table { min-width: 720px; }
.review-table th { font-size: 13px; padding: 14px 20px; font-weight: 650; }
.review-table td { font-size: 14px; padding: 18px 20px; }
.review-table td.number { font-size: 16px; }
.review-table .element { min-width: 160px; }
.review-table small { font-size: 12px; color: var(--muted); margin-top: 3px; }
.review-table .check-col { width: 55px; }
.review-table .mineral-bar { width: 210px; max-width: 100%; height: 8px; border-radius: 4px; border: 0; }
.mineral-bar i { background: var(--petrol); height: 16px; top: -4px; width: 4px; box-shadow: 0 0 0 2px white; }
.minor-warning { font-size: 13px; color: #7b552c; }
.editor-layout { grid-template-columns: 220px minmax(0,1fr) 280px; gap: 24px; }
.editor-context h3 { font-size: 16px; }
.editor-context .tiny-value { font-size: 14px; }
.editor-form textarea, .editor-form .summary textarea { font-size: 17px; line-height: 1.8; min-height: 300px; }
.ratio-box small { font-size: 13px; color: var(--petrol); }
.ratio-box strong { font-size: 23px; }
.version-chip { font-size: 14px; padding: 10px 14px; border-radius: 4px; }
.product-option { padding: 18px; border-radius: 12px; }
.product-option label { font-size: 15px; }
.product-option p { font-size: 14px; color: var(--muted); }
.product-option textarea { font-size: 15px; }
.catalog-grid { gap: 24px; }
.catalog-card { padding: 24px; }
.catalog-card h3 { font-size: 18px; }
.catalog-card p { font-size: 15px; color: var(--muted); }
.pill { font-size: 14px; border-radius: 4px; padding: 8px 12px; }
.release-checks .checklist-item { font-size: 15px; }
.report-body { font-size: 16px; color: var(--petrol); }
.document-card { padding: 24px; gap: 20px; }
.document-card h3 { font-size: 18px; }
.document-card p { font-size: 15px; color: var(--muted); }
.portal-welcome { background: var(--green-4); padding: 32px; }
.portal-welcome p { font-size: 17px; color: var(--petrol); }
dialog { width: min(700px,calc(100vw - 32px)); border: 0; border-radius: 12px; box-shadow: 0 16px 64px #033e4630; }
.dialog-head h2 { font-size: 23px; }
.dialog-body>p { font-size: 16px; color: var(--petrol); }
.dialog-error, .login-error { font-size: 14px; }
pre.source-text { font-size: 14px; }
#toast { background: var(--petrol); font-size: 15px; border-radius: 4px; }
.empty h3 { font-size: 20px; }
.empty p { font-size: 15px; }
.login { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 56px 24px; background: white; }
.login-brand { display: none; }
.login-form { padding: 0; }
.login-form>div { width: min(440px,calc(100vw - 48px)); }
.login-form h2 { font-size: 32px; margin-bottom: 16px; }
.login-form h2:before { content: ''; display: block; background: url('/assets/nextvital-logo.png') left center/150px auto no-repeat; height: 45px; margin-bottom: 32px; }
.login-form p { font-size: 16px; color: var(--petrol); }
.login-form .field { margin-bottom: 20px; }
/* Theraguide form reference: label and control share a single outlined field.
   Apply to the login first; other forms keep their current presentation. */
.login-field { min-width: 0; min-height: 62px; margin-bottom: 16px; padding: 8px 12px; border: 1px solid #bdccce; border-radius: 4px; background: transparent; transition: border-color 200ms; }
.login-field-label { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 750; line-height: 1.5; color: var(--petrol); }
.login-field-control { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.login-form .login-field-control>input { flex: 1; width: 100%; min-width: 0; min-height: 26px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--petrol); font-size: 16px; line-height: 1.6; outline: none; box-shadow: none; }
.login-form .login-field-control>input:focus { border: 0; outline: none; }
.login-form .login-field-control>input::placeholder { color: var(--petrol); opacity: 1; }
.login-field-control:has(>.login-password-toggle) { padding-right: 44px; }
.login-password-toggle { position: absolute; right: -4px; bottom: -4px; width: 44px; height: 44px; }
.login-field:focus-within { border-color: var(--blue); outline: 2px solid #20b8d72b; outline-offset: 1px; }
.login-field:has(:user-invalid,[aria-invalid="true"]) { border-color: #a23434; }
.login-form #login-form>.btn { margin-top: 0; }
.login-error:empty { display: none; }
.login-form .login-register-prompt { margin: 18px 0 0; text-align: center; font-size: 14px; line-height: 1.6; }
.login-text-link { font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.login-text-link:hover { color: #00616e; }
.login-name-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.login-form .login-registration-note { margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.login-form .demo-login { display: grid; gap: 12px; margin-top: 20px; padding-top: 16px; }
.login-form .demo-login .demo-login-title { margin: 0; font-size: 14px; font-weight: 750; }
.login-form .demo-login .demo-login-hint { margin: 0; font-size: 13px; color: var(--muted); }
.login-form .demo-login .btn { margin: 0; background: #f1f3f3; border-color: #f1f3f3; }
.login-form .demo-login .btn:hover { background: #e5ebeb; border-color: #e5ebeb; }
.demo-login p { font-size: 14px; }
@media(max-width:1400px) {
 .admin-nav { gap: 20px; }
 .admin-nav a { font-size: 13px; }
 .admin-nav a>.icon { display: none; }
 .admin-dashboard { grid-template-columns: minmax(0,3fr) minmax(240px,1fr); }
 .stats { gap: 12px; }
 .stat { padding: 14px; }
 .editor-layout { grid-template-columns: 210px minmax(0,1fr); }
 .editor-context { grid-column: 2; position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media(max-width:1100px) {
 :root { --page-gutter: 32px; }
 .admin-dashboard { grid-template-columns: minmax(0,1fr); }
 .dashboard-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
 .dashboard-module+.dashboard-module { border-top: 0; padding-top: 0; }
 .grid2 { grid-template-columns: minmax(0,1fr); }
 .catalog-grid { grid-template-columns: 1fr 1fr; }
 .anam-layout { grid-template-columns: 190px minmax(0,1fr); gap: 24px; }
}
@media(max-width:700px) {
 :root { --page-gutter: 20px; }
 body { font-size: 16px; }
 .header-inner { min-height: 80px; padding-top: 16px; padding-bottom: 16px; gap: 12px; }
 .admin-brand { gap: 12px; }
 .admin-brand img { width: 110px; }
 .brand-divider { height: 30px; }
 .product-name { font-size: 14px; }
 .product-name small { font-size: 12px; }
 .account-name, .account-actions>button:first-child { display: none; }
 .account-actions { gap: 4px; }
 .account-profile .avatar { width: 34px; height: 34px; font-size: 12px; }
 .account-actions .icon-btn { width: 34px; }
 .admin-nav { gap: 24px; }
 .admin-nav a { font-size: 14px; padding: 14px 0 12px; }
 .main { padding-top: 28px; padding-bottom: 36px; }
 h1 { font-size: 28px; }
 h2 { font-size: 23px; }
 .page-heading { flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
 .page-heading p { font-size: 15px; }
 .page-heading>.btn { font-size: 17px; min-height: 50px; padding: 12px 20px; }
 .stats { gap: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); }
 .stat { padding: 12px 10px; gap: 8px; }
 .stat-icon { width: 36px; height: 36px; }
 .stat strong { font-size: 24px; }
 .stat-title { font-size: 12px; line-height: 1.5; }
 .dashboard-modules { grid-template-columns: 1fr; }
 .panel-head, .panel-body, .table-head { padding: 20px; }
 .panel-head h2, .table-head h2 { font-size: 20px; }
 .table-head { flex-wrap: wrap; }
 .table-head .search { width: 100%; }
 .table-head .search input { width: 100%!important; }
 .table-foot { font-size: 12px; gap: 16px; }
 .table-foot span:last-child { display: none; }
 .admin-footer { font-size: 12px; align-items: flex-start; flex-wrap: wrap; }
 .case-header { flex-wrap: wrap; align-items: flex-start; }
 .case-person h1 { font-size: 28px; }
 .case-person p { font-size: 14px; overflow-wrap: anywhere; }
 .case-header>.actions { justify-content: flex-start; }
 .tabs { gap: 24px; margin-bottom: 28px; }
 .tabs a { font-size: 15px; }
 .grid-even, .form-grid, .catalog-grid, .product-grid { grid-template-columns: 1fr; }
 .form-grid .wide { grid-column: 1; }
 .flow { overflow-x: auto; gap: 12px; }
 .flow-step { min-width: 85px; font-size: 12px; }
 .detail-grid { gap: 20px; }
 .notice, .notice p { font-size: 14px; }
 .notice { padding: 20px; }
 .anam-layout, .editor-layout { grid-template-columns: minmax(0,1fr); }
 .section-nav { position: static; display: flex; overflow-x: auto; white-space: nowrap; }
 .section-nav a, .section-nav button { font-size: 14px; padding: 10px 12px; }
 .editor-layout .section-nav { flex-wrap: nowrap; }
 .editor-context { grid-column: 1; grid-template-columns: 1fr; }
 .sticky-actions { flex-wrap: wrap; padding: 16px; }
 .sticky-actions p { font-size: 13px; }
 .sticky-actions .btn { font-size: 14px; min-height: 44px; padding: 10px 14px; }
 .form-section .panel-body { padding: 20px; }
 .review-filter { padding: 16px 20px; gap: 16px; }
 .review-filter label { font-size: 14px; }
 .review-table td { font-size: 14px; padding: 16px; }
 .review-table th { font-size: 13px; padding: 12px 16px; }
 .review-table .mineral-bar { width: 140px; }
 .original-panel summary { flex-wrap: wrap; padding: 18px 20px; gap: 8px; }
 .original-panel summary span { width: 100%; margin-left: 30px; font-size: 13px; }
 .original-panel summary>.icon:last-child { display: none; }
 .original-panel iframe { height: 480px; }
 .btn.primary { font-size: 17px; min-height: 50px; padding: 12px 20px; }
 .btn.compact { font-size: 14px; min-height: 44px; }
 .document-card { flex-wrap: wrap; padding: 20px; }
 .document-card .btn { margin-left: 0; }
 .login-form h2 { font-size: 28px; }
}

/* Customer records and versioned questionnaire workflow. */
.customer-tools { flex-wrap: wrap; }
.customer-tools .search { flex: 1; min-width: 260px; }
.customer-tools .search input { width: 100%!important; }
.customer-tools select { width: auto; }
.customer-table { min-width: 920px; }
.customer-name { display: block; }
.customer-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.customer-pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-top: 1px solid var(--line); font-size: 14px; }
.customer-pagination .actions>span { font-size: 14px; }
.customer-layout { display: grid; grid-template-columns: minmax(0,2.3fr) minmax(280px,1fr); gap: 32px; align-items: start; }
.customer-layout .compact-cases { min-width: 600px; }
.source-id { font-size: 14px; overflow-wrap: anywhere; }
.account-origin { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.customer-id { min-width: 0; }
.customer-id-value { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.customer-id-value code { font: inherit; font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.customer-id-value .btn { flex-shrink: 0; }
.customer-account-panel .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.customer-account-panel .detail-value { overflow-wrap: anywhere; }
.customer-layout>aside .detail-grid { grid-template-columns: minmax(0,1fr); }
.customer-layout>aside .detail-value { overflow-wrap: anywhere; }
.customer-legacy-account { border-top: 1px solid var(--line); padding-top: 16px; }
.customer-legacy-account summary { cursor: pointer; font-size: 15px; font-weight: 750; }
.customer-legacy-account>.stack { margin-top: 20px; }
@media(max-width:700px) { .customer-account-panel .detail-grid { grid-template-columns: minmax(0,1fr); } }
.anam-version-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.anam-version-bar p { margin-top: 6px; }
.anam-version-bar select { max-width: 420px; }
.anam-attachment-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.anam-attachment-section h3 { margin-bottom: 8px; }
.anam-attachment-section>p { margin-bottom: 16px; }
.anam-file { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.anam-file .check-field { align-items: flex-start; min-width: 0; }
.anam-file .check-field>span { min-width: 0; overflow-wrap: anywhere; }
.anam-file .check-field .icon { vertical-align: middle; margin-right: 8px; }
.anam-file small { display: block; margin-top: 6px; color: var(--muted); }
#anam-form fieldset:disabled .icon-btn { opacity: 1; }
#anam-form fieldset:disabled input, #anam-form fieldset:disabled textarea, #anam-form fieldset:disabled select { color: var(--petrol); opacity: 1; background: #f7f7f7; }
@media(max-width:1100px) { .customer-layout { grid-template-columns: minmax(0,1fr); } .customer-layout>aside { display: grid; grid-template-columns: 1fr 1fr; } }
@media(max-width:700px) {
 .customer-pagination, .anam-version-bar { flex-wrap: wrap; align-items: flex-start; }
 .customer-pagination { padding: 20px; gap: 16px; }
 .customer-pagination .actions { gap: 8px; }
 .customer-pagination .btn { padding: 8px 10px; }
 .customer-layout>aside { grid-template-columns: minmax(0,1fr); }
 .anam-version-bar .field, .anam-version-bar select { width: 100%; max-width: none; }
}
fieldset.question { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
fieldset.question legend { font-weight: 650; margin-bottom: 12px; }

/* Shared form fields follow the login: label and value in one outlined frame. */
label.field.form-field { display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; min-width: 0; min-height: 62px; padding: 8px 12px; border: 1px solid #bdccce; border-radius: 4px; background: white; }
.form-field>.form-field-label { display: block; font-size: 12px; font-weight: 750; line-height: 1.5; color: var(--petrol); }
label.field.form-field>input, label.field.form-field>select, label.field.form-field>textarea { width: 100%; min-width: 0; min-height: 26px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--petrol); font: inherit; font-size: 16px; line-height: 1.6; outline: none; box-shadow: none; }
label.field.form-field>select { padding-right: 24px; }
label.field.form-field>textarea { min-height: 80px; resize: vertical; }
label.field.form-field:focus-within { border-color: var(--blue); outline: 2px solid #20b8d72b; outline-offset: 1px; }
label.field.form-field:has(:user-invalid) { border-color: #a23434; }
label.field.form-field:has(:disabled), label.field.form-field:has([readonly]), #anam-form fieldset:disabled label.form-field { background: #f7f9f9; }
#anam-form fieldset:disabled label.form-field>input, #anam-form fieldset:disabled label.form-field>textarea, #anam-form fieldset:disabled label.form-field>select { background: transparent; }
.anam-start { margin-bottom: 32px; }
.anam-start-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.anam-start-heading p { max-width: 780px; margin-top: 8px; }
.anam-start-heading>.btn { flex-shrink: 0; }
.anam-person-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.anam-person-summary>span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.anam-person-summary>.btn { margin-left: auto; }
.anam-entry-modes { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.anam-entry-modes>span { font-size: 14px; font-weight: 750; margin-right: 8px; }
.anam-entry-modes .btn { min-height: 44px; font-size: 15px; }
.anam-entry-modes .btn.active { background: var(--mint,#eefbf4); border-color: var(--petrol); }
.anam-provenance { margin-top: 20px; }
.contact-history { margin-top: 24px; }
.contact-history summary { cursor: pointer; font-size: 15px; font-weight: 750; }
.contact-history p { padding-top: 12px; }
@media(max-width:700px) { .anam-start-heading { flex-direction: column; } .anam-entry-modes { align-items: stretch; } .anam-entry-modes>span { width: 100%; } .anam-person-summary>.btn { margin-left: 0; } }
.form-grid>label.field.form-field { align-self: start; }

/* Customer portal has one navigation level. */
.anam-layout.customer-anam-layout { grid-template-columns: minmax(0,1fr); }
.page-heading>#portal-case, .page-heading>.form-field { max-width: 420px; }
