/*
 * Neurogen Portal — layout and components.
 * Colors, type and spacing come only from the active theme's theme.json presets so the theme
 * can be swapped. No hex values, no font names in this file.
 */

:root {
	--ng-ink: var(--wp--preset--color--ink);
	--ng-pine: var(--wp--preset--color--pine);
	--ng-teal: var(--wp--preset--color--teal);
	--ng-slate: var(--wp--preset--color--slate);
	--ng-haze: var(--wp--preset--color--haze);
	--ng-fog: var(--wp--preset--color--fog);
	--ng-cloud: var(--wp--preset--color--cloud);
	--ng-mist: var(--wp--preset--color--mist);
	--ng-pale: var(--wp--preset--color--pale);
	--ng-white: var(--wp--preset--color--white);
	--ng-mint: var(--wp--preset--color--mint);
	--ng-font-heading: var(--wp--preset--font-family--heading);
	--ng-font-body: var(--wp--preset--font-family--body);
	--ng-radius: 20px;
	--ng-radius-sm: 12px;
	--ng-focus: 0 0 0 4px var(--ng-mint);
	--ng-shadow: 0 6px 24px rgb(0 0 0 / 0.06);
	--ng-touch: 3rem;
	/* The theme has no error color. These three are the only literals in this file. */
	--ng-error: #b3261e;
	--ng-error-bg: #fdecea;
	--ng-error-text: #7a1a13;

	/*
	 * Role tokens. Everything below this line in the file refers to a role, not a color:
	 * a card says "surface", body copy says "text". In light mode each role resolves to the
	 * palette value it always had, so light mode is unchanged. Dark mode redefines the roles
	 * and nothing else, which is why it is a short block rather than a second stylesheet.
	 */
	--ng-page: var(--ng-white);
	--ng-surface: var(--ng-white);
	--ng-surface-2: var(--ng-pale);
	--ng-line: var(--ng-cloud);
	--ng-text: var(--ng-ink);
	--ng-text-muted: color-mix(in srgb, var(--ng-slate) 55%, var(--ng-ink));
	--ng-text-soft: var(--ng-teal);
	--ng-fill-strong: var(--ng-ink);
	--ng-fill-strong-hover: var(--ng-pine);
	--ng-on-strong: var(--ng-white);
	/* Mint is the same colour in both themes, so text on mint is always the dark ink. */
	--ng-on-accent: var(--ng-ink);
}

/*
 * Dark mode. Staff only, opt in, set as data-ng-theme="dark" on the html element before the
 * page paints. Values are mixed from the theme's own palette rather than written as hex, so
 * a palette change in theme.json moves both themes together.
 */
[data-ng-theme="dark"] {
	color-scheme: dark;
	--ng-page: var(--ng-ink);
	--ng-surface: color-mix(in srgb, var(--ng-ink) 85%, var(--ng-fog));
	--ng-surface-2: color-mix(in srgb, var(--ng-ink) 76%, var(--ng-fog));
	--ng-line: color-mix(in srgb, var(--ng-ink) 64%, var(--ng-fog));
	--ng-text: var(--ng-mist);
	--ng-text-muted: var(--ng-fog);
	--ng-text-soft: var(--ng-cloud);
	--ng-fill-strong: var(--ng-mint);
	--ng-fill-strong-hover: color-mix(in srgb, var(--ng-mint) 78%, var(--ng-white));
	--ng-on-strong: var(--ng-ink);
	--ng-shadow: 0 6px 24px rgb(0 0 0 / 0.5);
	--ng-error: color-mix(in srgb, #b3261e 55%, var(--ng-white));
	--ng-error-bg: color-mix(in srgb, #b3261e 28%, var(--ng-ink));
	--ng-error-text: color-mix(in srgb, #b3261e 20%, var(--ng-cloud));
}

/* ---------- shell ---------- */

.ng-portal-page, .ng-portal-page *, .ng-portal-page *::before, .ng-portal-page *::after { box-sizing: border-box; }
.ng-portal-page [hidden] { display: none !important; }

.ng-portal-page { background: var(--ng-page); color: var(--ng-text); }
.ng-portal-page .ng-portal-main { padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30) var(--wp--preset--spacing--70); }
.ng-portal-page .ng-portal-main > * { max-width: 1280px; margin-inline: auto; }
.ng-portal-page p { font-size: var(--wp--preset--font-size--md); line-height: 1.55; }
.ng-portal-page h1, .ng-portal-page h2, .ng-portal-page h3 { font-family: var(--ng-font-heading); color: var(--ng-text); margin: 0; }

.ng-skip { position: absolute; left: -999px; top: 0; background: var(--ng-fill-strong); color: var(--ng-on-strong); padding: 0.75rem 1rem; z-index: 100; }
.ng-skip:focus { left: 1rem; top: 1rem; }

.ng-pheader { background: var(--ng-surface); padding: 0 var(--wp--preset--spacing--30); }
.ng-pheader__row { min-height: 84px; padding-block: 12px; gap: var(--wp--preset--spacing--30); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; max-width: 1280px; margin-inline: auto; }
.ng-pheader--staff .ng-pheader__row { max-width: 1416px; }
.ng-pheader .ng-tracker { max-width: 1280px; margin-inline: auto; }
.ng-pheader__logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ng-text); }
.ng-pheader__logo img { height: 2.5rem; width: auto; display: block; }
.ng-pheader__wordmark { font-family: var(--ng-font-heading); font-size: var(--wp--preset--font-size--lg); font-weight: 700; }
.ng-pheader__badge { font-size: var(--wp--preset--font-size--xs); text-transform: uppercase; letter-spacing: 0.08em; background: var(--ng-fill-strong); color: var(--ng-on-strong); padding: 0.25rem 0.6rem; border-radius: 100px; }

.ng-pnav { display: flex; align-items: center; gap: var(--wp--preset--spacing--40); flex-wrap: wrap; }
.ng-pnav__list { list-style: none; margin: 0; padding: 0 48px; display: flex; gap: 32px; align-items: center; height: 60px; border-radius: 40px; background: var(--ng-surface-2); }
.ng-pnav__link { display: inline-flex; align-items: center; min-height: var(--ng-touch); padding: 0 1rem; border-radius: 100px; text-decoration: none; font-size: var(--wp--preset--font-size--base); font-weight: 500; color: var(--ng-text); }
.ng-pnav__link:hover { background: var(--ng-surface-2); }
.ng-pnav__link.is-active { background: var(--ng-fill-strong); color: var(--ng-on-strong); }
.ng-user { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-size: var(--wp--preset--font-size--sm); }
.ng-user__name { font-weight: 600; }
.ng-user__link { color: var(--ng-text-soft); text-decoration: underline; text-underline-offset: 0.2em; min-height: var(--ng-touch); display: inline-flex; align-items: center; }
.ng-pheader__toggle { display: none; }

.ng-tracker { padding: var(--wp--preset--spacing--30) 0; border-top: 1px solid var(--ng-line); }
.ng-tracker__list { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; counter-reset: step; }
.ng-tracker__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; font-size: var(--wp--preset--font-size--sm); color: var(--ng-text-muted); }
.ng-tracker__step::before { content: ""; position: absolute; top: 0.75rem; left: 50%; width: 100%; height: 3px; background: var(--ng-line); z-index: 0; }
.ng-tracker__step:last-child::before { display: none; }
.ng-tracker__dot { position: relative; z-index: 1; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ng-white); border: 3px solid var(--ng-cloud); }
.ng-tracker__step.is-done .ng-tracker__dot, .ng-tracker__step.is-done::before { background: var(--ng-mint); border-color: var(--ng-mint); color: var(--ng-on-accent); }
.ng-tracker__step.is-current .ng-tracker__dot { border-color: var(--ng-fill-strong); background: var(--ng-fill-strong); box-shadow: 0 0 0 4px var(--ng-surface), 0 0 0 6px var(--ng-mint); }
.ng-tracker__step.is-current { color: var(--ng-text); font-weight: 600; }
.ng-tracker__status { margin: 0; font-size: var(--wp--preset--font-size--base) !important; text-align: center; }

/* ---------- cards & grid ---------- */

.ng-card { background: var(--ng-surface); border-radius: var(--ng-radius); padding: var(--wp--preset--spacing--40); box-shadow: var(--ng-shadow); display: flex; flex-direction: column; gap: 1rem; }
.ng-card--narrow { max-width: 640px; }
.ng-card__title { font-size: var(--wp--preset--font-size--xl); line-height: 1.2; }
.ng-card__title--h1 { font-size: var(--wp--preset--font-size--3-xl); line-height: 1.05; }
.ng-card__text { margin: 0; color: var(--ng-text-soft); }
.ng-grid { display: grid; gap: var(--wp--preset--spacing--30); margin-bottom: var(--wp--preset--spacing--30); }
.ng-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.ng-portal-main > .ng-card + .ng-card, .ng-portal-main > .ng-grid + .ng-card { margin-top: var(--wp--preset--spacing--30); }

/* ---------- dashboard ---------- */

.ng-portal-page .ng-dash__greeting { font-size: var(--wp--preset--font-size--3-xl); line-height: 1.05; margin: 0 0 var(--wp--preset--spacing--40); }
.ng-score { margin: 0; font-family: var(--ng-font-heading); color: var(--ng-text); line-height: 1; }
.ng-score__value { font-size: var(--wp--preset--font-size--5-xl); font-weight: 700; }
.ng-score__of { font-size: var(--wp--preset--font-size--xl); color: var(--ng-text-muted); margin-left: 0.25rem; }
.ng-journey__label { margin: 0; font-size: var(--wp--preset--font-size--sm) !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ng-text-muted); }
.ng-journey__status { margin: 0; font-family: var(--ng-font-heading); font-size: var(--wp--preset--font-size--2-xl) !important; font-weight: 700; color: var(--ng-text); }
.ng-actionlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ng-actionlist__item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0; border-top: 1px solid var(--ng-line); }
.ng-actionlist__item:first-child { border-top: 0; padding-top: 0; }
.ng-actionlist__item.is-locked { opacity: 0.75; }
.ng-actionlist__title { font-size: var(--wp--preset--font-size--md); margin: 0 0 0.25rem; }
.ng-pill { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 100px; background: var(--ng-surface-2); color: var(--ng-text-soft); font-size: var(--wp--preset--font-size--sm); font-weight: 600; white-space: nowrap; }

/* ---------- forms ---------- */

.ng-form { display: flex; flex-direction: column; gap: 1.25rem; }
.ng-field { display: flex; flex-direction: column; gap: 0.4rem; }
.ng-label { font-weight: 600; font-size: var(--wp--preset--font-size--base); color: var(--ng-text); }
.ng-input { font: inherit; font-size: var(--wp--preset--font-size--md); min-height: 3.5rem; padding: 0 1.1rem; border: 2px solid var(--ng-line); border-radius: var(--ng-radius-sm); background: var(--ng-surface); color: var(--ng-text); width: 100%; box-sizing: border-box; }
.ng-input:focus { outline: none; border-color: var(--ng-fill-strong); box-shadow: var(--ng-focus); }
.ng-input[aria-invalid="true"] { border-color: var(--ng-error); }
.ng-input--code { font-size: var(--wp--preset--font-size--2-xl); letter-spacing: 0.35em; text-align: center; font-family: var(--ng-font-heading); font-weight: 700; max-width: 16rem; }
.ng-hint { margin: 0; font-size: var(--wp--preset--font-size--sm) !important; color: var(--ng-text-muted); }
.ng-error { margin: 0; font-size: var(--wp--preset--font-size--base) !important; color: var(--ng-error); font-weight: 500; }
.ng-notice { border-radius: var(--ng-radius-sm); padding: 1rem 1.25rem; font-size: var(--wp--preset--font-size--base); }
.ng-notice--info { background: var(--ng-surface-2); color: var(--ng-text); border-left: 5px solid var(--ng-mint); }
.ng-notice--error { background: var(--ng-error-bg); color: var(--ng-error-text); border-left: 5px solid var(--ng-error); }
.ng-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.ng-button { box-sizing: border-box; font-family: var(--ng-font-body); font-size: var(--wp--preset--font-size--base); font-weight: 600; min-height: 3.5rem; padding: 0 1.75rem; border-radius: 100px; border: 2px solid transparent; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s; line-height: 1; }
.ng-button--primary { background: var(--ng-fill-strong); color: var(--ng-on-strong); }
.ng-button--primary:hover, .ng-button--primary:focus-visible { background: var(--ng-fill-strong-hover); color: var(--ng-on-strong); }
.ng-button--secondary { background: var(--ng-surface); color: var(--ng-text); border-color: var(--ng-fill-strong); }
.ng-button--secondary:hover, .ng-button--secondary:focus-visible { background: var(--ng-surface-2); }
.ng-button:focus-visible { outline: none; box-shadow: var(--ng-focus); }
.ng-button[disabled], .ng-button[aria-busy="true"] { opacity: 0.6; cursor: wait; }
.ng-linkbutton { background: none; border: 0; padding: 0; font: inherit; font-size: var(--wp--preset--font-size--base); color: var(--ng-text-soft); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; min-height: var(--ng-touch); }
.ng-linkbutton:focus-visible { outline: none; box-shadow: var(--ng-focus); border-radius: 4px; }

/* ---------- auth screens ---------- */

.ng-auth { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wp--preset--spacing--40); align-items: start; max-width: 1080px; margin-inline: auto; }
@media (min-width: 900px) { .ng-auth { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.ng-auth__card { padding: var(--wp--preset--spacing--50); }
.ng-auth__title { font-size: var(--wp--preset--font-size--4-xl); line-height: 1; }
.ng-auth__lede { margin: 0; }
.ng-auth__alt { margin: 0; }
.ng-auth__help { margin: 0; font-size: var(--wp--preset--font-size--base) !important; color: var(--ng-text-soft); }
.ng-auth__aside { background: var(--ng-ink); color: var(--ng-white); border-radius: var(--ng-radius); padding: var(--wp--preset--spacing--40); display: flex; flex-direction: column; gap: 1rem; }
.ng-auth__aside p { color: var(--ng-cloud); margin: 0; }
.ng-portal-page .ng-auth__aside-title { color: var(--ng-white); font-size: var(--wp--preset--font-size--xl); }
.ng-auth__aside .ng-button--secondary { background: var(--ng-mint); border-color: var(--ng-mint); color: var(--ng-ink); align-self: flex-start; }

/* ---------- footer ---------- */

.ng-pfooter { background: var(--ng-ink); color: var(--ng-cloud); padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30); }
.ng-pfooter__banner { text-align: center; margin-bottom: var(--wp--preset--spacing--40); }
.ng-pfooter__banner-title { font-family: var(--ng-font-heading); font-size: var(--wp--preset--font-size--2-xl) !important; color: var(--ng-white); font-weight: 700; margin: 0 0 0.25rem; }
.ng-pfooter__banner-sub { margin: 0; color: var(--ng-fog); }
.ng-pfooter__row { border-top: 1px solid var(--ng-pine); padding-top: var(--wp--preset--spacing--30); display: flex; flex-direction: column; gap: 0.75rem; }
.ng-pfooter__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.ng-pfooter__links a, .ng-pfooter__contact a { color: var(--ng-white); text-decoration: underline; text-underline-offset: 0.2em; min-height: 2.5rem; display: inline-flex; align-items: center; }
.ng-pfooter__contact, .ng-pfooter__copy { margin: 0; font-size: var(--wp--preset--font-size--sm) !important; }
.ng-pfooter--minimal { padding: var(--wp--preset--spacing--30); text-align: center; }

/* ---------- mobile ---------- */

@media (max-width: 899px) {
	.ng-pheader__toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--ng-touch); padding: 0 1rem; border: 2px solid var(--ng-fill-strong); border-radius: 100px; background: var(--ng-surface); color: var(--ng-text); font: inherit; font-weight: 600; cursor: pointer; }
	.ng-pheader__toggle-bar { width: 1.25rem; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
	.ng-pnav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
	.ng-pnav.is-open { display: flex; }
	.ng-pnav__list { flex-direction: column; }
	.ng-pnav__link { min-height: 3.5rem; font-size: var(--wp--preset--font-size--md); }
	.ng-user { flex-direction: column; align-items: flex-start; }
	.ng-tracker__list { grid-template-columns: 1fr; gap: 0; }
	.ng-tracker__step { flex-direction: row; text-align: left; padding: 0.35rem 0; }
	.ng-tracker__step::before { display: none; }
	.ng-portal-page .ng-portal-main { padding-inline: 1rem; }
	.ng-card { padding: 1.25rem; border-radius: var(--ng-radius-sm); }
	.ng-auth__card { padding: 1.5rem; }
	.ng-auth__title { font-size: var(--wp--preset--font-size--3-xl); }
	.ng-portal-page .ng-dash__greeting { font-size: var(--wp--preset--font-size--2-xl); }
	.ng-button { width: 100%; }
	.ng-actionlist__item .ng-button, .ng-actionlist__item .ng-pill { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { .ng-button { transition: none; } }

/* =====================================================================
   Phase 3 — V2 shell refinements, order flow, dashboard, patient screens
   ===================================================================== */

/* header (V2): white bar, pill nav, icon buttons */
.ng-pheader { background: var(--ng-page); border-bottom: 0; padding-top: 0.75rem; }

.ng-pnav__link { min-height: 2.75rem; padding: 0 0.6rem; font-size: var(--wp--preset--font-size--sm); font-weight: 400; }
.ng-pnav__link.is-active { background: var(--ng-fill-strong); }
.ng-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ng-surface-2); border: 0; color: var(--ng-text); text-decoration: none; cursor: pointer; }
.ng-iconbtn:hover, .ng-iconbtn:focus-visible { background: var(--ng-surface-2); outline: none; box-shadow: var(--ng-focus); }
.ng-iconbtn__badge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 12px; background: var(--ng-mint); color: var(--ng-teal); font-size: 10px; font-weight: 400; display: inline-flex; align-items: center; justify-content: center; }
.ng-iconbtn__badge--static { position: static; margin-left: auto; }
.ng-user { gap: 0.6rem; }
.ng-user__signout { font-size: var(--wp--preset--font-size--sm); color: var(--ng-text-soft); text-decoration: underline; text-underline-offset: 0.2em; margin-left: 0.5rem; min-height: var(--ng-touch); display: inline-flex; align-items: center; }
.ng-tracker { border-top: 0; padding: 0.5rem 0 0.75rem; }
.ng-tracker__list { grid-template-columns: repeat(5, 1fr); max-width: 760px; margin-inline: auto; }
.ng-tracker__step { font-size: var(--wp--preset--font-size--xs); }
.ng-tracker__status { font-size: var(--wp--preset--font-size--sm) !important; color: var(--ng-text-soft); }
.ng-tracker__status strong { color: var(--ng-text); }
.ng-route-dashboard .ng-tracker { display: none; }
.ng-page__title { font-size: var(--wp--preset--font-size--2-xl); line-height: 1.1; margin: 0 0 var(--wp--preset--spacing--40); }
.ng-backlink { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ng-text-soft); text-decoration: none; font-size: var(--wp--preset--font-size--sm); margin-bottom: 0.75rem; min-height: 2.5rem; }
.ng-eyebrow { margin: 0; font-size: var(--wp--preset--font-size--xs) !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ng-text-muted); }
.ng-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* footer (V2): light band */
.ng-pfooter { background: var(--ng-pale); color: var(--ng-teal); border-top: 0; padding: 24px var(--wp--preset--spacing--30); }
.ng-pfooter__banner { display: none; }
.ng-pfooter__banner-title { margin: 0; }
.ng-pfooter__row { border-top: 0; padding-top: 0; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; max-width: 1280px; margin-inline: auto; }
.ng-pfooter__links { gap: 0.5rem 32px; align-self: center; }
.ng-pfooter__links a, .ng-pfooter__contact a { color: var(--ng-ink); text-decoration: none; font-size: var(--wp--preset--font-size--sm); min-height: 0; }
.ng-pfooter__links a:hover, .ng-pfooter__contact a:hover { text-decoration: underline; }
.ng-pfooter__contact { width: 305px; }
.ng-pfooter__contact::before { content: "Contact Us"; display: block; font-weight: 500; font-size: var(--wp--preset--font-size--base); color: var(--ng-ink); margin-bottom: 0.5rem; }
.ng-pfooter__copy { width: 100%; color: var(--ng-slate); font-size: var(--wp--preset--font-size--xs) !important; }

/* buttons */
.ng-button--mint { background: var(--ng-mint); color: var(--ng-on-accent); border-color: var(--ng-mint); }
.ng-button--mint:hover, .ng-button--mint:focus-visible { background: var(--ng-surface); color: var(--ng-text); border-color: var(--ng-mint); }
.ng-button--wide { width: 100%; }
.ng-button--compact { min-height: 2.75rem; padding: 0 1.25rem; font-size: var(--wp--preset--font-size--sm); }
.ng-button--pill { min-height: 2.75rem; padding: 0 1.25rem; font-size: var(--wp--preset--font-size--sm); background: var(--ng-surface); border-color: var(--ng-line); color: var(--ng-text); gap: 0.5rem; white-space: nowrap; }
.ng-button--pill:hover { border-color: var(--ng-fill-strong); }
.ng-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ng-mint); display: inline-block; }
.ng-actions--stack { flex-direction: column; }
.ng-actions--end { justify-content: flex-end; }
.ng-actions--tight { gap: 0.5rem; }

/* choices, checks, selects, textareas */
.ng-choices { display: flex; flex-direction: column; gap: 0.6rem; }
.ng-choices--row { flex-direction: row; flex-wrap: wrap; }
.ng-choices--compact { gap: 0.3rem; }
.ng-choice { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; border: 2px solid var(--ng-line); border-radius: var(--ng-radius-sm); background: var(--ng-surface); cursor: pointer; font-size: var(--wp--preset--font-size--base); color: var(--ng-text); min-height: 3.25rem; }
.ng-choice:has(input:checked) { border-color: var(--ng-fill-strong); background: var(--ng-surface-2); }
.ng-choice:has(input:focus-visible) { box-shadow: var(--ng-focus); }
.ng-choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--ng-fill-strong); margin: 0; flex: none; }
.ng-choice--pill { min-height: 2.5rem; padding: 0.4rem 0.9rem; border-radius: 100px; font-size: var(--wp--preset--font-size--sm); }
.ng-choice--card { align-items: flex-start; }
.ng-choice--card span { display: flex; flex-direction: column; gap: 0.2rem; }
.ng-choice--card small { color: var(--ng-text-soft); font-size: var(--wp--preset--font-size--sm); }
.ng-choices--compact .ng-choice { padding: 0.5rem 0.75rem; min-height: 2.5rem; border-width: 1px; }
.ng-check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--wp--preset--font-size--sm); color: var(--ng-text-soft); cursor: pointer; }
.ng-check input { width: 1.25rem; height: 1.25rem; accent-color: var(--ng-fill-strong); margin-top: 0.15rem; flex: none; }
.ng-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ng-ink) 50%), linear-gradient(135deg, var(--ng-ink) 50%, transparent 50%); background-position: calc(100% - 1.4rem) 55%, calc(100% - 1rem) 55%; background-size: 0.4rem 0.4rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.ng-textarea { min-height: 7rem; padding: 0.9rem 1.1rem; resize: vertical; line-height: 1.5; }
.ng-input--file { padding: 0.9rem 1.1rem; }
.ng-input--other { margin-top: 0.5rem; }
.ng-inline { display: flex; gap: 0.5rem; }
.ng-inline .ng-input { flex: 1; }
.ng-hint--ok { color: var(--ng-text); }
.ng-grid--tight { gap: 1rem; margin-bottom: 0; }
.ng-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.ng-grid--card { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.ng-legal { margin: 0; font-size: var(--wp--preset--font-size--xs) !important; color: var(--ng-text-muted); }
.ng-legal a { color: var(--ng-text-soft); }
.ng-callout { background: var(--ng-surface-2); border-radius: var(--ng-radius-sm); padding: 1rem 1.25rem; font-size: var(--wp--preset--font-size--sm); color: var(--ng-text-soft); }
.ng-callout--outline { background: var(--ng-surface); border: 1px solid var(--ng-line); }
.ng-callout p { margin: 0 0 0.35rem; font-size: var(--wp--preset--font-size--sm) !important; }
.ng-callout__title { font-weight: 600; color: var(--ng-text); font-size: var(--wp--preset--font-size--md) !important; }
.ng-callout ul { margin: 0.25rem 0 0 1.2rem; padding: 0; }

/* ---------- order flow ---------- */
.ng-portal-main--order { padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) var(--wp--preset--spacing--60); background: linear-gradient(160deg, var(--ng-pine), var(--ng-slate) 60%, var(--ng-haze)); min-height: 60vh; }
.ng-order, .ng-checkout { max-width: 1280px; margin-inline: auto; }
.ng-order__resume { margin-bottom: 1rem; }
.ng-checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wp--preset--spacing--40); align-items: start; }
@media (min-width: 960px) { .ng-checkout { grid-template-columns: minmax(0, 630px) minmax(0, 520px); justify-content: space-between; } }
.ng-checkout__card { background: var(--ng-surface); border-radius: 32px; padding: var(--wp--preset--spacing--50); display: flex; flex-direction: column; gap: 1.25rem; }
.ng-checkout__top { display: flex; justify-content: space-between; align-items: center; }
.ng-checkout__logo img { height: 2.25rem; width: auto; display: block; }
.ng-checkout__stepnum { margin: 0; font-size: var(--wp--preset--font-size--xs) !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ng-text-muted); font-weight: 600; }
.ng-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; }
.ng-steps__item { flex: 1; display: flex; align-items: center; gap: 0.5rem; font-size: var(--wp--preset--font-size--xs); color: var(--ng-text-muted); padding-bottom: 0.5rem; border-bottom: 3px solid var(--ng-line); }
.ng-steps__item span { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ng-line); color: var(--ng-text); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.ng-steps__item.is-current { color: var(--ng-text); border-color: var(--ng-fill-strong); font-weight: 600; }
.ng-steps__item.is-current span { background: var(--ng-fill-strong); color: var(--ng-on-strong); }
.ng-steps__item.is-done { border-color: var(--ng-mint); }
.ng-steps__item.is-done span { background: var(--ng-mint); color: var(--ng-on-accent); }
.ng-checkout__back { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.25rem; text-decoration: none; }
.ng-checkout__title { font-size: var(--wp--preset--font-size--3-xl); line-height: 1.05; }
.ng-checkout__lede { margin: 0; color: var(--ng-text-soft); }
.ng-checkout__h2 { font-size: var(--wp--preset--font-size--lg); padding-top: 1rem; border-top: 1px solid var(--ng-line); }
.ng-stepform { display: flex; flex-direction: column; gap: 1.1rem; }
.ng-paymethods { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.6rem; }
.ng-paymethod { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1rem; border: 2px solid var(--ng-line); border-radius: var(--ng-radius-sm); cursor: pointer; font-weight: 600; font-size: var(--wp--preset--font-size--sm); }
.ng-paymethod:has(input:checked) { border-color: var(--ng-fill-strong); }
.ng-paymethod input { accent-color: var(--ng-fill-strong); width: 1.1rem; height: 1.1rem; margin: 0; }
.ng-cardfields { display: flex; flex-direction: column; gap: 1rem; }
.ng-review__block { padding: 1rem 0; border-top: 1px solid var(--ng-line); }
.ng-review__head { display: flex; justify-content: space-between; align-items: center; }
.ng-review__head h2 { font-size: var(--wp--preset--font-size--md); }
.ng-review__block p { margin: 0.2rem 0; font-size: var(--wp--preset--font-size--sm) !important; color: var(--ng-text); }
.ng-review__label { color: var(--ng-text-muted); font-size: var(--wp--preset--font-size--xs); }
.ng-receipt { margin: 0; display: flex; flex-direction: column; gap: 0.4rem; border: 1px solid var(--ng-line); border-radius: var(--ng-radius-sm); padding: 1rem 1.25rem; }
.ng-receipt div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--wp--preset--font-size--sm); }
.ng-receipt dt { color: var(--ng-text-muted); }
.ng-receipt dd { margin: 0; font-weight: 600; color: var(--ng-text); text-align: right; }

/* order summary panel */
.ng-osummary { color: var(--ng-white); display: flex; flex-direction: column; gap: 1.5rem; }
.ng-osummary__card { background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.2); border-radius: 24px; padding: 1rem 1.5rem 1.5rem; }
.ng-osummary__image { border-radius: 16px; overflow: hidden; background: rgb(255 255 255 / 0.25); margin-bottom: 1rem; }
.ng-osummary__image img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; }
.ng-osummary__eyebrow { margin: 0 0 0.5rem; font-size: var(--wp--preset--font-size--xs) !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ng-cloud); }
.ng-osummary__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.ng-osummary__name { margin: 0; font-family: var(--ng-font-heading); font-size: var(--wp--preset--font-size--xl) !important; line-height: 1.1; }
.ng-osummary__right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.ng-osummary__hsa { font-size: var(--wp--preset--font-size--xs); background: rgb(255 255 255 / 0.18); border-radius: 100px; padding: 0.3rem 0.75rem; }
.ng-osummary__hsa::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ng-mint); margin-right: 0.4rem; }
.ng-osummary__price { font-family: var(--ng-font-heading); font-size: var(--wp--preset--font-size--2-xl); color: var(--ng-mint); font-weight: 700; }
.ng-osummary__lines { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 0.2); display: flex; flex-direction: column; gap: 0.5rem; }
.ng-osummary__lines div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--wp--preset--font-size--sm); color: var(--ng-cloud); }
.ng-osummary__lines dd { margin: 0; color: var(--ng-white); }
.ng-osummary__total { padding-top: 0.5rem; border-top: 1px solid rgb(255 255 255 / 0.2); font-weight: 600; }
.ng-osummary__note { margin: 0.75rem 0 0; font-size: var(--wp--preset--font-size--xs) !important; color: var(--ng-cloud); }
.ng-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.ng-checklist li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--wp--preset--font-size--base); }
.ng-checklist .ng-icon { flex: none; margin-top: 0.2rem; color: var(--ng-mint); }
.ng-giftcard { background: linear-gradient(140deg, var(--ng-ink), var(--ng-pine)); border-radius: 24px; padding: 2rem; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.ng-giftcard__label { color: var(--ng-cloud); font-size: var(--wp--preset--font-size--sm); }
.ng-giftcard img { align-self: center; height: 44px; width: auto; }

/* Jane */
.ng-jane { display: flex; justify-content: center; }
.ng-jane__card { background: var(--ng-surface); border-radius: 32px; padding: var(--wp--preset--spacing--50); width: min(100%, 640px); display: flex; flex-direction: column; gap: 1.25rem; text-align: center; }
.ng-jane__title { font-size: var(--wp--preset--font-size--3-xl); line-height: 1.05; }
.ng-jane__title span { color: var(--ng-text-soft); }
.ng-jane__bubble { background: var(--ng-surface-2); border-radius: var(--ng-radius); padding: 1.25rem 1.5rem; text-align: left; display: flex; flex-direction: column; gap: 0.5rem; }
.ng-jane__bubble p { margin: 0; font-size: var(--wp--preset--font-size--base) !important; color: var(--ng-text-soft); }
.ng-jane__bubble p strong { color: var(--ng-text); }
.ng-jane__name { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--ng-text) !important; }
.ng-jane__avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--ng-fill-strong); color: var(--ng-on-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.ng-jane__survey { display: flex; flex-direction: column; gap: 1.25rem; text-align: left; }
.ng-jane__head { background: var(--ng-surface-2); border-radius: var(--ng-radius); padding: 1.25rem 1.5rem; }
.ng-jane__progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.ng-jane__step { font-size: var(--wp--preset--font-size--xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ng-text-muted); white-space: nowrap; }
.ng-jane__bar { flex: 1; height: 6px; border-radius: 100px; background: var(--ng-line); overflow: hidden; }
.ng-jane__bar span { display: block; height: 100%; background: var(--ng-mint); width: 0; transition: width 0.3s; }
.ng-jane__question-title { font-size: var(--wp--preset--font-size--lg); line-height: 1.25; text-align: center; }
.ng-jane__hint { margin: 0.5rem 0 0; font-size: var(--wp--preset--font-size--sm) !important; color: var(--ng-text-soft); text-align: center; }
.ng-jane__q { border: 0; margin: 0; padding: 0; }
.ng-jane__legend { font-size: var(--wp--preset--font-size--md); font-weight: 600; color: var(--ng-text); margin-bottom: 0.75rem; text-align: center; width: 100%; }
.ng-jane__nav { display: flex; gap: 0.75rem; justify-content: space-between; }

/* ---------- dashboard ---------- */
.ng-hero { position: relative; background: linear-gradient(120deg, var(--ng-pine), var(--ng-teal) 55%, var(--ng-haze)); color: var(--ng-white); border-radius: 40px; padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) var(--wp--preset--spacing--70); margin-bottom: 8rem; }
.ng-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 1024px) {
	.ng-hero__inner { grid-template-columns: minmax(0, 1fr) 630px; gap: 3rem; }
	/* The two cards are squares in the design. Left to size themselves they come out
	   short and the hero looks clipped. */
	.ng-hero__cards .ng-glass { min-height: 305px; }
}
@media (min-width: 900px) and (max-width: 1023px) { .ng-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ng-portal-page .ng-hero__greeting { color: var(--ng-white); font-size: 4rem; font-weight: 400; line-height: 1; }
.ng-hero__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 20px; }
.ng-glass { position: relative; background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.18); border-radius: 30px; padding: 32px; display: flex; flex-direction: column; gap: 0.5rem; }
.ng-glass__title { margin: 0 0 1.25rem; font-family: var(--ng-font-heading); font-size: 1.75rem !important; font-weight: 500; line-height: 1 !important; max-width: 230px; padding-right: 0; }
#ng-score-title { max-width: 185px; }
.ng-glass__title span { color: var(--ng-mint); }
.ng-glass__info { position: absolute; top: 32px; right: 32px; background: none; border: 0; color: var(--ng-cloud); cursor: pointer; padding: 0; line-height: 0; }
.ng-tip { display: block; font-size: var(--wp--preset--font-size--xs); color: var(--ng-cloud); }
.ng-glass .ng-score { color: var(--ng-white); display: flex; align-items: baseline; gap: 0.5rem; line-height: 1 !important; }
.ng-glass .ng-score__value { font-size: 6.5rem; font-weight: 500; line-height: 1; }
.ng-glass .ng-score__of { font-size: var(--wp--preset--font-size--base); color: var(--ng-white); margin: 0; }
.ng-glass .ng-score__of { color: var(--ng-cloud); }
.ng-glass__sub { margin: 0; font-size: var(--wp--preset--font-size--base) !important; line-height: 1 !important; color: var(--ng-white); }
.ng-glass__row { display: flex; gap: 1rem; align-items: center; margin-top: 0.5rem; }
.ng-glass__kit { width: 88px; height: 88px; object-fit: contain; border-radius: 12px; background: rgb(255 255 255 / 0.15); }
.ng-glass__eyebrow { margin: 0; font-size: var(--wp--preset--font-size--xs) !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ng-cloud); }
.ng-glass__status { margin: 0; font-family: var(--ng-font-heading); font-size: var(--wp--preset--font-size--lg) !important; line-height: 1.15; }
.ng-glass__link { color: var(--ng-mint); text-decoration: none; font-size: var(--wp--preset--font-size--sm); display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2.5rem; margin-top: auto; }
.ng-hero__mark { position: absolute; left: 50%; bottom: -5rem; transform: translateX(-50%); width: 10rem; height: 10rem; border-radius: 50%; background: var(--ng-page); display: flex; align-items: center; justify-content: center; }
.ng-hero__mark img { width: 5.5rem; height: 5.5rem; }
.ng-dash__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wp--preset--spacing--40); }
@media (min-width: 1024px) {
	.ng-dash__body { grid-template-columns: minmax(0, 1fr) 305px; column-gap: 64px; }
	.ng-dash__main { border-right: 1px solid var(--ng-line); padding-right: 64px; }
}
.ng-dash__main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.ng-section { display: flex; flex-direction: column; gap: 24px; }
.ng-section__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ng-section__title { font-size: var(--wp--preset--font-size--md); font-weight: 400; line-height: 1.4; color: var(--ng-text-muted); }
.ng-section__more { color: var(--ng-text-soft); text-decoration: none; font-size: var(--wp--preset--font-size--sm); display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; margin-right: -12px; }
.ng-actiongroup { background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.ng-actiongroup__title { margin: 0; font-weight: 600; color: var(--ng-text); }
.ng-action { background: var(--ng-surface-2); border-radius: 10px; padding: 24px; min-height: 120px; display: flex; align-items: center; gap: 24px; }
.ng-action.is-locked { opacity: 0.85; }
.ng-action__icon { flex: none; width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--ng-haze) 92%, var(--ng-white)), color-mix(in srgb, var(--ng-haze) 70%, var(--ng-slate))); color: var(--ng-white); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ng-action__icon img { width: 100%; height: 100%; object-fit: cover; }
.ng-action__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.ng-action__title { font-size: var(--wp--preset--font-size--md); font-weight: 400; line-height: 1; font-family: var(--ng-font-body); }
.ng-action__text { margin: 0; font-size: var(--wp--preset--font-size--base) !important; line-height: 1.5 !important; color: var(--ng-text-muted); }
.ng-action__ref { margin: 0; font-size: var(--wp--preset--font-size--xs) !important; color: var(--ng-text-muted); }
.ng-action__lock { margin: 0.25rem 0 0; font-size: var(--wp--preset--font-size--xs) !important; color: var(--ng-text-muted); display: inline-flex; align-items: center; gap: 0.3rem; }
.ng-pill--small { min-height: 1.6rem; font-size: var(--wp--preset--font-size--xs); padding: 0 0.6rem; align-self: flex-start; }
.ng-pill.is-ok { background: var(--ng-mint); color: var(--ng-on-accent); }
.ng-pill.is-warn { background: var(--ng-line); color: var(--ng-text); }
.ng-consult { background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 700px) { .ng-consult { grid-template-columns: 220px minmax(0, 1fr); } }
.ng-consult__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.ng-consult__body { display: flex; flex-direction: column; gap: 0.5rem; }
.ng-consult__body p { margin: 0; font-size: var(--wp--preset--font-size--sm) !important; color: var(--ng-text-soft); }
.ng-consult__title { font-size: var(--wp--preset--font-size--md); }
.ng-consult .ng-button { align-self: flex-start; }
.ng-resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.ng-resource { background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: var(--ng-radius); overflow: hidden; display: flex; flex-direction: column; }
.ng-resource__img { width: 100%; height: 251px; object-fit: cover; }
.ng-resource__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ng-resource__title { font-size: var(--wp--preset--font-size--md); font-weight: 400; line-height: 1; font-family: var(--ng-font-body); }
.ng-resource__text { margin: 0; font-size: var(--wp--preset--font-size--sm) !important; line-height: 18px !important; color: var(--ng-text-muted); }
.ng-resource__link { color: var(--ng-text-soft); text-decoration: none; font-size: var(--wp--preset--font-size--sm); display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-top: auto; }
.ng-faq { display: flex; flex-direction: column; gap: 0.75rem; }
.ng-faq__item { background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: var(--ng-radius-sm); padding: 0 1rem; }
.ng-faq__q { list-style: none; display: flex; align-items: center; gap: 0.75rem; padding: 1rem 0; cursor: pointer; font-weight: 500; color: var(--ng-text); min-height: 3.5rem; }
.ng-faq__q::-webkit-details-marker { display: none; }
.ng-faq__icon { width: 2rem; height: 2rem; border-radius: 8px; background: var(--ng-surface-2); color: var(--ng-text-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ng-faq__chev { margin-left: auto; color: var(--ng-text-muted); transition: transform 0.2s; }
.ng-faq__item[open] .ng-faq__chev { transform: rotate(180deg); }
.ng-faq__a { margin: 0; padding: 0 0 1rem 2.75rem; font-size: var(--wp--preset--font-size--sm) !important; color: var(--ng-text-soft); }
.ng-giftpromo { position: relative; border-radius: var(--ng-radius); padding: 24px; min-height: 382px; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem; background-size: cover; background-position: center; color: var(--ng-white); overflow: hidden; }
.ng-giftpromo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(1 53 64 / 0.85), rgb(1 53 64 / 0.1)); }
.ng-giftpromo > * { position: relative; }
.ng-giftpromo__mark { position: absolute; top: 24px; left: 32px; width: 52px; height: 52px; border-radius: 10px; background: rgb(255 255 255 / 0.25); display: flex; align-items: center; justify-content: center; }
.ng-giftpromo__title { margin: 0; font-family: var(--ng-font-heading); font-size: 1.75rem !important; font-weight: 400; text-align: center; line-height: 1; }
.ng-giftpromo__sub { margin: 0 0 0.5rem; font-size: var(--wp--preset--font-size--sm) !important; line-height: 18px; text-align: center; color: var(--ng-cloud); }
.ng-giftpromo .ng-button { width: 100%; }

/* modal */
.ng-modal { position: fixed; inset: 0; background: rgb(1 53 64 / 0.55); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 200; }
.ng-modal__card { position: relative; background: var(--ng-surface); border-radius: 32px; padding: var(--wp--preset--spacing--50); width: min(100%, 640px); max-height: 92vh; overflow: auto; display: flex; flex-direction: column; gap: 1rem; }
.ng-modal__close { position: absolute; top: 1rem; right: 1rem; background: var(--ng-surface-2); border: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; cursor: pointer; color: var(--ng-text); display: inline-flex; align-items: center; justify-content: center; }
.ng-modal__title { font-size: var(--wp--preset--font-size--2-xl); text-align: center; }
.ng-modal__card--celebrate .ng-modal__title { background: radial-gradient(circle at center, var(--ng-surface-2), var(--ng-surface)); padding: 2rem 1rem; border-radius: var(--ng-radius); }

/* ---------- profile ---------- */
.ng-psection { margin-bottom: var(--wp--preset--spacing--30); }
.ng-psection__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ng-psection__tools { display: flex; align-items: center; gap: 0.75rem; }
.ng-pview { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem 2rem; }
.ng-pview dt { font-size: var(--wp--preset--font-size--xs); color: var(--ng-text-muted); }
.ng-pview dd { margin: 0.15rem 0 0; font-weight: 600; color: var(--ng-text); }
.ng-pedit fieldset { border: 0; padding: 0; margin: 0; }

/* ---------- kit / journey ---------- */
.ng-kitstatus { background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-bottom: var(--wp--preset--spacing--40); }
@media (min-width: 800px) { .ng-kitstatus { grid-template-columns: 300px minmax(0, 1fr); } }
.ng-kitstatus__img { background: var(--ng-surface-2); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ng-kitstatus__img img { max-width: 100%; height: auto; max-height: 180px; }
.ng-kitstatus__body { display: flex; flex-direction: column; gap: 0.5rem; }
.ng-kitstatus__status { margin: 0; font-family: var(--ng-font-heading); font-size: var(--wp--preset--font-size--xl) !important; }
.ng-bars { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.ng-bars__bar { display: block; height: 5px; border-radius: 100px; background: var(--ng-line); margin-bottom: 0.4rem; }
.ng-bars__item.is-done .ng-bars__bar, .ng-bars__item.is-current .ng-bars__bar { background: var(--ng-mint); }
.ng-bars__label { font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ng-text-muted); }
.ng-bars__item.is-current .ng-bars__label { color: var(--ng-text); font-weight: 600; }
.ng-timeline { list-style: none; margin: 0; padding: 0 0 0 2.5rem; position: relative; display: flex; flex-direction: column; gap: 1rem; }
.ng-timeline::before { content: ""; position: absolute; left: 0.85rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--ng-line); }
.ng-timeline__item { position: relative; }
.ng-timeline__dot { position: absolute; left: -2.5rem; top: 1.25rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ng-white); border: 2px solid var(--ng-cloud); color: var(--ng-on-strong); display: flex; align-items: center; justify-content: center; }
.ng-timeline__item.is-done .ng-timeline__dot { background: var(--ng-haze); border-color: var(--ng-haze); }
.ng-timeline__item.is-current .ng-timeline__dot { background: var(--ng-fill-strong); border-color: var(--ng-fill-strong); }
.ng-timeline__item.is-upcoming { opacity: 0.6; }
.ng-timeline__card { background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: 10px; padding: 16px 24px; min-height: 84px; display: flex; gap: 20px; align-items: center; }
.ng-timeline__icon { flex: none; width: 52px; height: 52px; border-radius: 10px; background: var(--ng-surface-2); color: var(--ng-text-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ng-timeline__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.ng-timeline__title { font-size: var(--wp--preset--font-size--md); font-weight: 400; line-height: 1; font-family: var(--ng-font-body); }
.ng-timeline__text { margin: 0; font-size: var(--wp--preset--font-size--sm) !important; line-height: 18px !important; color: var(--ng-text-muted); }
.ng-timeline__time { flex: none; font-size: var(--wp--preset--font-size--xs); color: var(--ng-text-muted); white-space: nowrap; }
.ng-timeline .ng-button { align-self: flex-start; margin-top: 0.25rem; }

/* ---------- appointments & booking ---------- */
.ng-appt { background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: 1.25rem; display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 0.75rem; }
.ng-appt.is-cancelled { opacity: 0.6; }
.ng-appt__avatar { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 12px; background: var(--ng-surface-2); color: var(--ng-text-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ng-appt__avatar--lg { width: 4.5rem; height: 4.5rem; }
.ng-appt__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ng-appt__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.ng-appt__title { font-size: var(--wp--preset--font-size--md); font-weight: 500; }
.ng-appt__when { margin: 0; font-size: var(--wp--preset--font-size--sm) !important; color: var(--ng-text-soft); }
.ng-book__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wp--preset--spacing--40); }
@media (min-width: 960px) { .ng-book__grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.ng-cal { background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: 1rem; max-width: 420px; }
.ng-cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.ng-cal__month { margin: 0; font-weight: 600; font-size: var(--wp--preset--font-size--sm) !important; }
.ng-cal__dow, .ng-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.ng-cal__dow span { text-align: center; font-size: var(--wp--preset--font-size--xs); color: var(--ng-text-muted); padding: 0.25rem 0; }
.ng-cal__day { aspect-ratio: 1; border: 1px solid transparent; border-radius: 8px; background: none; font: inherit; font-size: var(--wp--preset--font-size--sm); color: var(--ng-text); cursor: pointer; min-height: 2.5rem; }
.ng-cal__day.is-open { font-weight: 600; }
.ng-cal__day.is-open:hover { border-color: var(--ng-fill-strong); }
.ng-cal__day.is-off { color: var(--ng-haze); text-decoration: line-through; cursor: default; }
.ng-cal__day.is-selected { background: var(--ng-fill-strong); color: var(--ng-on-strong); }
.ng-cal__day:focus-visible { outline: none; box-shadow: var(--ng-focus); }
.ng-slots { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.ng-slots__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.ng-slots__date { font-size: var(--wp--preset--font-size--lg); }
.ng-slots__period { font-size: var(--wp--preset--font-size--sm); font-weight: 600; margin-bottom: 0.5rem; }
.ng-slots__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ng-slots__none { margin: 0; color: var(--ng-text-muted); font-size: var(--wp--preset--font-size--sm) !important; }
.ng-slot { font: inherit; font-size: var(--wp--preset--font-size--sm); min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--ng-line); border-radius: 8px; background: var(--ng-surface); color: var(--ng-text); cursor: pointer; }
.ng-slot:hover { border-color: var(--ng-fill-strong); }
.ng-slot.is-selected { background: var(--ng-fill-strong); color: var(--ng-on-strong); border-color: var(--ng-fill-strong); }
.ng-slot.is-taken { color: var(--ng-haze); text-decoration: line-through; cursor: default; }
.ng-slot:focus-visible { outline: none; box-shadow: var(--ng-focus); }
.ng-book__side-title { font-size: var(--wp--preset--font-size--md); font-weight: 400; color: var(--ng-text-soft); margin-bottom: 0.75rem; }
.ng-summary__who { display: flex; gap: 0.75rem; align-items: center; }
.ng-summary__title { margin: 0; font-weight: 600; color: var(--ng-text); font-size: var(--wp--preset--font-size--base) !important; }
.ng-summary__when { margin: 0; font-size: var(--wp--preset--font-size--sm) !important; color: var(--ng-text-soft); }
.ng-summary__list { margin: 0; padding-left: 1.1rem; font-size: var(--wp--preset--font-size--sm); color: var(--ng-text-soft); display: flex; flex-direction: column; gap: 0.3rem; }
.ng-summary__price { display: flex; justify-content: space-between; border-top: 1px solid var(--ng-line); padding-top: 0.75rem; }

/* ---------- results ---------- */
.ng-report__head { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; }
.ng-report__patient { width: 100%; margin: 0; font-size: var(--wp--preset--font-size--sm) !important; color: var(--ng-text-muted); }
.ng-report__summary { margin: 0; }
.ng-report__section { display: flex; flex-direction: column; gap: 0.5rem; }
.ng-report__section h3 { font-size: var(--wp--preset--font-size--md); }
.ng-tablewrap { overflow-x: auto; }
.ng-table { width: 100%; border-collapse: collapse; font-size: var(--wp--preset--font-size--sm); }
.ng-table th, .ng-table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--ng-line); }
.ng-table th { color: var(--ng-text-muted); font-weight: 500; font-size: var(--wp--preset--font-size--xs); text-transform: uppercase; letter-spacing: 0.06em; }
.ng-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ng-files li { display: flex; align-items: center; gap: 0.6rem; }
.ng-files a { color: var(--ng-text); }

/* ---------- doctor ---------- */
.ng-doccard__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--ng-line); }
.ng-doccard__who { display: flex; align-items: center; gap: 1rem; }
.ng-doccard__name { font-size: var(--wp--preset--font-size--lg); }
.ng-doccard__section h3 { font-size: var(--wp--preset--font-size--md); margin-bottom: 0.5rem; }
.ng-doccard__section h4 { font-size: var(--wp--preset--font-size--sm); margin: 0.75rem 0 0.25rem; }
.ng-doccard__section p { font-size: var(--wp--preset--font-size--sm) !important; color: var(--ng-text-soft); margin: 0 0 0.6rem; }
.ng-plainlist { list-style: none; margin: 0; padding: 0; font-size: var(--wp--preset--font-size--sm); color: var(--ng-text-soft); display: flex; flex-direction: column; gap: 0.25rem; }
.ng-reflist li { padding: 0.75rem 0; border-top: 1px solid var(--ng-line); }
.ng-reflist li:first-child { border-top: 0; padding-top: 0; }

/* ---------- messages ---------- */
.ng-msgs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 900px) { .ng-msgs { grid-template-columns: 320px minmax(0, 1fr); } }
.ng-threads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ng-thread { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem; border-radius: var(--ng-radius-sm); text-decoration: none; color: var(--ng-text); border-left: 3px solid transparent; }
.ng-thread:hover { background: var(--ng-surface); }
.ng-thread.is-active { background: var(--ng-surface); border-left-color: var(--ng-mint); }
.ng-thread__avatar { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ng-surface-2); color: var(--ng-text-soft); display: inline-flex; align-items: center; justify-content: center; }
.ng-thread__body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.ng-thread__title { font-weight: 600; }
.ng-thread__preview { font-size: var(--wp--preset--font-size--xs); color: var(--ng-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-thread__time { font-size: var(--wp--preset--font-size--xs); color: var(--ng-text-muted); }
.ng-msgs__thread { background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: var(--ng-radius); display: flex; flex-direction: column; min-height: 60vh; }
.ng-msgs__scroll { flex: 1; overflow: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.ng-msg { display: flex; flex-direction: column; gap: 0.35rem; max-width: 80%; }
.ng-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.ng-msg__meta { display: flex; align-items: center; gap: 0.5rem; font-size: var(--wp--preset--font-size--xs); color: var(--ng-text-muted); }
.ng-msg__from { font-weight: 600; color: var(--ng-text); }
.ng-msg__bubble { background: var(--ng-surface-2); border-radius: 16px; padding: 1rem 1.25rem; font-size: var(--wp--preset--font-size--sm); color: var(--ng-text); line-height: 1.55; }
.ng-msg.is-mine .ng-msg__bubble { background: var(--ng-line); }
.ng-msg__bubble a { color: var(--ng-pine); text-decoration: underline; }
.ng-msg__delivery { font-size: var(--wp--preset--font-size--xs); color: var(--ng-text-muted); }
.ng-msg__delivery ul { margin: 0.25rem 0 0 1rem; padding: 0; }
.ng-msgs__reply { border-top: 1px solid var(--ng-line); padding: 1rem; display: flex; gap: 0.5rem; align-items: flex-end; flex-wrap: wrap; }
.ng-msgs__reply .ng-textarea { flex: 1; min-height: 3.5rem; min-width: 12rem; }
.ng-msgs__reply .ng-error { width: 100%; }

/* ---------- thank you ---------- */
.ng-ty { position: relative; min-height: 70vh; background-size: cover; background-position: center; border-radius: 32px; padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30); display: flex; flex-direction: column; align-items: center; gap: 1.5rem; max-width: 1280px; margin-inline: auto; overflow: hidden; }
.ng-ty::before { content: ""; position: absolute; inset: 0; background: rgb(1 53 64 / 0.35); }
.ng-ty > * { position: relative; }
.ng-ty__logo { align-self: flex-start; }
.ng-ty__logo img { filter: brightness(0) invert(1); height: 2.25rem; width: auto; }
.ng-ty__card { background: var(--ng-surface); border-radius: 32px; padding: var(--wp--preset--spacing--50); width: min(100%, 640px); display: flex; flex-direction: column; gap: 1rem; }
.ng-ty__title { font-size: var(--wp--preset--font-size--3-xl); line-height: 1.05; }
.ng-ty__lede { margin: 0; color: var(--ng-text-soft); }
.ng-ty__receipt summary { cursor: pointer; color: var(--ng-text-soft); font-size: var(--wp--preset--font-size--sm); }
.ng-ty__receipt .ng-receipt { margin-top: 0.75rem; }
.ng-ty__source { border-top: 1px solid var(--ng-line); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }

/* ---------- mobile ---------- */
@media (max-width: 899px) {
	.ng-pnav__list { background: none; border: 0; padding: 0; }
	.ng-user { width: 100%; flex-direction: row; justify-content: flex-start; padding-bottom: 0.5rem; }
	.ng-hero { padding: 2rem 1.25rem 3rem; border-radius: 20px; }
	.ng-portal-page .ng-hero__greeting { font-size: var(--wp--preset--font-size--3-xl); }
	.ng-checkout__card, .ng-jane__card, .ng-ty__card, .ng-modal__card { padding: 1.5rem 1.25rem; border-radius: 20px; }
	.ng-portal-main--order { padding-inline: 1rem; }
	.ng-grid--card { grid-template-columns: 1fr 1fr; }
	.ng-grid--card > :first-child { grid-column: 1 / -1; }
	.ng-action { flex-wrap: wrap; }
	.ng-action .ng-button { width: 100%; }
	.ng-timeline__card { flex-wrap: wrap; }
	.ng-msg { max-width: 95%; }
	.ng-bars__label { font-size: 0.55rem; }
	.ng-osummary__image img { max-height: 160px; }
	.ng-hero__mark { display: none; }
	.ng-hero { margin-bottom: 1.5rem; }
	/* phones: dots only, the status line below carries the words */
	.ng-tracker__list { display: flex; justify-content: center; gap: 0.6rem; max-width: none; margin-bottom: 0.5rem; }
	.ng-tracker__step { flex-direction: row; padding: 0; }
	.ng-tracker__step::before { display: none; }
	.ng-tracker__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ng-tracker__status { text-align: center; }
	.ng-tracker { padding-bottom: 0.5rem; }
}

/* =====================================================================
   Phase 4 — staff shell: queue, case record, calendar, admin modules
   ===================================================================== */
.ng-portal-main--staff { padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) var(--wp--preset--spacing--60); }
.ng-portal-page .ng-portal-main--staff > * { max-width: 1416px; }
.ng-staff { display: flex; flex-direction: column; gap: 1rem; }
.ng-staff__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ng-staff .ng-page__title { margin-bottom: 0.25rem; }
.ng-viewas { background: var(--ng-mint); color: var(--ng-on-accent); padding: 0.6rem 1rem; display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; font-size: var(--wp--preset--font-size--sm); }
.ng-counts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ng-count { display: flex; flex-direction: column; align-items: center; min-width: 5.5rem; padding: 0.5rem 0.75rem; background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: var(--ng-radius-sm); text-decoration: none; color: var(--ng-text); }
.ng-count strong { font-family: var(--ng-font-heading); font-size: var(--wp--preset--font-size--lg); }
.ng-count span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ng-text-muted); text-align: center; }
.ng-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: var(--ng-radius-sm); padding: 1rem; }
.ng-filters__item { display: flex; flex-direction: column; gap: 0.25rem; font-size: var(--wp--preset--font-size--xs); color: var(--ng-text-muted); min-width: 9rem; }
.ng-filters__item .ng-input { min-height: 2.75rem; font-size: var(--wp--preset--font-size--sm); }
.ng-filters__check { flex-direction: row; align-items: center; gap: 0.4rem; min-height: 2.75rem; }
.ng-filters__actions { display: flex; gap: 0.75rem; align-items: center; margin-left: auto; }
.ng-card--flush { padding: 0; overflow: hidden; }
.ng-table--rows th, .ng-table--rows td { padding: 0.75rem 1rem; vertical-align: top; }
.ng-table--rows tr.is-stalled td { background: var(--ng-surface-2); }
.ng-table--rows tr.is-cancelled { opacity: 0.6; }
.ng-table__link { color: var(--ng-text); font-weight: 600; }
.ng-input--inline { min-height: 2.75rem; width: auto; flex: 1; font-size: var(--wp--preset--font-size--sm); }
.ng-input--sm { min-height: 2.5rem; font-size: var(--wp--preset--font-size--sm); padding: 0 0.6rem; width: auto; }
.ng-h3 { font-size: var(--wp--preset--font-size--base); margin: 0.75rem 0 0.35rem; }
.ng-button--danger { border-color: var(--ng-error); color: var(--ng-error); }
.ng-button--pill.is-selected { background: var(--ng-fill-strong); color: var(--ng-on-strong); border-color: var(--ng-fill-strong); }

/* case record */
.ng-case__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.ng-case__ref { font-size: var(--wp--preset--font-size--base); color: var(--ng-text-muted); font-weight: 400; margin-left: 0.5rem; }
.ng-case__pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.ng-case__tools { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ng-case__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 1100px) { .ng-case__grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.ng-case__main, .ng-case__side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.ng-csection { gap: 0.75rem; }
.ng-csection__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ng-csection--internal { border: 2px dashed var(--ng-haze); }
.ng-actionrow { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.6rem 0; border-top: 1px solid var(--ng-line); }
.ng-actionrow:first-of-type { border-top: 0; }
.ng-actionrow .ng-label { min-width: 9rem; }
.ng-override summary { list-style: none; }
.ng-override .ng-inline { margin-top: 0.5rem; }
.ng-log { font-size: var(--wp--preset--font-size--sm); }
.ng-log li { padding: 0.35rem 0; border-top: 1px solid var(--ng-line); }
.ng-log li:first-child { border-top: 0; }
.ng-log--tight { font-size: var(--wp--preset--font-size--xs); }
.ng-log__time { color: var(--ng-text-muted); white-space: nowrap; }
.ng-versions summary { list-style: none; font-size: var(--wp--preset--font-size--sm); }

/* calendar */
.ng-cal-staff__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ng-cal-staff__nav, .ng-cal-staff__views { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ng-cal-staff__range { font-size: var(--wp--preset--font-size--base); }
.ng-tgrid { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 700px; }
.ng-tgrid th { font-size: var(--wp--preset--font-size--xs); color: var(--ng-text-muted); padding: 0.5rem; border-bottom: 1px solid var(--ng-line); text-align: left; }
.ng-tgrid th.is-today { color: var(--ng-text); background: var(--ng-surface-2); }
.ng-tgrid__time { width: 4.5rem; font-size: var(--wp--preset--font-size--xs); color: var(--ng-text-muted); vertical-align: top; padding: 0.35rem 0.5rem; }
.ng-tgrid__cell { border: 1px solid var(--ng-line); vertical-align: top; height: 3.25rem; padding: 0.2rem; }
.ng-evt { display: block; background: var(--ng-surface-2); border-left: 3px solid var(--ng-mint); border-radius: 6px; padding: 0.3rem 0.5rem; font-size: var(--wp--preset--font-size--xs); color: var(--ng-text); text-decoration: none; margin-bottom: 0.2rem; }
.ng-evt--cancelled { opacity: 0.5; border-left-color: var(--ng-haze); text-decoration: line-through; }
.ng-evt--completed { border-left-color: var(--ng-slate); }
.ng-mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.ng-mgrid__dow { font-size: var(--wp--preset--font-size--xs); color: var(--ng-text-muted); text-align: center; padding: 0.25rem; }
.ng-mgrid__day { background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: 8px; min-height: 6rem; padding: 0.3rem; }
.ng-mgrid__day.is-today { border-color: var(--ng-fill-strong); }
.ng-mgrid__num { font-size: var(--wp--preset--font-size--sm); font-weight: 600; color: var(--ng-text); text-decoration: none; display: block; margin-bottom: 0.2rem; }

/* schedules, reports */
.ng-special__row { align-items: center; flex-wrap: wrap; margin-bottom: 0.4rem; }
.ng-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; }
.ng-metric { background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: var(--ng-radius-sm); padding: 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.ng-metric__label { font-size: var(--wp--preset--font-size--xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ng-text-muted); }
.ng-metric__value { font-family: var(--ng-font-heading); font-size: var(--wp--preset--font-size--2-xl); color: var(--ng-text); }
.ng-choice.is-disabled { opacity: 0.5; }

@media (max-width: 899px) {
	.ng-filters__actions { margin-left: 0; }
	.ng-actionrow .ng-label { min-width: 0; width: 100%; }
	.ng-mgrid { grid-template-columns: repeat(7, minmax(2.5rem, 1fr)); }
	.ng-mgrid__day { min-height: 3rem; padding: 0.15rem; }
	.ng-evt { font-size: 0.6rem; padding: 0.15rem 0.3rem; }
}

/* Phase 5 */
.ng-simulator { border: 2px dashed var(--ng-haze); }
.ng-checklist--dark .ng-icon { color: var(--ng-text); }

/* ---- v0.3: settings, multi-select filters, charts, referrals, event sequence */
.ng-notice--warn { background: var(--ng-surface-2); color: var(--ng-text); border-left: 5px solid var(--ng-haze); }
.ng-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 0.75rem 1.5rem; }
.ng-settings__row { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.5rem 0; border-top: 1px solid var(--ng-line); }
.ng-settings__row .ng-input--sm { max-width: 12rem; }
.ng-settings__row .ng-hint { margin: 0; }
.ng-filters__item--multi { min-width: 13rem; }
.ng-select--multi { min-height: 6.5rem; padding: 0.25rem; }
.ng-select--multi option { padding: 0.2rem 0.4rem; }
.ng-chart { width: 100%; height: auto; display: block; font-family: var(--ng-font-body); }
.ng-chart__bar { fill: var(--ng-mint); }
.ng-chart__label { font-size: 12px; fill: var(--ng-text-muted); }
.ng-chart__value { font-size: 12px; font-weight: 600; fill: var(--ng-text); }
.ng-chart__axis { stroke: var(--ng-line); stroke-width: 1; }
.ng-referral { padding: 0.6rem 0; border-top: 1px solid var(--ng-line); display: flex; flex-direction: column; gap: 0.5rem; }
.ng-referral:first-of-type { border-top: 0; }
.ng-referral__head { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ng-referral__send { gap: 0.5rem; }
.ng-seq { display: flex; flex-direction: column; gap: 0.35rem; }
.ng-seq__step { border: 1px solid var(--ng-line); border-radius: var(--ng-radius-sm); padding: 0.5rem 0.75rem; background: var(--ng-surface); }
.ng-seq__step summary { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; flex-wrap: wrap; }
.ng-seq__step summary .ng-check { margin: 0; }
.ng-seq__fields { margin-top: 0.6rem; }
@media (max-width: 720px) { .ng-referral__head { flex-direction: column; align-items: flex-start; } }
.ng-filters__item--multi { align-self: flex-start; }
.ng-select--multi { min-height: 7.5rem; }

/* ---------- visit room ----------
   Deliberately larger than the rest of the portal. The patient using this is often 65 or
   older, on a laptop they do not use daily, minutes before speaking to a neurologist. Type
   is a step up, targets are well past the 3rem minimum, and the one thing that always
   works, the phone number, is the most prominent element on the page after the video. */

.ng-visit { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--40); }
.ng-visit__head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.ng-visit__who { display: flex; align-items: center; gap: 1rem; }
.ng-visit__title { font-size: var(--wp--preset--font-size--lg); font-weight: 600; }
.ng-visit__when { margin: 0.2rem 0 0; color: var(--ng-text-soft); font-size: var(--wp--preset--font-size--md) !important; }
.ng-visit__status { margin: 0; min-height: 1.5rem; font-size: var(--wp--preset--font-size--md) !important; color: var(--ng-text-muted); max-width: 34ch; }
.ng-visit__h2 { font-size: var(--wp--preset--font-size--md); font-weight: 600; margin-bottom: 0.5rem; }
.ng-visit__h2--hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ng-visit__lead { font-size: var(--wp--preset--font-size--md) !important; color: var(--ng-text-muted); margin: 0 0 1rem; max-width: 62ch; }

.ng-visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: var(--wp--preset--spacing--40); align-items: start; }
.ng-visit__main { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--40); min-width: 0; }

/* stage: the black rectangle everything sits in */
.ng-visit__stage { position: relative; background: var(--ng-ink); border-radius: var(--ng-radius); overflow: hidden; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.ng-visit__stage--waiting, .ng-visit__stage--phone { background: var(--ng-white); border: 1px solid var(--ng-cloud); aspect-ratio: auto; padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40); text-align: center; }
.ng-visit__remote { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ng-visit__waiting { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: var(--ng-white); padding: 1rem; }
.ng-visit__waitingtext { margin: 0; color: var(--ng-white); font-size: var(--wp--preset--font-size--md) !important; max-width: 30ch; text-align: center; }
.ng-visit__dots { display: inline-flex; gap: 0.35rem; }
.ng-visit__dots i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ng-mint); animation: ng-visit-pulse 1.4s infinite ease-in-out; }
.ng-visit__dots i:nth-child(2) { animation-delay: 0.2s; }
.ng-visit__dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes ng-visit-pulse { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ng-visit__dots i { animation: none; opacity: 0.7; } }

.ng-visit__tile { position: absolute; right: 1rem; bottom: 1rem; width: 11rem; max-width: 34%; aspect-ratio: 4 / 3; border-radius: var(--ng-radius-sm); overflow: hidden; background: var(--ng-slate); border: 2px solid var(--ng-white); }
.ng-visit__tilelabel { position: absolute; left: 0.4rem; bottom: 0.3rem; color: var(--ng-white); font-size: var(--wp--preset--font-size--xs); text-shadow: 0 1px 3px rgb(0 0 0 / 0.6); }
.ng-visit__video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.ng-visit__elapsed { position: absolute; left: 1rem; top: 1rem; margin: 0; color: var(--ng-white); background: rgb(0 0 0 / 0.45); padding: 0.2rem 0.6rem; border-radius: 100px; font-size: var(--wp--preset--font-size--sm) !important; font-variant-numeric: tabular-nums; }

/* countdown */
.ng-visit__clocklabel { margin: 0; color: var(--ng-text-muted); font-size: var(--wp--preset--font-size--md) !important; }
.ng-visit__countdown { margin: 0.25rem 0 0.75rem; font-family: var(--ng-font-heading); font-size: clamp(3rem, 9vw, 5rem) !important; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ng-text); }
.ng-visit__clocknote { margin: 0 auto; max-width: 46ch; color: var(--ng-text-muted); font-size: var(--wp--preset--font-size--md) !important; }
.ng-visit__phone { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--ng-text-soft); }
.ng-visit__phone .ng-visit__lead { text-align: center; }

/* device check */
.ng-visit__check { background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: var(--wp--preset--spacing--40); }
.ng-visit__preview { position: relative; background: var(--ng-ink); border-radius: var(--ng-radius-sm); overflow: hidden; aspect-ratio: 16 / 9; max-width: 34rem; }
.ng-visit__previewnote { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; color: var(--ng-white); font-size: var(--wp--preset--font-size--md); }
.ng-visit__meter { margin-top: 1rem; max-width: 34rem; height: 0.9rem; background: var(--ng-line); border-radius: 100px; overflow: hidden; }
.ng-visit__meterfill { display: block; height: 100%; width: 0; background: var(--ng-mint); transition: width 90ms linear; }
.ng-visit__meterlabel { margin: 0.4rem 0 0; color: var(--ng-text-muted); font-size: var(--wp--preset--font-size--sm) !important; }
.ng-visit__checkactions { margin-top: 1.25rem; }
.ng-visit__pickers { margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; max-width: 34rem; }
.ng-visit__error { margin: 1rem 0 0; background: var(--ng-error-bg); color: var(--ng-error-text); border-left: 5px solid var(--ng-error); padding: 0.9rem 1rem; border-radius: var(--ng-radius-sm); font-size: var(--wp--preset--font-size--md) !important; max-width: 62ch; }
.ng-visit__joinbar { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ng-line); display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ng-button--lg { min-height: 3.75rem; padding-inline: 2rem; font-size: var(--wp--preset--font-size--md); }

/* controls */
.ng-visit__controls { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.ng-visit__ctl { display: inline-flex; align-items: center; gap: 0.6rem; min-height: var(--ng-touch); padding: 0 1.25rem; border-radius: 100px; border: 1px solid var(--ng-line); background: var(--ng-surface); color: var(--ng-text); font-family: var(--ng-font-body); font-size: var(--wp--preset--font-size--base); cursor: pointer; }
.ng-visit__ctl:hover { background: var(--ng-surface-2); }
.ng-visit__ctl:focus-visible { outline: none; box-shadow: var(--ng-focus); }
.ng-visit__ctl[aria-pressed="true"] { background: var(--ng-fill-strong); color: var(--ng-on-strong); border-color: var(--ng-fill-strong); }
.ng-visit__ctl--leave { border-color: var(--ng-error); color: var(--ng-error-text); }
.ng-visit__ctl--leave:hover { background: var(--ng-error-bg); }
.ng-visit__ctlicon { display: inline-flex; }

/* help rail */
.ng-visit__side { display: flex; flex-direction: column; gap: 1rem; }
.ng-visit__helpcard { background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: 1.25rem; }
.ng-visit__helpcard--call { background: var(--ng-surface-2); border-color: var(--ng-mint); text-align: center; }
.ng-visit__helpcard--quiet { background: transparent; border: 0; padding: 0 1.25rem; }
.ng-visit__helpkicker { margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--wp--preset--font-size--xs) !important; color: var(--ng-text-muted); }
.ng-visit__helph { font-size: var(--wp--preset--font-size--base); font-weight: 600; margin-bottom: 0.6rem; }
.ng-visit__helpnote { margin: 0.5rem 0 0; color: var(--ng-text-muted); font-size: var(--wp--preset--font-size--sm) !important; }
.ng-visit__tips { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: var(--wp--preset--font-size--base); line-height: 1.5; color: var(--ng-text); }
.ng-visit__tel { font-family: var(--ng-font-heading); font-weight: 700; color: var(--ng-text); text-decoration: none; }
.ng-visit__tel--big { display: inline-block; margin: 0.25rem 0 0; font-size: var(--wp--preset--font-size--lg); }
.ng-visit__tel:focus-visible { outline: none; box-shadow: var(--ng-focus); border-radius: 6px; }
.ng-appt__dial { margin: 0; font-size: var(--wp--preset--font-size--sm) !important; color: var(--ng-text-muted); }

@media (max-width: 980px) {
	.ng-visit__grid { grid-template-columns: 1fr; }
	.ng-visit__side { order: 2; }
}
@media (max-width: 600px) {
	.ng-visit__tile { width: 7.5rem; right: 0.6rem; bottom: 0.6rem; }
	.ng-visit__joinbar .ng-button { width: 100%; justify-content: center; }
}

/* Once the visit starts, the rail stops giving advice about getting in and starts giving
   advice about being in. The number stays put through both. */
.ng-visit__side.is-in-visit .ng-visit__helpcard--pre { display: none; }
.ng-visit__helpcard--during { display: none; }
.ng-visit__side.is-in-visit .ng-visit__helpcard--during { display: block; }

/* ---------- staff theme control ----------
   A segmented control, not a switch, because "follow my computer" is a real answer and a
   switch has only two positions. Sits in the staff header and nowhere else. */

.ng-themetoggle { display: inline-flex; padding: 0.2rem; gap: 0.15rem; background: var(--ng-surface-2); border: 1px solid var(--ng-line); border-radius: 100px; }
.ng-themetoggle__opt { border: 0; background: none; font-family: var(--ng-font-body); font-size: var(--wp--preset--font-size--xs); color: var(--ng-text-soft); padding: 0 0.7rem; min-height: 2.25rem; border-radius: 100px; cursor: pointer; white-space: nowrap; }
.ng-themetoggle__opt:hover { color: var(--ng-text); }
.ng-themetoggle__opt.is-active { background: var(--ng-surface); color: var(--ng-text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.ng-themetoggle__opt:focus-visible { outline: none; box-shadow: var(--ng-focus); }

/* Photographs and the logo are made for a light page. Knock the glare off them rather than
   leaving them as bright rectangles on a dark screen. */
[data-ng-theme="dark"] .ng-pheader__logo img { filter: brightness(0) invert(1) opacity(0.92); }
[data-ng-theme="dark"] .ng-appt__avatar img, [data-ng-theme="dark"] .ng-doctor__photo img { filter: brightness(0.92) contrast(1.02); }

/* Form controls draw their own chrome from the operating system. color-scheme on the root
   handles most of it; these are the two that need saying out loud. */
[data-ng-theme="dark"] .ng-input, [data-ng-theme="dark"] .ng-select, [data-ng-theme="dark"] textarea.ng-input { background-color: var(--ng-surface-2); color: var(--ng-text); border-color: var(--ng-line); }
[data-ng-theme="dark"] .ng-input::placeholder { color: var(--ng-text-muted); }

/* The journey history collapses to the step the patient is on. Without scripting the list
   renders whole and the button never appears, so no row is ever unreachable. */
.ng-timeline[data-collapsed] .ng-timeline__item.is-extra { display: none; }
.ng-timeline__toggle { align-self: flex-start; margin-top: 1rem; }

/* ---------- dashboard: the hero owns the top of the page ----------
   In the design the navigation sits on the hero, and the hero runs edge to edge with a
   12px margin. Every other screen keeps the plain white header. Nothing here changes
   what the header renders, only where it sits and what it sits on. */

body.ng-route-dashboard { position: relative; }
.ng-route-dashboard .ng-portal-main { padding-top: 12px; padding-inline: 0; }
.ng-portal-page.ng-route-dashboard .ng-portal-main > .ng-dash { max-width: none; }

.ng-route-dashboard .ng-hero { margin: 0 12px 8rem; padding: 184px 0 100px; }
.ng-route-dashboard .ng-hero__inner { max-width: 1320px; margin-inline: auto; padding-inline: 20px; box-sizing: border-box; }
.ng-route-dashboard .ng-dash__body { max-width: 1320px; margin-inline: auto; padding-inline: 20px; box-sizing: border-box; }

/* The header floats over the hero. Transparent, white type, translucent pill and buttons. */
.ng-route-dashboard .ng-pheader { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 5; background: transparent; padding: 0 20px; }
.ng-route-dashboard .ng-pheader__row { max-width: 1280px; min-height: 0; padding: 24px 0 0; position: relative; }
.ng-route-dashboard .ng-pheader__logo, .ng-route-dashboard .ng-user { height: 60px; align-items: center; flex-wrap: nowrap; }
@media (min-width: 1024px) { .ng-route-dashboard .ng-pnav { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); } }
.ng-route-dashboard .ng-pheader__logo img { filter: brightness(0) invert(1); }
.ng-route-dashboard .ng-pheader__wordmark { color: var(--ng-white); }
.ng-route-dashboard .ng-pnav__list { background: rgb(255 255 255 / 0.1); }
.ng-route-dashboard .ng-pnav__link { color: var(--ng-white); }
.ng-route-dashboard .ng-pnav__link:hover { background: rgb(255 255 255 / 0.12); }
.ng-route-dashboard .ng-pnav__link.is-active { background: none; color: var(--ng-white); font-weight: 500; }
.ng-route-dashboard .ng-iconbtn { background: rgb(255 255 255 / 0.1); color: var(--ng-white); }
.ng-route-dashboard .ng-iconbtn:hover, .ng-route-dashboard .ng-iconbtn:focus-visible { background: rgb(255 255 255 / 0.2); }
.ng-route-dashboard .ng-user__signout, .ng-route-dashboard .ng-user__link { color: var(--ng-white); }
.ng-route-dashboard .ng-pheader__toggle { color: var(--ng-white); }
.ng-route-dashboard .ng-tracker { display: none; }

@media (max-width: 1023px) {
	.ng-route-dashboard .ng-hero { padding-top: 140px; margin-bottom: 4rem; }
	.ng-route-dashboard .ng-pnav { background: var(--ng-surface); }
	.ng-route-dashboard .ng-pnav__link { color: var(--ng-text); }
}

/* Timeline and action thumbnails: an exported illustration or the doctor's photo when one
   exists, the line icon otherwise. The tile is the same size either way. */
.ng-timeline__icon img, .ng-action__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ng-timeline__photo { border-radius: 10px; }

/* ---- staff header: one line on a desktop, menu button below 1280px (nine links + theme + user) */
.ng-pheader--staff .ng-pheader__row { flex-wrap: nowrap; }
.ng-pheader--staff .ng-pnav { flex: 1 1 auto; justify-content: flex-end; flex-wrap: nowrap; gap: var(--wp--preset--spacing--30); min-width: 0; }
.ng-pheader--staff .ng-pnav__list { padding: 0 20px; gap: 18px; }
.ng-pheader--staff .ng-pnav__link { font-size: var(--wp--preset--font-size--sm); white-space: nowrap; }
.ng-pheader--staff .ng-user { flex-wrap: nowrap; }
.ng-pheader--staff .ng-themetoggle__opt { padding: 0 0.55rem; }
@media (min-width: 900px) and (max-width: 1499px) {
	.ng-pheader--staff .ng-pheader__row { flex-wrap: wrap; }
	.ng-pheader--staff .ng-pheader__toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--ng-touch); padding: 0 1rem; border: 2px solid var(--ng-fill-strong); border-radius: 100px; background: var(--ng-surface); color: var(--ng-text); font: inherit; font-weight: 600; cursor: pointer; }
	.ng-pheader--staff .ng-pheader__toggle-bar { width: 1.25rem; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
	.ng-pheader--staff .ng-pnav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
	.ng-pheader--staff .ng-pnav.is-open { display: flex; }
	.ng-pheader--staff .ng-pnav__list { flex-direction: column; height: auto; padding: 0.5rem 0; background: none; }
	.ng-pheader--staff .ng-pnav__link { min-height: 3.5rem; font-size: var(--wp--preset--font-size--md); }
	.ng-pheader--staff .ng-user { flex-wrap: wrap; }
}
.ng-pheader--staff .ng-user, .ng-pheader--staff .ng-user a { white-space: nowrap; }

/* ---- visit room: the far tile once a video adapter attaches a stream */
/* The remote box already fills the stage (absolute, inset 0); the far video fills the box, unmirrored. */
.ng-visit__video--remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none; }
.ng-visit__remote.is-live .ng-visit__waiting { display: none; }

/* staff header: the logo never gives up width to the menu; below 1500px the menu button takes over */
.ng-pheader--staff .ng-pheader__logo { flex: 0 0 auto; }
.ng-pheader--staff .ng-pnav__list { padding: 0 16px; gap: 14px; }
.ng-pheader--staff .ng-user { gap: 0.5rem; }
/* staff header at desktop widths: nine links, the theme switch and the user menu must fit in 1416px */
.ng-pheader--staff .ng-pnav__list { padding: 0 12px; gap: 6px; height: 56px; }
.ng-pheader--staff .ng-pnav__link { padding: 0 0.55rem; font-size: 13px; min-height: 2.5rem; }
.ng-pheader--staff .ng-themetoggle__opt { padding: 0 0.45rem; min-height: 2rem; }
.ng-pheader--staff .ng-iconbtn { width: 44px; height: 44px; }
.ng-pheader--staff .ng-user { gap: 0.4rem; }
.ng-pheader--staff .ng-user__signout { font-size: 13px; }
.ng-pheader--staff .ng-pheader__logo img { height: 2.25rem; }
.ng-pheader--staff .ng-pheader__badge { padding: 0.2rem 0.5rem; }

/* ---- v0.6 operations: tabs, KPI status, tickets, audit ---- */
.ng-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--ng-line); margin-bottom: 1.25rem; overflow-x: auto; }
.ng-tabs__tab { padding: 0.6rem 0.9rem; min-height: 2.5rem; text-decoration: none; color: var(--ng-text-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 600; font-size: var(--wp--preset--font-size--sm); }
.ng-tabs__tab:hover { color: var(--ng-text); }
.ng-tabs__tab.is-active { color: var(--ng-text); border-bottom-color: var(--ng-mint); }
.ng-pill.is-alert { background: var(--ng-error); color: #fff; }
.ng-csection--alert { border-color: var(--ng-error); }
.ng-table--rows tr.is-alert td:first-child { box-shadow: inset 3px 0 0 var(--ng-error); }
.ng-section__title { font-size: var(--wp--preset--font-size--lg); margin: 1.75rem 0 0.75rem; }
.ng-h3 { font-size: var(--wp--preset--font-size--md); margin: 0 0 0.5rem; }
.ng-grid--2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.ng-table--audit td { vertical-align: top; }
.ng-audit__json { max-width: 28rem; word-break: break-word; font-family: var(--ng-font-mono, ui-monospace, monospace); font-size: var(--wp--preset--font-size--xs); }
.ng-ticket .ng-case__side .ng-field { margin-bottom: 0.75rem; }

/* ---- staff nav groups: Support ▾ (Tickets, Communications) and Settings ▾ (Rules, Staff accounts, Audit log) ---- */
.ng-pnav__item { position: relative; }
.ng-pnav__caret { font-size: 10px; margin-left: 0.25rem; opacity: 0.7; }
.ng-pnav__sub { list-style: none; margin: 0; padding: 0.35rem; }
.ng-pnav__sublink { display: flex; align-items: center; min-height: 2.5rem; padding: 0 0.8rem; border-radius: 10px; text-decoration: none; color: var(--ng-text); font-size: 13px; white-space: nowrap; }
.ng-pnav__sublink:hover { background: var(--ng-surface-2); }
.ng-pnav__sublink.is-active { background: var(--ng-fill-strong); color: var(--ng-on-strong); }
@media (min-width: 1500px) {
	.ng-pheader--staff .ng-pnav__sub { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 11rem; background: var(--ng-surface); border: 1px solid var(--ng-line); border-radius: 12px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.18); z-index: 40; }
	.ng-pheader--staff .ng-pnav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
	.ng-pheader--staff .ng-pnav__item:hover .ng-pnav__sub, .ng-pheader--staff .ng-pnav__item:focus-within .ng-pnav__sub { display: block; }
}
@media (max-width: 1499px) {
	.ng-pheader--staff .ng-pnav__sub { padding-left: 1.25rem; }
	.ng-pheader--staff .ng-pnav__sublink { min-height: 3rem; font-size: var(--wp--preset--font-size--base); }
}
