.jhac-standalone-body { min-height: 100vh; margin: 0; color: #182432; background: #f3f6f8; font-family: Perpetua, Baskerville, Georgia, "Times New Roman", serif; }
.jhac-page {
	--jhac-ink: #182432;
	--jhac-muted: #657487;
	--jhac-blue: #1f6fae;
	--jhac-blue-dark: #174f7a;
	--jhac-line: #d9e1e9;
	--jhac-surface: #ffffff;
	--jhac-soft: #f4f7fa;
	max-width: 1240px;
	margin: 0 auto;
	padding: 2rem 1rem 4rem;
	color: var(--jhac-ink);
	font-family: Perpetua, Baskerville, Georgia, "Times New Roman", serif;
}
.jhac-page *, .jhac-page *::before, .jhac-page *::after { box-sizing: border-box; }
.jhac-hero { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: 2rem; color: #fff; background: linear-gradient(135deg, #122c43, #1f6fae); border-radius: 18px; box-shadow: 0 16px 40px rgba(18,44,67,.16); }
.jhac-hero h1 { margin: .15rem 0 .5rem; color: #fff; }
.jhac-hero p { margin: 0; max-width: 760px; }
.jhac-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.jhac-kicker { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .76rem; }
.jhac-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: .4rem; overflow-x: auto; margin: 1rem 0; padding: .6rem; background: rgba(255,255,255,.94); border: 1px solid var(--jhac-line); border-radius: 12px; backdrop-filter: blur(10px); }
.jhac-tabs a { padding: .55rem .8rem; color: var(--jhac-blue-dark); font-weight: 700; white-space: nowrap; text-decoration: none; border-radius: 8px; }
.jhac-tabs a:hover { background: var(--jhac-soft); }
.jhac-tabs a.is-active { color: #fff; background: var(--jhac-blue-dark); box-shadow: 0 5px 14px rgba(23,79,122,.18); }
.jhac-card { margin-top: 1.2rem; padding: 1.5rem; background: var(--jhac-surface); border: 1px solid var(--jhac-line); border-radius: 16px; box-shadow: 0 8px 24px rgba(20,42,62,.06); }
.jhac-card h2 { margin-top: 0; }
.jhac-section-heading, .jhac-result-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.jhac-section-heading p { margin-bottom: 0; color: var(--jhac-muted); }
.jhac-safe-label { padding: .35rem .6rem; color: #246143; background: #e7f5ed; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.jhac-table-wrap { overflow-x: auto; margin-top: 1rem; }
.jhac-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.jhac-table th, .jhac-table td { padding: .8rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--jhac-line); }
.jhac-table th { color: #4f5f72; background: var(--jhac-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.jhac-table small, .jhac-muted { color: var(--jhac-muted); }
.jhac-count { align-self: flex-start; padding: .32rem .58rem; color: var(--jhac-blue-dark); background: #edf5fb; border: 1px solid #c8ddea; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.jhac-empty { text-align: center !important; color: var(--jhac-muted); padding: 2rem !important; }
.jhac-empty-compact { margin: 1rem 0 0; padding: 1rem !important; background: var(--jhac-soft); border-radius: 9px; }
.jhac-lookup-form { max-width: 780px; margin-top: 1.2rem; padding: 1rem; background: #f8fafc; border: 1px solid var(--jhac-line); border-radius: 12px; }
.jhac-lookup-form > label { display: block; margin-bottom: .35rem; color: #4f5f72; font-weight: 800; }
.jhac-lookup-form > div { display: grid; grid-template-columns: minmax(220px,1fr) auto; gap: .55rem; }
.jhac-lookup-form > small { display: block; margin-top: .5rem; color: var(--jhac-muted); }
.jhac-registry-search { display: grid; gap: .35rem; max-width: 760px; margin-top: 1.15rem; color: #4f5f72; font-weight: 800; }
.jhac-registry-search input { font-weight: 400; }
.jhac-registry-search small { min-height: 1.1rem; color: var(--jhac-muted); font-weight: 400; }
.jhac-filter-empty { margin: .75rem 0 0; padding: 1rem !important; background: var(--jhac-soft); border-radius: 8px; }
.jhac-button { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 38px; padding: .55rem .85rem; color: #fff !important; background: var(--jhac-blue); border: 1px solid var(--jhac-blue); border-radius: 8px; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none !important; cursor: pointer; }
.jhac-button:hover { background: var(--jhac-blue-dark); border-color: var(--jhac-blue-dark); }
.jhac-button:disabled { opacity: .5; cursor: not-allowed; }
.jhac-button-secondary { color: var(--jhac-blue-dark) !important; background: #fff; border-color: #b8c9d9; }
.jhac-hero .jhac-button-secondary { color: #fff !important; background: transparent; border-color: rgba(255,255,255,.55); }
.jhac-button-danger { background: #a73535; border-color: #a73535; }
.jhac-button-small { min-height: 32px; padding: .35rem .6rem; font-size: .82rem; }
.jhac-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; align-items: end; }
.jhac-form-grid-wide { grid-template-columns: repeat(4, minmax(0,1fr)); }
.jhac-field-span-2 { grid-column: span 2; }
.jhac-form-grid label, .jhac-template-card label { display: grid; gap: .35rem; color: #4f5f72; font-weight: 700; }
.jhac-checkbox-label { display: flex !important; align-items: center; align-self: center; gap: .55rem; }
.jhac-checkbox-label input, .jhac-confirmation input { width: auto; }
.jhac-page input, .jhac-page textarea, .jhac-page select { width: 100%; padding: .62rem .7rem; color: var(--jhac-ink); background: #fff; border: 1px solid #b8c5d1; border-radius: 7px; font: inherit; }
.jhac-page label small { color: var(--jhac-muted); font-weight: 400; }
.jhac-page textarea { resize: vertical; }
.jhac-page input:focus, .jhac-page textarea:focus, .jhac-page select:focus { outline: 3px solid rgba(31,111,174,.17); border-color: var(--jhac-blue); }
.jhac-actions { min-width: 280px; }
.jhac-actions form { display: grid; grid-template-columns: 1fr auto; gap: .4rem; margin-top: .45rem; }
.jhac-delete-control { margin-top: .5rem; padding: .45rem .55rem; border: 1px solid #e2b7b7; border-radius: 8px; background: #fff9f9; }
.jhac-delete-control summary { color: #8a2f2f; font-size: .82rem; font-weight: 800; cursor: pointer; }
.jhac-delete-control[open] summary { margin-bottom: .45rem; }
.jhac-delete-control form { margin-top: 0; }
.jhac-invoice-total { display: grid; align-content: center; min-height: 86px; padding: .8rem 1rem; color: #174f7a; background: #eef6fc; border: 1px solid #b9d3e7; border-radius: 10px; }
.jhac-invoice-total span { color: #536477; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.jhac-invoice-total strong { margin: .15rem 0; font-size: 1.35rem; }
.jhac-invoice-total small { color: #657487; }
.jhac-template-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.jhac-template-card { display: grid; gap: .85rem; min-width: 0; padding: 1rem; border: 1px solid var(--jhac-line); border-radius: 12px; }
.jhac-template-card legend { padding: 0 .4rem; font-size: 1.05rem; font-weight: 800; }
.jhac-background-control { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: .65rem .75rem; background: #fff8f7; border: 1px solid #ead6d3; border-radius: 8px; }
.jhac-background-control .jhac-button { margin: 0; }
.jhac-layout-editor { min-width: 0; max-width: 100%; padding: .8rem; overflow: hidden; background: #f8fafc; border: 1px solid var(--jhac-line); border-radius: 9px; }
.jhac-layout-editor summary { color: var(--jhac-blue-dark); font-weight: 800; cursor: pointer; }
.jhac-layout-editor[open] summary { margin-bottom: .7rem; }
.jhac-layout-scroll-hint { display: none; margin: .2rem 0 .45rem; color: var(--jhac-muted); font-size: .76rem; font-weight: 700; }
.jhac-layout-table-wrap { max-width: 100%; margin-top: .45rem; padding-bottom: .35rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-gutter: stable both-edges; border: 1px solid #dbe3e9; border-radius: 8px; background: #fff; }
.jhac-layout-table-wrap:focus { outline: 3px solid rgba(31,111,174,.17); outline-offset: 2px; }
.jhac-layout-table { width: 900px; min-width: 900px; margin-top: 0; table-layout: fixed; }
.jhac-layout-table th, .jhac-layout-table td { padding: .38rem .35rem; vertical-align: middle; }
.jhac-layout-table th:nth-child(1), .jhac-layout-table td:nth-child(1) { width: 170px; }
.jhac-layout-table th:nth-child(n+2):nth-child(-n+6), .jhac-layout-table td:nth-child(n+2):nth-child(-n+6) { width: 78px; }
.jhac-layout-table th:nth-child(7), .jhac-layout-table td:nth-child(7) { width: 105px; }
.jhac-layout-table th:nth-child(8), .jhac-layout-table td:nth-child(8) { width: 165px; }
.jhac-layout-table th:nth-child(9), .jhac-layout-table td:nth-child(9) { width: 70px; text-align: center; }
.jhac-layout-table thead th { position: sticky; top: 0; z-index: 2; }
.jhac-layout-table th:first-child, .jhac-layout-table td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 #e0e7ec; }
.jhac-layout-table thead th:first-child { z-index: 3; background: var(--jhac-soft); }
.jhac-layout-table input, .jhac-layout-table select { width: 100%; min-width: 0; padding: .4rem .42rem; font-size: .88rem; }
.jhac-layout-table .jhac-layout-style-select { width: 100%; min-width: 0; font-size: .82rem; }
.jhac-layout-color-input { width: 42px !important; min-width: 42px !important; height: 32px; min-height: 32px; margin-inline: auto; padding: 2px !important; border: 1px solid #aebdca; border-radius: 5px; background: #fff; cursor: pointer; }
@media (max-width: 980px) {
	.jhac-layout-scroll-hint { display: block; }
	.jhac-layout-table-wrap { overflow-x: scroll; }
}
.jhac-signatory-grid { grid-template-columns: repeat(2, minmax(0,1fr)); margin: 1rem 0; }
.jhac-variables { padding: .8rem; overflow-wrap: anywhere; background: var(--jhac-soft); border-radius: 8px; }
.jhac-variables code { display: inline-block; margin: .15rem; }
.jhac-variables code[data-token]::before { content: "{{" attr(data-token) "}}"; }
.jhac-alert { margin: 1rem 0; padding: .85rem 1rem; border-radius: 10px; font-weight: 700; }
.jhac-alert-success { color: #1f613f; background: #e6f5ec; border: 1px solid #b9dfc8; }
.jhac-alert-warning { color: #6b4e12; background: #fff7df; border: 1px solid #ead391; }
.jhac-alert-error, .jhac-danger-card { color: #7c2525; background: #fff3f3; border-color: #e7bcbc; }
.jhac-error-detail { margin: -.45rem 0 1rem; padding: .8rem 1rem; color: #632323; background: #fffafa; border: 1px solid #e7bcbc; border-top: 0; border-radius: 0 0 10px 10px; }
.jhac-error-detail p { margin: .45rem 0 0; }
.jhac-status { display: inline-block; padding: .25rem .52rem; border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.jhac-status-valid { color: #1f613f; background: #dff2e7; }
.jhac-status-revoked { color: #862d2d; background: #f8dddd; }
.jhac-status-reissued { color: #6c4d1b; background: #f7e9c9; }
.jhac-status-integrity_error { color: #862d2d; background: #f8dddd; }
.jhac-status-issued { color: #1f5276; background: #dfedf7; }
.jhac-status-paid { color: #1f613f; background: #dff2e7; }
.jhac-status-waived { color: #4d3c77; background: #ece6fa; }
.jhac-status-overdue { color: #8a5315; background: #f9e9cc; }
.jhac-status-void { color: #862d2d; background: #f8dddd; }
.jhac-privacy-note { margin-bottom: 0; padding: .75rem; color: #5b4b1f; background: #fff7df; border-left: 4px solid #d4ad3c; }
.jhac-hash { word-break: break-all; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .76rem; }

/* Public verification and self-service download portal */
.jhac-standalone-body {
	background:
		radial-gradient(circle at 8% 4%, rgba(31,111,174,.11), transparent 29rem),
		radial-gradient(circle at 92% 18%, rgba(184,143,35,.09), transparent 25rem),
		linear-gradient(180deg, #f7fafc 0%, #eef3f6 100%);
}
.jhac-public-portal { max-width: 1080px; padding-top: 1.25rem; }
.jhac-portal-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.1rem; padding: .65rem .75rem; background: rgba(255,255,255,.88); border: 1px solid rgba(202,214,224,.9); border-radius: 14px; box-shadow: 0 8px 28px rgba(20,42,62,.06); backdrop-filter: blur(12px); }
.jhac-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--jhac-ink); text-decoration: none; }
.jhac-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: linear-gradient(145deg, #173f60, #1f6fae); border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font-size: .92rem; font-weight: 800; letter-spacing: .04em; }
.jhac-brand > span:last-child { display: grid; line-height: 1.05; }
.jhac-brand strong { font-size: 1.08rem; letter-spacing: .02em; }
.jhac-brand small { margin-top: .28rem; color: var(--jhac-muted); font-size: .72rem; }
.jhac-portal-nav { display: flex; align-items: center; gap: .25rem; padding: .25rem; background: #eff4f7; border-radius: 10px; }
.jhac-portal-nav a { padding: .55rem .72rem; color: #41566a; border-radius: 8px; font-size: .84rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.jhac-portal-nav a:hover { color: var(--jhac-blue-dark); background: #fff; }
.jhac-portal-nav a.is-active { color: #fff; background: var(--jhac-blue-dark); box-shadow: 0 5px 14px rgba(23,79,122,.18); }
.jhac-portal-hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.38fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); color: #fff; background: linear-gradient(135deg, #102c43 0%, #174f7a 56%, #226f9f 100%); border-radius: 24px; box-shadow: 0 24px 60px rgba(16,44,67,.2); }
.jhac-portal-hero::after { position: absolute; right: -90px; bottom: -150px; width: 360px; height: 360px; content: ""; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 88px rgba(255,255,255,.025); pointer-events: none; }
.jhac-portal-intro, .jhac-trust-note { position: relative; z-index: 1; }
.jhac-portal-intro h1 { max-width: 720px; margin: .55rem 0 .9rem; color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; }
.jhac-portal-lead { max-width: 700px; margin: 0; color: rgba(255,255,255,.84); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.6; }
.jhac-document-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.jhac-document-chips span { padding: .38rem .65rem; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; font-size: .78rem; font-weight: 700; }
.jhac-trust-note { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; backdrop-filter: blur(8px); }
.jhac-trust-icon { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; color: #123b2c; background: #d7f5e4; border-radius: 50%; font-weight: 900; }
.jhac-trust-note strong { color: #fff; font-size: .98rem; }
.jhac-trust-note p { margin: .25rem 0 0; color: rgba(255,255,255,.75); font-size: .83rem; line-height: 1.45; }
.jhac-lookup-card { position: relative; display: grid; grid-template-columns: minmax(230px,.42fr) minmax(0,1fr); gap: clamp(1.25rem, 4vw, 3rem); margin: -1rem clamp(.6rem, 3vw, 2rem) 0; padding: clamp(1.35rem, 4vw, 2.25rem); background: #fff; border: 1px solid var(--jhac-line); border-radius: 18px; box-shadow: 0 18px 42px rgba(20,42,62,.12); }
.jhac-step-label { margin: 0 0 .35rem; color: var(--jhac-blue); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.jhac-lookup-copy h2 { margin: 0 0 .45rem; font-size: clamp(1.28rem, 3vw, 1.65rem); }
.jhac-lookup-copy p:last-child { margin: 0; color: var(--jhac-muted); line-height: 1.55; }
.jhac-verify-form { display: grid; align-content: center; gap: .45rem; margin: 0; }
.jhac-verify-form > label { color: #3d5062; font-size: .84rem; font-weight: 800; }
.jhac-verify-field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .55rem; }
.jhac-verify-field input { min-height: 48px; padding: .75rem .85rem; background: #f9fbfc; border-color: #aebdca; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; letter-spacing: .02em; text-transform: uppercase; }
.jhac-verify-form > small { color: var(--jhac-muted); font-size: .76rem; line-height: 1.4; }
.jhac-button-primary { min-height: 48px; padding-inline: 1.2rem; }
.jhac-public-result { margin: 1.25rem clamp(.6rem, 3vw, 2rem) 0; overflow: hidden; background: #fff; border: 1px solid #b9d6c5; border-radius: 18px; box-shadow: 0 14px 36px rgba(20,42,62,.09); }
.jhac-public-result.jhac-result-issued, .jhac-public-result.jhac-result-paid, .jhac-public-result.jhac-result-waived, .jhac-public-result.jhac-result-overdue { border-color: #b9cfdf; }
.jhac-public-result.jhac-result-revoked, .jhac-public-result.jhac-result-reissued, .jhac-public-result.jhac-result-void, .jhac-public-result.jhac-result-integrity_error { border-color: #e0b2b2; }
.jhac-result-summary { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 1rem; align-items: start; padding: clamp(1.15rem, 3vw, 1.7rem); background: linear-gradient(90deg, #f0faf4, #fbfdfc); border-bottom: 1px solid #d6e8dd; }
.jhac-result-issued .jhac-result-summary, .jhac-result-paid .jhac-result-summary, .jhac-result-waived .jhac-result-summary, .jhac-result-overdue .jhac-result-summary { background: linear-gradient(90deg, #eff6fb, #fbfdff); border-bottom-color: #d8e5ee; }
.jhac-result-revoked .jhac-result-summary, .jhac-result-reissued .jhac-result-summary, .jhac-result-void .jhac-result-summary, .jhac-result-integrity_error .jhac-result-summary { background: linear-gradient(90deg, #fff1f1, #fffafa); border-bottom-color: #eed1d1; }
.jhac-result-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: #27704a; border-radius: 50%; font-size: 1.1rem; font-weight: 900; box-shadow: 0 6px 15px rgba(39,112,74,.2); }
.jhac-result-revoked .jhac-result-icon, .jhac-result-reissued .jhac-result-icon, .jhac-result-void .jhac-result-icon, .jhac-result-integrity_error .jhac-result-icon { background: #a43a3a; }
.jhac-result-message h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.65rem); }
.jhac-result-message p:last-child { margin: .3rem 0 0; color: var(--jhac-muted); line-height: 1.5; }
.jhac-record-heading { display: flex; justify-content: space-between; gap: 1.25rem; align-items: center; padding: clamp(1.15rem, 3vw, 1.7rem); border-bottom: 1px solid #e4eaf0; }
.jhac-record-heading p { margin: 0 0 .3rem; color: var(--jhac-blue-dark); font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.jhac-record-heading h3 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.7rem); overflow-wrap: anywhere; }
.jhac-record-heading > code { max-width: 46%; padding: .45rem .6rem; overflow-wrap: anywhere; color: #385166; background: #f1f5f8; border-radius: 7px; font-size: .76rem; text-align: right; }
.jhac-public-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; margin: 0; padding: .35rem clamp(1.15rem, 3vw, 1.7rem); }
.jhac-public-details > div { min-width: 0; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid #edf1f4; }
.jhac-public-details > div:nth-child(even):not(.jhac-detail-wide) { padding-left: 1rem; border-left: 1px solid #edf1f4; }
.jhac-public-details .jhac-detail-wide { grid-column: 1 / -1; }
.jhac-public-details dt { margin-bottom: .28rem; color: #667789; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.jhac-public-details dd { margin: 0; overflow-wrap: anywhere; color: #223546; font-size: .95rem; line-height: 1.48; }
.jhac-integrity-details { margin: 1rem clamp(1.15rem, 3vw, 1.7rem); padding: .85rem 1rem; color: #526577; background: #f6f9fb; border: 1px solid #dce5eb; border-radius: 10px; }
.jhac-integrity-details summary { color: #344c60; font-size: .84rem; font-weight: 800; cursor: pointer; }
.jhac-integrity-details p { margin: .65rem 0; font-size: .82rem; line-height: 1.5; }
.jhac-integrity-details .jhac-hash { display: block; padding: .55rem; background: #fff; border-radius: 6px; }
.jhac-download-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: clamp(1.15rem, 3vw, 1.7rem); color: #fff; background: #173f60; }
.jhac-download-panel strong { font-size: 1rem; }
.jhac-download-panel p { margin: .3rem 0 0; color: rgba(255,255,255,.72); font-size: .82rem; }
.jhac-button-download { flex: 0 0 auto; min-height: 44px; color: #173f60 !important; background: #fff; border-color: #fff; }
.jhac-button-download:hover { color: #fff !important; background: transparent; border-color: rgba(255,255,255,.7); }
.jhac-public-result > .jhac-privacy-note { margin: 1rem clamp(1.15rem, 3vw, 1.7rem) clamp(1.15rem, 3vw, 1.7rem); }
.jhac-public-alert { display: flex; gap: .85rem; align-items: flex-start; margin: 1.25rem clamp(.6rem, 3vw, 2rem) 0; padding: 1rem 1.2rem; color: #732c2c; background: #fff5f5; border: 1px solid #e5b9b9; border-radius: 14px; box-shadow: 0 9px 25px rgba(80,30,30,.06); }
.jhac-public-alert > span { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; color: #fff; background: #a43a3a; border-radius: 50%; font-weight: 900; }
.jhac-public-alert p { margin: .25rem 0 0; line-height: 1.5; }
.jhac-portal-footer { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: 1.5rem clamp(.6rem, 3vw, 2rem) 0; padding: 1rem 0; color: var(--jhac-muted); border-top: 1px solid #cfdae2; font-size: .8rem; }
.jhac-portal-footer p { margin: 0; }
.jhac-portal-footer a { color: var(--jhac-blue-dark); font-weight: 800; text-decoration: none; white-space: nowrap; }
.jhac-public-portal a:focus-visible, .jhac-public-portal button:focus-visible, .jhac-public-portal input:focus-visible, .jhac-public-portal summary:focus-visible { outline: 3px solid rgba(31,111,174,.28); outline-offset: 2px; }
.jhac-settings-panel { margin: 1.25rem 0; padding: 1.25rem; background: #f8fafc; border: 1px solid var(--jhac-line); border-radius: 12px; }
.jhac-settings-panel h2, .jhac-settings-panel h3 { margin-top: 0; }
.jhac-settings-panel h3 { margin-top: 1.25rem; }
.jhac-confirmation { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.25rem; padding: 1rem; color: #5b4b1f; background: #fff7df; border: 1px solid #ead391; border-radius: 9px; }
.jhac-verify-switch { margin: 1.4rem 0 0; padding-top: 1rem; text-align: center; border-top: 1px solid var(--jhac-line); }
@media (max-width: 860px) {
	.jhac-hero, .jhac-section-heading, .jhac-result-heading { align-items: stretch; flex-direction: column; }
	.jhac-form-grid, .jhac-form-grid-wide, .jhac-template-grid, .jhac-signatory-grid { grid-template-columns: 1fr; }
	.jhac-field-span-2 { grid-column: auto; }
	.jhac-hero-actions { justify-content: flex-start; }
	.jhac-safe-label { align-self: flex-start; }
	.jhac-portal-hero { grid-template-columns: 1fr; }
	.jhac-trust-note { max-width: 560px; }
	.jhac-lookup-card { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 560px) {
	.jhac-page { padding-inline: .7rem; }
	.jhac-card, .jhac-hero { padding: 1rem; border-radius: 12px; }
	.jhac-lookup-form > div { grid-template-columns: 1fr; }
	.jhac-public-portal { padding-top: .7rem; }
	.jhac-portal-topbar { align-items: stretch; flex-direction: column; padding: .65rem; }
	.jhac-brand { padding-inline: .2rem; }
	.jhac-portal-nav { display: grid; grid-template-columns: 1fr 1fr; }
	.jhac-portal-nav a { display: grid; place-items: center; min-height: 46px; padding: .45rem; text-align: center; white-space: normal; }
	.jhac-portal-hero { padding: 1.5rem 1.15rem 2.1rem; border-radius: 18px; }
	.jhac-portal-intro h1 { font-size: 2.12rem; }
	.jhac-trust-note { padding: .85rem; }
	.jhac-lookup-card { margin-inline: .35rem; padding: 1.1rem; border-radius: 14px; }
	.jhac-verify-field { grid-template-columns: 1fr; }
	.jhac-verify-field input, .jhac-button-primary { min-height: 50px; }
	.jhac-public-result, .jhac-public-alert { margin-inline: .35rem; border-radius: 14px; }
	.jhac-result-summary { grid-template-columns: auto minmax(0,1fr); }
	.jhac-result-summary .jhac-status { grid-column: 2; justify-self: start; }
	.jhac-record-heading { align-items: flex-start; flex-direction: column; }
	.jhac-record-heading > code { max-width: 100%; text-align: left; }
	.jhac-public-details { grid-template-columns: 1fr; }
	.jhac-public-details > div, .jhac-public-details > div:nth-child(even):not(.jhac-detail-wide) { grid-column: 1; padding: .8rem 0; border-left: 0; }
	.jhac-download-panel { align-items: stretch; flex-direction: column; }
	.jhac-button-download { width: 100%; }
	.jhac-portal-footer { align-items: flex-start; flex-direction: column; margin-inline: .35rem; }
}

/* Safe rich-text controls for certificate, LoA, and invoice templates. */
.jhac-rich-field { display: grid; gap: .35rem; min-width: 0; color: #4f5f72; font-weight: 700; }
.jhac-rich-field > label { display: block; cursor: text; }
.jhac-rich-source { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.jhac-rich-editor { position: relative; z-index: 1; display: grid; gap: 0; margin-top: .15rem; overflow: hidden; background: #fff; border: 1px solid #aebdca; border-radius: 8px; }
.jhac-rich-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; min-height: 42px; padding: .4rem .5rem; background: #f5f7f9; border-bottom: 1px solid #d9e1e7; }
.jhac-rich-button { display: inline-grid; place-items: center; min-width: 34px; min-height: 32px; padding: .3rem .55rem; color: #263b4d; background: #fff; border: 1px solid #b9c5cf; border-radius: 5px; font: 700 .84rem/1 Georgia, serif; cursor: pointer; }
.jhac-rich-button:hover, .jhac-rich-button:focus { color: #123f62; background: #eef5fa; border-color: #7fa3bc; }
.jhac-rich-toolbar .jhac-rich-button:nth-child(2) { font-style: italic; }
.jhac-rich-toolbar .jhac-rich-button:nth-child(3) { text-decoration: underline; }
.jhac-rich-color { display: inline-flex; gap: .35rem; align-items: center; min-height: 32px; padding: .25rem .45rem; color: #40586b; background: #fff; border: 1px solid #b9c5cf; border-radius: 5px; font-size: .78rem; font-weight: 700; }
.jhac-rich-color input { width: 28px; height: 24px; min-height: 0; padding: 0; border: 0; cursor: pointer; }
.jhac-rich-surface { position: relative; z-index: 2; display: block; min-height: 132px; max-height: 360px; padding: .8rem .9rem; overflow: auto; color: #111; background: #fff; font-family: Perpetua, Georgia, serif; font-size: 16px; line-height: 1.5; outline: 0; white-space: normal; cursor: text; pointer-events: auto; user-select: text; -webkit-user-select: text; }
.jhac-rich-surface:empty::before { color: #83909b; content: attr(data-placeholder); pointer-events: none; }
.jhac-rich-surface:focus { box-shadow: inset 0 0 0 2px rgba(31,111,174,.18); }
.jhac-rich-surface.jhac-rich-invalid { box-shadow: inset 0 0 0 2px rgba(180,45,45,.5); }
.jhac-rich-surface hr { margin: .8rem 0; border: 0; border-top: 1px solid currentColor; }
.jhac-rich-note { display: block; padding: .45rem .65rem; color: #607385; background: #fbfcfd; border-top: 1px solid #edf1f4; font-size: .74rem; line-height: 1.4; }
@media (max-width: 560px) {
	.jhac-rich-toolbar { gap: .25rem; }
	.jhac-rich-button { min-width: 32px; padding-inline: .4rem; }
	.jhac-rich-surface { min-height: 150px; }
}

/* Full visual certificate layout editor synchronized with PDF millimetres. */
.jhac-visual-layout { display: grid; gap: .75rem; padding: .9rem; background: #f7f8f9; border: 1px solid #d5dde4; border-radius: 10px; }
.jhac-visual-layout-heading { display: grid; gap: .18rem; color: #293d4e; }
.jhac-visual-layout-heading span { max-width: 78ch; color: #667582; font-size: .83rem; font-weight: 400; line-height: 1.45; }
.jhac-visual-toolbar { display: grid; grid-template-columns: minmax(180px, 1.35fr) minmax(150px, .8fr) minmax(115px, .55fr); gap: .65rem; align-items: end; }
.jhac-visual-toolbar label { display: grid; gap: .3rem; margin: 0; color: #405567; font-size: .78rem; font-weight: 700; }
.jhac-visual-toolbar select { width: 100%; min-height: 2.35rem; }
.jhac-visual-toolbar .jhac-visual-snap { display: flex; gap: .5rem; align-items: center; min-height: 2.35rem; padding: .45rem .6rem; background: #fff; border: 1px solid #c7d2da; border-radius: 6px; }
.jhac-visual-toolbar .jhac-visual-snap input { width: auto; min-height: 0; margin: 0; }
.jhac-visual-stage { width: 100%; max-height: 680px; padding: 1rem; overflow: auto; overscroll-behavior: contain; background: #e8edf1; border: 1px solid #c7d1d9; border-radius: 8px; scrollbar-gutter: stable both-edges; }
.jhac-visual-page { position: relative; flex: 0 0 auto; margin-inline: auto; overflow: hidden; touch-action: none; background-color: #fff; background-image: linear-gradient(rgba(61, 89, 109, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(61, 89, 109, .07) 1px, transparent 1px); background-size: 3.37% 4.76%; border: 1px solid #8e9ba5; box-shadow: 0 10px 26px rgba(25, 42, 56, .18); }
.jhac-visual-page::before { position: absolute; inset: 4.5%; z-index: 0; border: 1px dashed rgba(96, 112, 124, .42); content: "Safe margin"; color: rgba(83, 101, 114, .58); font-size: 9px; padding: 3px; pointer-events: none; }
.jhac-visual-element { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; min-width: 16px; min-height: 12px; padding: 2px 4px; overflow: visible; color: #152532; background: rgba(240, 247, 251, .82); border: 1px solid rgba(46, 111, 152, .68); border-radius: 3px; box-sizing: border-box; font-family: Perpetua, Georgia, serif; line-height: 1.12; cursor: move; user-select: none; touch-action: none; transition: box-shadow .12s ease, border-color .12s ease, background .12s ease; }
.jhac-visual-element > span { display: -webkit-box; width: 100%; max-height: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 6; pointer-events: none; }
.jhac-visual-element:hover { border-color: #1f6fae; background: rgba(233, 244, 251, .94); }
.jhac-visual-element:focus { outline: 3px solid rgba(31,111,174,.23); outline-offset: 2px; }
.jhac-visual-element.is-selected { z-index: 4; border: 2px solid #135f96; background: rgba(226, 241, 250, .96); box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 5px 14px rgba(26, 66, 94, .2); }
.jhac-visual-element.is-dragging { z-index: 5; cursor: grabbing; box-shadow: 0 9px 22px rgba(26, 66, 94, .28); }
.jhac-visual-element.is-qr { min-width: 28px; min-height: 28px; padding: 0; background: repeating-conic-gradient(#1d2932 0 25%, #fff 0 50%) 50% / 9px 9px; color: transparent; border-color: #1d2932; }
.jhac-visual-element.is-qr > span { display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.52); font: 700 9px/1 Arial, sans-serif; text-shadow: 0 1px 1px #000; }
.jhac-visual-handle { position: absolute; z-index: 6; width: 11px; height: 11px; display: none; background: #fff; border: 2px solid #135f96; border-radius: 50%; box-sizing: border-box; }
.jhac-visual-element.is-selected .jhac-visual-handle { display: block; }
.jhac-visual-handle.is-nw { left: -6px; top: -6px; cursor: nwse-resize; }
.jhac-visual-handle.is-ne { right: -6px; top: -6px; cursor: nesw-resize; }
.jhac-visual-handle.is-sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.jhac-visual-handle.is-se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.jhac-visual-selected-controls { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(220px, 1.3fr) minmax(120px, .65fr); gap: .65rem; align-items: end; padding: .75rem; background: #fff; border: 1px solid #d3dde4; border-radius: 8px; }
.jhac-visual-selected-controls > strong { align-self: center; color: #25465f; }
.jhac-visual-selected-controls > label { display: grid; gap: .28rem; margin: 0; color: #405567; font-size: .78rem; font-weight: 700; }
.jhac-visual-font { display: grid !important; grid-template-columns: max-content minmax(120px, 1fr) 54px; gap: .55rem !important; align-items: center; }
.jhac-visual-font input { min-height: 0; padding: 0; }
.jhac-visual-font output { text-align: right; font-variant-numeric: tabular-nums; }
.jhac-visual-position { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: .5rem; }
.jhac-visual-position span { display: flex; justify-content: space-between; gap: .4rem; padding: .42rem .55rem; color: #536675; background: #f7f9fa; border: 1px solid #e0e6ea; border-radius: 5px; font-size: .78rem; font-weight: 700; }
.jhac-visual-position output { color: #152c3c; font-variant-numeric: tabular-nums; }
.jhac-visual-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.jhac-preview-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }

@media (max-width: 860px) {
	.jhac-visual-toolbar, .jhac-visual-selected-controls { grid-template-columns: 1fr 1fr; }
	.jhac-visual-toolbar > :first-child, .jhac-visual-selected-controls > strong { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.jhac-visual-toolbar, .jhac-visual-selected-controls { grid-template-columns: 1fr; }
	.jhac-visual-stage { padding: .65rem; max-height: 520px; }
	.jhac-visual-font { grid-template-columns: 1fr 52px; }
	.jhac-visual-font > span, .jhac-visual-font > input { grid-column: 1 / 2; }
	.jhac-visual-font > output { grid-column: 2 / 3; grid-row: 1 / 2; }
	.jhac-visual-position { grid-template-columns: 1fr 1fr; }
}

/* Copy layout controls: values are copied client-side and stored only after Save. */
.jhac-layout-copy-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: flex-end; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid #e2e8ed; }
.jhac-layout-copy-target { display: grid; gap: .25rem; min-width: 13.5rem; margin: 0; font-size: .78rem; font-weight: 700; color: #43515b; }
.jhac-layout-copy-target select { width: 100%; min-height: 2.35rem; }
.jhac-layout-copy-status { flex-basis: 100%; color: #3d5f48; font-size: .82rem; font-weight: 700; }

/* One-at-a-time template editors. Each certificate/document template can be opened or closed independently. */
.jhac-template-accordion { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--jhac-line); border-radius: 12px; }
.jhac-template-accordion + .jhac-template-accordion { margin-top: .85rem; }
.jhac-template-accordion > summary { display: flex; gap: 1rem; align-items: center; justify-content: space-between; min-height: 54px; padding: .85rem 1rem; color: var(--jhac-blue-dark); background: #f7f9fb; cursor: pointer; list-style: none; }
.jhac-template-accordion > summary::-webkit-details-marker { display: none; }
.jhac-template-accordion > summary::after { flex: 0 0 auto; width: 1.9rem; height: 1.9rem; content: "+"; display: grid; place-items: center; border: 1px solid #b8c6d0; border-radius: 50%; font-size: 1.15rem; line-height: 1; }
.jhac-template-accordion[open] > summary { background: #eef4f8; border-bottom: 1px solid var(--jhac-line); }
.jhac-template-accordion[open] > summary::after { content: "−"; }
.jhac-template-accordion > summary strong { font-size: 1rem; }
.jhac-template-accordion > summary span { color: #687988; font-size: .8rem; font-weight: 500; text-align: right; }
.jhac-template-accordion > .jhac-template-card { margin: 0; padding: 1rem; border: 0; border-radius: 0; }
.jhac-template-grid { display: block; }
@media (max-width: 560px) {
	.jhac-template-accordion > summary { align-items: flex-start; }
	.jhac-template-accordion > summary span { display: none; }
}

/* 1.6.3 searchable registry filters and pagination */
.jhac-registry-filters {
	display: grid;
	grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(130px, 1fr));
	gap: .75rem;
	align-items: end;
	margin-top: 1.15rem;
	padding: 1rem;
	background: #f8fafc;
	border: 1px solid var(--jhac-line);
	border-radius: 12px;
}
.jhac-registry-filters label { display: grid; gap: .32rem; min-width: 0; color: #4f5f72; font-size: .84rem; font-weight: 800; }
.jhac-registry-filters .jhac-filter-search { grid-column: span 2; }
.jhac-filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; padding-top: .15rem; }
.jhac-filter-note { margin: .65rem 0 0; color: var(--jhac-muted); font-size: .82rem; line-height: 1.45; }
.jhac-pagination { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1rem; }
.jhac-pagination span { color: #4f5f72; font-weight: 800; }
.jhac-pagination .is-disabled { opacity: .45; pointer-events: none; }
@media (max-width: 1040px) {
	.jhac-registry-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jhac-registry-filters .jhac-filter-search { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.jhac-registry-filters { grid-template-columns: 1fr; }
	.jhac-registry-filters .jhac-filter-search, .jhac-filter-actions { grid-column: 1; }
	.jhac-filter-actions .jhac-button { width: 100%; }
	.jhac-pagination { justify-content: space-between; }
	.jhac-pagination .jhac-button { min-width: 92px; }
}

/* Live accepted-manuscript assistance for APC invoice creation. */
.jhac-submission-assist {
	align-self: stretch;
	padding: 1rem 1.05rem;
	background: #f8fafc;
	border: 1px solid var(--jhac-line);
	border-left: 4px solid #8fa1b2;
	border-radius: 10px;
	transition: border-color .18s ease, background-color .18s ease;
}
.jhac-submission-assist.is-loading { background: #f4f8fb; border-left-color: var(--jhac-blue); }
.jhac-submission-assist.is-valid { background: #f2faf5; border-color: #bddfc9; border-left-color: #2d7b4f; }
.jhac-submission-assist.is-warning { background: #fff9ed; border-color: #ead69d; border-left-color: #a87916; }
.jhac-submission-assist.is-invalid { background: #fff5f5; border-color: #e6bcbc; border-left-color: #a43a3a; }
.jhac-submission-assist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.jhac-submission-assist-head strong { display: block; color: var(--jhac-ink); font-size: 1rem; }
.jhac-submission-assist-head p { margin: .25rem 0 0; color: var(--jhac-muted); line-height: 1.45; }
.jhac-submission-assist-badge { flex: 0 0 auto; padding: .3rem .58rem; color: #4b5d6e; background: #e9eef2; border-radius: 999px; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.jhac-submission-assist.is-loading .jhac-submission-assist-badge { color: #174f7a; background: #dcecf7; }
.jhac-submission-assist.is-valid .jhac-submission-assist-badge { color: #246143; background: #dcefe4; }
.jhac-submission-assist.is-warning .jhac-submission-assist-badge { color: #73520e; background: #f5e7b9; }
.jhac-submission-assist.is-invalid .jhac-submission-assist-badge { color: #842f2f; background: #f3dada; }
.jhac-submission-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; margin: .9rem 0 0; padding-top: .2rem; border-top: 1px solid rgba(91,111,129,.18); }
.jhac-submission-details > div { min-width: 0; padding: .75rem .8rem .55rem 0; border-bottom: 1px solid rgba(91,111,129,.13); }
.jhac-submission-details > div:nth-child(even) { padding-left: .8rem; border-left: 1px solid rgba(91,111,129,.13); }
.jhac-submission-details .jhac-submission-title { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
.jhac-submission-details dt { margin-bottom: .22rem; color: #667789; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.jhac-submission-details dd { margin: 0; overflow-wrap: anywhere; color: #233647; font-size: .95rem; line-height: 1.42; }
.jhac-submission-details .jhac-submission-title dd { font-size: 1.02rem; font-weight: 800; }
@media (max-width: 700px) {
	.jhac-submission-assist-head { align-items: stretch; flex-direction: column; }
	.jhac-submission-assist-badge { align-self: flex-start; }
	.jhac-submission-details { grid-template-columns: 1fr; }
	.jhac-submission-details > div, .jhac-submission-details > div:nth-child(even), .jhac-submission-details .jhac-submission-title { grid-column: 1; padding-left: 0; border-left: 0; }
}
.jhac-submission-details[hidden] { display: none !important; }

/* 1.6.5 manager email delivery controls */
.jhac-email-control {
	display: block;
	min-width: 0;
	max-width: 520px;
	margin-top: .35rem;
	text-align: left;
}
.jhac-email-control > summary,
.jhac-email-history > summary {
	cursor: pointer;
	color: #244d6a;
	font-size: .82rem;
	font-weight: 800;
	list-style-position: inside;
}
.jhac-email-control > summary {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: .38rem .65rem;
	background: #eef4f8;
	border: 1px solid #b8c8d4;
	border-radius: 7px;
}
.jhac-email-control[open] > summary { margin-bottom: .55rem; background: #e6f0f6; }
.jhac-email-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: .65rem;
	width: min(500px, calc(100vw - 5rem));
	max-width: 100%;
	padding: .85rem;
	background: #fbfcfd;
	border: 1px solid var(--jhac-line);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(29, 50, 68, .08);
}
.jhac-email-form label { display: grid; gap: .3rem; min-width: 0; color: #43566a; font-size: .8rem; font-weight: 800; }
.jhac-email-form input[type="text"],
.jhac-email-form input[type="email"],
.jhac-email-form textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.jhac-email-form textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.jhac-email-recipient,
.jhac-email-sender,
.jhac-email-attachment,
.jhac-email-last { margin: 0; color: #465a6c; font-size: .82rem; line-height: 1.5; overflow-wrap: anywhere; }
.jhac-email-missing { color: #9a3f3f; font-weight: 800; }
.jhac-email-mode { display: flex; flex-wrap: wrap; gap: .5rem .9rem; padding: .55rem .65rem; background: #f3f6f8; border-radius: 8px; }
.jhac-email-mode label { display: inline-flex; align-items: center; gap: .38rem; margin: 0; font-size: .8rem; }
.jhac-email-manual.is-inactive { opacity: .55; }
.jhac-email-last-sent { padding: .55rem .65rem; color: #215c3c; background: #edf8f1; border-left: 3px solid #3b8a5c; border-radius: 6px; }
.jhac-email-last-failed { padding: .55rem .65rem; color: #853737; background: #fff2f2; border-left: 3px solid #ad4a4a; border-radius: 6px; }
.jhac-email-history { padding: .55rem .65rem; background: #f6f8fa; border-radius: 8px; }
.jhac-email-history ol { display: grid; gap: .5rem; margin: .55rem 0 0; padding-left: 1.25rem; }
.jhac-email-history li { padding-left: .15rem; color: #42566a; font-size: .78rem; line-height: 1.35; overflow-wrap: anywhere; }
.jhac-email-history li span,
.jhac-email-history li small { display: block; }
.jhac-email-history li small { margin-top: .12rem; color: #6a7b8b; }
.jhac-email-history-sent strong { color: #267248; }
.jhac-email-history-failed strong { color: #9b3e3e; }
.jhac-email-form > .jhac-button { justify-self: start; }
@media (max-width: 640px) {
	.jhac-email-form { width: min(100%, calc(100vw - 2.5rem)); padding: .7rem; }
	.jhac-email-mode { flex-direction: column; }
	.jhac-email-form > .jhac-button { width: 100%; }
}

/* v1.6.6 certificate typography and vertical journal identity */
.jhac-visual-element.is-vertical {
	min-width: 12px;
	min-height: 70px;
	padding: 4px 1px;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	letter-spacing: .02em;
}
.jhac-visual-element[data-element-kind="vertical-left"] > span { transform: rotate(180deg); }
.jhac-visual-selected-controls { grid-template-columns: minmax(145px,.8fr) minmax(210px,1.25fr) minmax(115px,.65fr) minmax(155px,.8fr); }
@media (max-width: 1100px) {
	.jhac-visual-selected-controls { grid-template-columns: 1fr 1fr; }
	.jhac-visual-selected-controls > strong { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
	.jhac-visual-selected-controls { grid-template-columns: 1fr; }
}


/* v1.6.7 per-element certificate colour controls */
.jhac-visual-color { grid-template-columns: minmax(0, 1fr) 44px; align-items: center; }
.jhac-visual-color input[type="color"] { width: 44px; height: 34px; min-height: 34px; padding: 2px; border: 1px solid #aebdca; border-radius: 5px; background: #fff; cursor: pointer; }
