@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Kufi+Arabic:wght@400;600;700;800&display=swap');

:root {
  --green: #009541;
  --deep: #063B29;
  --orange: #F28D2C;
  --lime: #A4C636;
  --cream: #FFF7E8;
  --mint: #E9F8ED;
  --paper: #FFFFFF;
  --ink: #17352A;
  --muted: #63776C;
  --line: #D9E5DD;
  --danger: #A52F2B;
  --shadow: 0 18px 38px rgba(6, 59, 41, .075);
  --portal-hero-min-height: 180px;
  --portal-hero-padding-top: 20px;
  --portal-hero-padding-inline: 32px;
  --portal-hero-breadcrumb-track: 30px;
  --portal-hero-action-width: 168px;
  --portal-hero-action-height: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; min-height: 100vh; flex-direction: column; margin: 0; background: #fff; color: var(--ink); font: 15px/1.58 Inter, Arial, sans-serif; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .16s ease, text-decoration-color .16s ease; }
a:hover, a:focus { color: var(--orange); }
.shell { width: min(1220px, calc(100% - 48px)); margin: 0 auto; }

/* Aqaba Vegetable Oils public-site frame */
.site-utility { display: flex; min-height: 42px; background: #063F26; color: #EAFFF0; font-size: 13.4px; font-weight: 800; }
.site-utility .utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 42px; }
.utility-left, .utility-right { display: flex; align-items: center; }
.utility-left { gap: 24px; }
.utility-left a { display: inline-flex; align-items: center; }
.utility-portal { display: inline-flex; align-items: center; color: #EAFFF0; }
.utility-account { gap: 0; white-space: nowrap; }
.utility-user { color: rgba(234, 255, 240, .9); font-weight: 700; }
.utility-account a { font-weight: 800; }
.site-utility a { color: #EAFFF0; text-decoration: none; }
.site-utility a:hover, .site-utility a:focus { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.utility-separator { margin: 0 8px; color: rgba(234, 255, 240, .86); }
.utility-arrow { display: inline-block; margin-left: 5px; font-size: 17px; line-height: 0; transform: translateY(1px); }
.utility-menu { position: relative; }
.utility-menu summary { display: inline-flex; align-items: center; gap: 7px; list-style: none; color: #EAFFF0; cursor: pointer; font: inherit; font-weight: 800; }
.utility-menu summary::-webkit-details-marker { display: none; }
.utility-menu summary::after { margin-left: 1px; color: rgba(234, 255, 240, .86); content: '⌄'; font-size: 15px; line-height: 1; transition: transform .16s ease; }
.utility-menu[open] summary::after { transform: rotate(180deg); }
.utility-menu summary:hover, .utility-menu summary:focus { color: #fff; outline: 0; text-decoration: underline; text-underline-offset: 3px; }
.utility-queue-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1; }
.utility-dropdown { position: absolute; z-index: 50; top: calc(100% + 11px); right: 0; width: min(398px, calc(100vw - 28px)); overflow: hidden; border: 1px solid rgba(6, 59, 41, .13); border-radius: 14px; box-shadow: 0 18px 36px rgba(6, 59, 41, .22); background: #fff; color: var(--ink); }
.utility-dropdown::before { position: absolute; top: -13px; right: 0; left: 0; height: 13px; content: ''; }
.utility-queue-dropdown { padding: 8px; }
.utility-queue-title { margin: 5px 8px 7px; color: var(--deep); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.utility-dropdown .utility-queue-item { display: block; padding: 10px 11px; color: var(--deep); text-decoration: none; white-space: normal; }
.utility-dropdown .utility-queue-item strong { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 800; line-height: 1.3; }
.utility-dropdown .utility-queue-item span { display: block; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.utility-dropdown .utility-queue-item:hover, .utility-dropdown .utility-queue-item:focus { border-radius: 8px; background: #F4FAF5; color: var(--green); text-decoration: none; }
.utility-dropdown .utility-queue-item:hover span, .utility-dropdown .utility-queue-item:focus span { color: var(--green); }
.utility-queue-empty { margin: 0; padding: 13px 11px; color: var(--muted); font-size: 12px; font-weight: 600; }
.utility-queue-more { display: block; margin: 7px 11px 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.utility-dropdown .utility-dropdown-all { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; border-top: 1px solid rgba(6, 59, 41, .18); padding: 13px 11px 7px; color: var(--orange); font-size: 12px; font-weight: 800; text-decoration: none; }
.utility-dropdown .utility-dropdown-all:hover, .utility-dropdown .utility-dropdown-all:focus { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.site-header { background: rgba(255, 255, 255, .94); border-bottom: 1px solid rgba(0, 149, 65, .09); box-shadow: 0 10px 34px rgba(3, 45, 26, .06); }
.header-row { min-height: 104px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; color: var(--deep); text-decoration: none; flex: 0 0 auto; }
.brand:hover, .brand:focus { color: var(--deep); }
.brand-mark, .footer-logo-frame { display: block; }
.brand-mark { width: 178px; height: 86px; }
.brand-mark img { display: block; width: 178px; height: 86px; object-fit: contain; }
.portal-name { margin: 0; border-left: 1px solid rgba(0, 149, 65, .22); padding-left: 28px; color: var(--deep); font-size: 21px; font-weight: 800; letter-spacing: -.035em; line-height: 1.16; }
.primary-nav { display: flex; align-items: center; flex: 1 1 auto; justify-content: flex-end; gap: 25px; margin-left: auto; }
.primary-nav a { color: #153225; font-size: 18px; font-weight: 800; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a:focus { color: var(--green); }
.nav-menu { position: relative; flex: 0 0 auto; }
.nav-menu summary { position: relative; display: flex; align-items: center; list-style: none; color: #153225; cursor: pointer; font-size: 18px; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::before { position: absolute; right: 0; bottom: -18px; left: 0; height: 3px; background: var(--orange); content: ''; opacity: 0; transition: opacity .16s ease; }
.nav-menu[open] summary, .nav-menu summary:hover, .nav-menu summary:focus { color: var(--green); outline: 0; }
.nav-menu[open] summary::before, .nav-menu summary:hover::before, .nav-menu summary:focus::before { opacity: 1; }
.nav-dropdown { position: absolute; z-index: 20; top: calc(100% + 10px); left: 50%; min-width: 190px; transform: translateX(-50%); border: 1px solid rgba(6, 59, 41, .07); border-radius: 17px; box-shadow: 0 18px 36px rgba(6, 59, 41, .16); background: #fff; padding: 8px; }
.nav-dropdown::before { position: absolute; top: -14px; right: -14px; left: -14px; height: 14px; content: ''; }
.nav-menu:last-child .nav-dropdown { right: 0; left: auto; transform: none; }
.nav-dropdown a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 13px; color: var(--deep); font-size: 14px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; white-space: normal; }
.nav-dropdown a::after { content: '›'; color: #5E796C; font-size: 19px; font-weight: 500; line-height: 1; }
.nav-dropdown a:hover, .nav-dropdown a:focus { border-radius: 9px; background: #F4FAF5; color: var(--green); }
.nav-dropdown a:hover::after, .nav-dropdown a:focus::after { color: var(--green); }
.nav-dropdown .nav-dropdown-all { margin-top: 7px; border-top: 1px solid rgba(6, 59, 41, .18); border-radius: 0; padding-top: 15px; color: var(--orange); }
.nav-dropdown .nav-dropdown-all::after { color: var(--orange); }
.nav-dropdown .nav-dropdown-all:hover, .nav-dropdown .nav-dropdown-all:focus { border-radius: 9px; background: #FFF6ED; color: var(--orange); }
.nav-dropdown .nav-dropdown-all:hover::after, .nav-dropdown .nav-dropdown-all:focus::after { color: var(--orange); }
.nav-dropdown .nav-dropdown-admin-first { margin-top: 7px; border-top: 1px solid rgba(6, 59, 41, .18); border-radius: 0; padding-top: 15px; }
.user-nav { display: flex; align-items: center; gap: 12px; padding-left: 19px; border-left: 1px solid rgba(0, 149, 65, .16); color: #5D766A; font-size: 12px; font-weight: 700; white-space: nowrap; }
.user-nav a { text-decoration: none; font-weight: 800; }
.user-nav .sign-out { color: var(--deep); }
.user-nav .sign-out:hover, .user-nav .sign-out:focus { color: var(--green); }

.content { min-height: 58vh; flex: 1 0 auto; padding: 45px 0 76px; background: linear-gradient(180deg, #fff 0, #fff 350px, #F9FBF9 100%); }
.site-breadcrumb { margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.site-breadcrumb a { color: var(--green); text-decoration: none; font-weight: 600; }
.site-breadcrumb a:hover, .site-breadcrumb a:focus { color: var(--orange); }
.portal-intro { max-width: 725px; margin: 0 auto 25px; }
.portal-intro h1 { max-width: 650px; }
.portal-intro .subtle { max-width: 620px; }
.auth-hero { align-items: flex-start; margin-bottom: 30px; }
.auth-hero > div { width: 100%; max-width: none; }
.auth-login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 540px); align-items: stretch; gap: 26px; margin: 0 auto -30px; }
.auth-login-landing { margin-top: 4px; }
.account-password-layout { margin-top: 4px; }
.auth-showcase { display: flex; min-height: 0; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--green); padding: 31px 34px 26px; background: linear-gradient(145deg, #F7FBF8 0%, #E9F8ED 100%); box-shadow: var(--shadow); }
.auth-showcase h2 { margin-bottom: 8px; }
.auth-showcase p { color: var(--muted); }
.auth-showcase .eyebrow { color: var(--green); }
.auth-carousel { margin: 18px 0 15px; }
.auth-slides { position: relative; height: 255px; overflow: hidden; }
.auth-slide { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; opacity: 0; pointer-events: none; transform: translateX(16px); transition: opacity .4s ease, transform .4s ease; }
.auth-slide.is-active { opacity: 1; pointer-events: auto; transform: translateX(0); }
.auth-slide img { display: block; width: min(78%, 285px); height: 245px; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(6, 59, 41, .18)); }
.auth-carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-carousel-button { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(0, 149, 65, .33); border-radius: 50%; background: #fff; color: var(--green); cursor: pointer; font: 800 21px/1 Inter, Arial, sans-serif; transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease; }
.auth-carousel-button:hover, .auth-carousel-button:focus-visible { border-color: var(--orange); background: var(--orange); color: #fff; outline: 0; transform: translateY(-1px); }
.auth-carousel-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.auth-showcase-caption { margin: 0; color: var(--deep) !important; font-size: 13px; font-weight: 700; }
.email-local-input { display: flex; align-items: stretch; width: 100%; border: 1px solid #B7CFC0; background: #fff; transition: border-color .16s, box-shadow .16s; }
.email-local-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 149, 65, .13); }
.email-local-input input { min-width: 0; border: 0; box-shadow: none; }
.email-local-input input:focus { border: 0; box-shadow: none; }
.email-local-input span { display: flex; align-items: center; border-left: 1px solid #D9E5DD; padding: 0 13px; background: #F7FAF8; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.hero-copy { width: 100%; text-align: justify; text-align-last: left; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.form-references { margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; line-height: 1.35; text-transform: uppercase; }
h1, h2, h3, h4 { color: var(--deep); letter-spacing: -.035em; }
h1 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 42px); font-weight: 800; line-height: 1.13; }
h2 { margin: 0 0 13px; font-size: 24px; font-weight: 800; line-height: 1.2; }
h3 { margin: 30px 0 13px; font-size: 16px; font-weight: 800; letter-spacing: -.015em; }
h4 { margin: 0 0 13px; font-size: 13px; }
p { margin: 0 0 16px; }
.subtle { color: var(--muted); }
.flash { margin: 0 0 24px; border-left: 4px solid var(--green); padding: 13px 17px; background: var(--mint); color: var(--deep); }
.flash.error { border-left-color: var(--danger); background: #FFF1F0; color: #742824; }
.notice { margin: 20px 0; border-left: 4px solid var(--orange); padding: 14px 16px; background: var(--cream); color: #634516; }
.card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); box-shadow: var(--shadow); padding: 32px; }
/* Shared template rhythm for ordinary top-level sections. Page-specific
   spacing remains free to override this zero-specificity default. */
:where(.shell > .card + .card) { margin-top: 24px; }
.auth-card { width: min(100%, 540px); margin: 0 auto; border-top-color: var(--orange); }
.authenticator-card { text-align: left; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
/* Keep controlled Bench Sheet labels visually consistent whether the field is
   an editable input, an automatic calibration checkbox, or a fixed method
   value.  In particular, C.1/C.2 use the same label font as Balance ID. */
.field label, .field .field-label { color: var(--deep); font-size: 13px; font-weight: 700; }
.field .error { color: var(--danger); font-size: 12px; }
input, select, textarea { width: 100%; border: 1px solid #B7CFC0; border-radius: 0; padding: 12px 13px; background: #fff; color: var(--ink); font: inherit; transition: border-color .16s, box-shadow .16s; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 0; box-shadow: 0 0 0 3px rgba(0, 149, 65, .13); }
textarea { min-height: 96px; resize: vertical; }
button, input, select, textarea { font-family: inherit; }
/* Portal-wide action language: green = save/print/apply, orange =
   create/submit/approve/authorise/send, outlined = back/cancel/download/PDF,
   and red = destructive/void. Keep every form on this shared system. */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--green); border-radius: 0; padding: 10px 17px; background: var(--green); color: #fff; cursor: pointer; font-size: 13px; font-weight: 800; text-decoration: none; transition: background .16s, border-color .16s, color .16s; }
.button:hover, .button:focus { border-color: var(--orange); background: var(--orange); color: #fff; }
.button.secondary { border-color: var(--green); background: #fff; color: var(--deep); }
.button.secondary:hover, .button.secondary:focus { border-color: var(--green); background: var(--green); color: #fff; }
.button.orange { border-color: var(--orange); background: var(--orange); }
.button.orange:hover, .button.orange:focus { border-color: #D7751F; background: #D7751F; }
.button.danger { border-color: var(--danger); background: var(--danger); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.certificate-action-row { align-items: center; }
.certificate-action-row form { display: inline-flex; align-items: center; margin: 0; }
.table-actions { margin-top: 0; }
.text-button { margin-top: 8px; border: 0; padding: 0; background: transparent; color: var(--green); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover, .text-button:focus { color: var(--orange); }

.dashboard-head { display: block; height: auto; min-height: var(--portal-hero-min-height); margin-bottom: 27px; overflow: visible; border-top: 5px solid var(--deep); border-bottom: 1px solid var(--line); padding: var(--portal-hero-padding-top) var(--portal-hero-padding-inline) 20px; background: var(--mint); }
/* One desktop hero geometry for every portal overview and landing page. */
.portal-hero-content { display: grid; grid-template-rows: var(--portal-hero-breadcrumb-track) auto auto; align-content: start; width: 100%; min-width: 0; }
.portal-hero .site-breadcrumb { height: 19px; margin: 0; overflow: hidden; line-height: 19px; text-overflow: ellipsis; white-space: nowrap; }
.portal-hero-title-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0 16px; min-width: 0; }
.portal-hero-title-row h1 { flex: 0 1 auto; min-width: 0; margin: 0 0 10px; }
.portal-hero-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px; margin: 0 0 10px auto; }
/* All hero actions share one controlled footprint, regardless of their label. */
.portal-hero-actions .button {
  width: var(--portal-hero-action-width);
  min-width: var(--portal-hero-action-width);
  height: var(--portal-hero-action-height);
  min-height: var(--portal-hero-action-height);
  margin: 0;
  padding-inline: 12px;
  white-space: nowrap;
}
.portal-hero .subtle { width: 100%; max-width: none; margin: 0; text-align: justify; text-align-last: left; text-justify: inter-word; }
/* Legacy class aliases keep any existing portal extension on the shared layout. */
.dashboard-title-row, .heading-action-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0 16px; min-width: 0; }
.dashboard-title-row h1, .heading-action-row h1 { margin: 0 0 10px; }
.dashboard-head .button-row { margin: 0; min-width: 0; justify-content: flex-start; }
.dashboard-head .dashboard-actions { flex: 0 0 auto; align-items: center; }
.landing-card { margin-bottom: 28px; }
.approval-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 3px; color: var(--deep); font-size: 13px; font-weight: 700; }
.approval-check input { width: auto; min-width: 16px; margin-top: 3px; accent-color: var(--green); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 28px; }
.stat { border: 1px solid var(--line); border-top: 3px solid var(--green); padding: 20px; background: #fff; color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-bottom: 7px; color: var(--deep); font-size: 31px; font-weight: 800; line-height: 1; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 13px 11px; text-align: left; vertical-align: top; }
.table th { background: var(--deep); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.table td a { font-weight: 700; }
.inline-admin-form { display: grid; grid-template-columns: minmax(170px, 1fr) 150px auto; gap: 7px; align-items: center; }
.inline-admin-form input, .inline-admin-form select { min-width: 0; padding: 9px 10px; font-size: 12px; }
.inline-admin-form .button { min-height: 37px; padding: 7px 10px; }
.status { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.status.draft { background: #FFF1D8; color: #875A05; }
.status.pending { background: #fff1d8; color: #875a05; }
.status.review { background: #e5efff; color: #164b8f; }
.status.returned { background: #ffe3e1; color: #92261e; }
.status.issued, .status.checked { background: #E2F5E9; color: #00652E; }
.status.void { background: #FFE3E1; color: #92261E; }
.status.roadmap-pending, .status.roadmap-mixed { background: #FFF1D8; color: #875A05; }
.status.roadmap-staged { background: #E2F5E9; color: #00652E; }
.status.roadmap-hold { background: #EDF1EF; color: #52645B; }
.notification-history-card { margin-top: 24px; }

.archive-shortcut { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.archive-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.archive-shortcut { margin-top: 24px; align-items: center; }
.archive-shortcut > div { min-width: 0; }
.archive-shortcut > .button {
  flex: 0 0 auto;
  width: auto;
  min-width: 205px;
  min-height: 44px;
  height: 44px;
  align-self: center;
  padding-inline: 18px;
  white-space: nowrap;
  line-height: 1.1;
}
.archive-filter { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.archive-filter .button-row { grid-column: 1 / -1; }
.archive-filter + .workspace-stats { margin-top: 24px; }
.certificate-archive-table { margin-top: 24px; }
.archive-actions { display: flex; flex-wrap: wrap; gap: 7px; min-width: 190px; }
.archive-action { padding: 7px 10px; font-size: 12px; }
.archive-type { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #4A5966; }
.archive-void-reason { color: #92261E; font-size: 12px; }

@media (max-width: 760px) {
  .archive-shortcut, .archive-table-heading, .archive-filter { display: block; }
  .archive-shortcut .button { width: auto; min-width: 0; height: auto; margin-top: 16px; white-space: normal; }
  .archive-filter form { margin-top: 20px; }
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.form-grid .wide, .form-grid .full { grid-column: 1 / -1; }
.test-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; border-top: 3px solid var(--lime); padding: 22px; background: var(--mint); }
.inline-options { display: flex; align-items: center; gap: 20px; margin: 7px 0 16px; }
.inline-options label { display: flex; align-items: center; gap: 7px; }
.inline-options input { width: auto; accent-color: var(--green); }
.section-rule { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.authorisation-lock { min-height: 74px; border: 1px solid #E1C98A; border-left: 4px solid var(--orange); padding: 13px 15px; background: var(--cream); color: #654A1C; }
.authorisation-lock strong { display: block; margin-bottom: 4px; color: var(--deep); font-size: 14px; }
.authorisation-lock span { display: block; font-size: 12px; line-height: 1.45; }

.calculation-card { margin-top: 24px; border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: 24px; background: #fff; }
.calculation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.calculation-heading > div:first-child { flex: 1 1 auto; min-width: 0; }
.calculation-heading h3 { margin: 0 0 7px; }
.calculation-heading .subtle { max-width: none; margin: 0; text-align: justify; text-justify: inter-word; }
.bench-method-link { flex: 0 0 auto; min-height: 36px; margin: 2px 0 0 auto; padding: 7px 11px; white-space: nowrap; }
.formula { flex: 0 0 auto; padding: 9px 12px; background: var(--cream); border-left: 3px solid var(--orange); color: #5C4317; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.replicate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.replicate { border-top: 3px solid var(--lime); padding: 18px; background: var(--mint); }
.replicate h4 { margin: 0 0 14px; color: var(--deep); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.replicate .field { margin-bottom: 12px; }
.calculation-static { display: flex; align-items: center; gap: 8px; min-height: 47px; border: 1px solid #B9CDC0; padding: 12px 13px; background: #F7FAF8; color: var(--deep); font-weight: 700; }
.calculation-static span { color: var(--muted); font-size: 12px; font-weight: 400; }
.calculation-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 16px; border: 1px solid var(--line); background: var(--line); }
.calculation-summary > div { padding: 13px 14px; background: #fff; }
.calculation-summary > div > span, .calculation-label { display: block; margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.calculation-label { display: flex; align-items: center; gap: 6px; }
.calculation-summary output { display: block; margin-top: 4px; color: var(--deep); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.calculation-summary--one { grid-template-columns: 1fr; }
.calculation-summary--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calculation-summary--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.formula-help-wrap { position: relative; display: inline-flex; flex: 0 0 auto; vertical-align: middle; }
.formula-help { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; padding: 0; border: 1px solid var(--orange); border-radius: 50%; background: #fff; color: var(--orange); cursor: help; font-family: Georgia, serif; font-size: 12px; font-style: italic; font-weight: 700; line-height: 1; text-transform: none; }
.formula-help:hover, .formula-help:focus-visible { border-color: var(--deep); background: var(--orange); color: #fff; outline: none; }
.formula-help:focus-visible { box-shadow: 0 0 0 3px rgba(242, 141, 44, .28); }
.formula-tooltip { position: absolute; z-index: 30; top: calc(100% + 8px); left: 50%; display: none; width: max-content; max-width: min(360px, calc(100vw - 72px)); padding: 10px 12px; transform: translateX(-50%); border: 1px solid #C98A31; border-radius: 3px; background: #FFF9ED; box-shadow: 0 10px 24px rgba(18, 61, 39, .16); color: #4E3611; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.45; text-align: left; text-transform: none; white-space: normal; }
.formula-tooltip strong { display: block; margin-bottom: 3px; color: var(--deep); font-family: inherit; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.formula-help-wrap:hover .formula-tooltip, .formula-help-wrap:focus-within .formula-tooltip { display: block; }

.bench-form { border-top-color: var(--orange); }
.bench-sampling-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bench-sampling-grid .appearance-field { grid-column: 1 / -1; }
/* Section A signature fields must use the same visual control height whether
   the value is automatic (Done by) or selected for approval. */
.bench-signature-field .calculation-static,
.bench-signature-field select { height: 50px; min-height: 50px; }
.bench-test-card { margin-top: 24px; border: 1px solid var(--line); border-top: 3px solid var(--lime); padding: 24px; background: #fff; }
.bench-test-card h3 { margin: 0 0 18px; }
.bench-test-card.optional { border-top-color: #B9CDC0; background: #F9FBFA; }
.bench-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 12px; }
.bench-section-heading h3 { margin: 0; }
.bench-section-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 24px; margin-left: auto; }
.bench-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; border-top: 3px solid var(--lime); padding: 20px; background: var(--mint); }
.bench-checks-control { margin: 0; }
.bench-section-reference { color: var(--green); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bench-section-reference:hover, .bench-section-reference:focus-visible { color: var(--orange); }
.bench-sample-approval { margin-top: 18px; }
.bench-check { display: flex; align-items: flex-start; gap: 8px; color: var(--deep); font-size: 13px; font-weight: 650; }
.bench-check input { width: auto; min-width: 16px; margin-top: 3px; accent-color: var(--green); }
.bench-check + .error { display: block; grid-column: 1 / -1; margin-top: -7px; color: var(--danger); font-size: 12px; }
.controlled-readonly { background: #F1F6F3 !important; color: #385B48; }

/* QF FS 04 01 equipment register: out-of-use IDs are omitted from the Bench
   Sheet; active but not-calibrated IDs remain visible as unavailable. */
.equipment-field .equipment-register-note { display: block; margin-top: -2px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.equipment-field .equipment-register-note strong { color: var(--danger); }
.equipment-select option:disabled,
.equipment-select option.equipment-option-unavailable { color: var(--danger); background: #FFF1F0; font-weight: 700; }
.equipment-select:has(option:checked:disabled) { border-color: var(--danger); background: #FFF8F7; color: var(--danger); }

/* Controlled Instrument Register: the live source for future Bench Sheet
   selectors. The availability wording mirrors the red disabled options in
   the Bench Sheet itself. */
.instrument-register-notice { margin-bottom: 24px; }
.instrument-register-table td { vertical-align: middle; }
.instrument-register-table th { vertical-align: middle; }
.screen-reader-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.table-sort-button { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; font-weight: inherit; line-height: inherit; text-align: left; }
.table-sort-button::after { color: var(--green); content: '↕'; font-size: 13px; font-weight: 900; line-height: 1; }
.table-sort-button[data-sort-direction="ascending"]::after { content: '↑'; }
.table-sort-button[data-sort-direction="descending"]::after { content: '↓'; }
.table-sort-button:hover, .table-sort-button:focus-visible { color: var(--green); outline: none; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.instrument-status,
.instrument-availability {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}
.instrument-status.operational-in-use,
.instrument-status.calibration-calibrated,
.instrument-availability.available { background: #E9F8ED; color: #0B6A39; }
.instrument-status.calibration-not-calibrated,
.instrument-status.operational-out-of-use,
.instrument-availability.unavailable { background: #FFF1F0; color: var(--danger); }
.instrument-status.calibration-not-applicable { background: #F0F4F1; color: #486153; }
.instrument-availability.not-linked { background: #F0F4F1; color: #486153; white-space: normal; }
.instrument-editor .field-help strong { color: #0B6A39; }

.report-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.controlled-register-direct-entry + .controlled-register-controls { margin-top: 28px; }
.controlled-register-request-actions { flex: 0 0 auto; margin-top: 0; }
.register-change-requests-button { min-width: max-content; white-space: nowrap; }
.report-id { color: var(--deep); font-size: 19px; font-weight: 800; }
.verify-link { overflow-wrap: anywhere; font-size: 13px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
.certificate-preview { margin-top: 24px; border: 1px solid var(--line); padding: 22px; background: #fff; }
.certificate-preview iframe { display: block; width: 100%; height: 720px; border: 0; }
.summary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0; border: 1px solid var(--line); }
.summary-list div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 15px; }
.summary-list div:nth-child(2n) { border-right: 0; }
.summary-list div:nth-last-child(-n+2) { border-bottom: 0; }
.summary-list span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.summary-list strong { color: var(--deep); }

.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 28px; }
.document-card { display: flex; min-height: 174px; flex-direction: column; align-items: flex-start; justify-content: space-between; border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: 23px; background: #fff; box-shadow: var(--shadow); color: var(--deep); text-decoration: none; }
.document-card:hover, .document-card:focus { border-top-color: var(--green); color: var(--deep); transform: translateY(-2px); }
.document-card strong { max-width: 330px; font-size: 21px; line-height: 1.22; letter-spacing: -.03em; }
.document-card > span:last-child { color: var(--green); font-size: 13px; font-weight: 800; }
.document-card b { margin-left: 4px; font-size: 17px; }

/* Company Resources mirrors the clean card hierarchy used by the public
   AVO Media Center while keeping all external tools clearly identifiable. */
.resource-section { margin-bottom: 36px; }
.portal-page-content > .resource-section:last-child { margin-bottom: 0; }
.resource-section-heading, .admin-section-heading { margin-bottom: 18px; }
.resource-section-heading h2, .admin-section-heading h2 { margin-bottom: 6px; }
.resource-section-heading .subtle, .admin-section-heading .subtle { max-width: 880px; margin-bottom: 0; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.resource-card { display: flex; min-height: 278px; flex-direction: column; align-items: flex-start; justify-content: space-between; border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: 24px; background: #fff; box-shadow: var(--shadow); }
.resource-card:hover, .resource-card:focus-within { border-top-color: var(--green); }
.resource-card-mark { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 22px; background: var(--deep); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.resource-card .eyebrow { margin-bottom: 6px; font-size: 9px; }
.resource-card h2 { margin-bottom: 8px; font-size: 21px; }
.resource-card .subtle { margin: 0; font-size: 13px; line-height: 1.48; }
.resource-card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 24px; color: var(--green); font-size: 13px; font-weight: 800; text-decoration: none; }
.resource-card-link span { font-size: 16px; }

/* Administrator-facing user management and approval matrix. */
.admin-section-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; margin: -4px 0 25px; }
.admin-section-nav a { display: flex; min-height: 37px; align-items: center; justify-content: flex-start; border: 1px solid var(--line); padding: 8px 12px; background: #fff; color: var(--deep); font-size: 12px; font-weight: 800; text-decoration: none; }
.admin-section-nav a:hover, .admin-section-nav a:focus, .admin-section-nav a.is-current { border-color: var(--green); background: var(--mint); color: var(--green); }
.admin-section-nav a.is-current { box-shadow: inset 0 -3px 0 var(--green); }
.admin-section { margin: 0 0 34px; }
.user-manager-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.people-devices-section .workspace-stats { margin-bottom: 18px; }
.people-device-toolbar { display: grid; grid-template-columns: minmax(210px, .7fr) minmax(420px, 1.3fr); gap: 28px; align-items: end; margin: 0 0 18px; border: 1px solid var(--line); border-top: 4px solid var(--green); padding: 20px 22px; background: #fff; box-shadow: var(--shadow); }
.people-device-toolbar h3 { margin: 0 0 4px; color: var(--deep); font-size: 20px; }
.people-device-toolbar p { margin: 0; }
.people-device-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(190px, .65fr); gap: 14px; }
.people-device-filters .field { margin: 0; }
.user-manager-add-user { margin: 0 0 22px; padding: 0; overflow: hidden; border-top: 4px solid var(--orange); }
.user-manager-add-user > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; color: var(--deep); cursor: pointer; list-style: none; }
.user-manager-add-user > summary::-webkit-details-marker { display: none; }
.user-manager-add-user > summary span { display: grid; gap: 3px; font-size: 18px; font-weight: 850; }
.user-manager-add-user > summary small { color: var(--orange); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.user-manager-add-user > summary b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--deep); color: #fff; font-size: 20px; line-height: 1; transition: transform .18s ease; }
.user-manager-add-user[open] > summary b { transform: rotate(45deg); }
.user-manager-add-user-body { border-top: 1px solid var(--line); padding: 20px 22px 22px; background: #FBFCFB; }
.user-manager-card, .matrix-card { border: 1px solid var(--line); border-top: 4px solid var(--green); padding: 25px; background: #fff; box-shadow: var(--shadow); }
.user-manager-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.user-manager-identity { display: flex; min-width: 0; align-items: center; gap: 13px; }
.user-manager-identity > div { min-width: 0; }
.user-profile-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: var(--deep);
  color: #fff;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: .04em;
}
.user-profile-avatar--initials { text-transform: uppercase; }
.user-manager-heading h3, .matrix-card h3 { margin: 0 0 4px; font-size: 19px; }
.user-manager-heading p { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.user-manager-heading .status { max-width: 150px; text-align: center; line-height: 1.25; }
.user-manager-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 16px; border: 1px solid var(--line); background: var(--line); }
.user-manager-summary > div { padding: 12px; background: #F9FBFA; }
.user-manager-summary span, .user-role-readonly span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.user-manager-summary strong { display: block; color: var(--deep); font-size: 12px; font-weight: 650; line-height: 1.45; }
.user-full-portal-device { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); gap: 18px; align-items: center; margin-bottom: 16px; border: 1px solid #C8D8CF; padding: 13px 15px; background: #F7FAF8; }
.user-full-portal-device .eyebrow { margin-bottom: 3px; font-size: 9px; }
.user-full-portal-device h4 { margin: 0; color: var(--deep); font-size: 14px; }
.user-full-portal-device > strong { color: var(--deep); font-size: 12px; font-weight: 650; line-height: 1.5; }
.user-access-control-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.user-profile-form { border-top: 1px solid var(--line); padding-top: 19px; }
.user-profile-photo-control { margin: 18px 0 0; border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: 17px; background: #fff; }
.user-profile-photo-preview { display: flex; align-items: center; gap: 14px; }
.user-profile-photo-preview > div { min-width: 0; }
.user-profile-photo-preview .eyebrow { margin: 0 0 4px; }
.user-profile-photo-preview h4 { margin: 0 0 5px; color: var(--deep); }
.user-profile-photo-preview .subtle { margin: 0; font-size: 11px; }
.user-profile-photo-actions { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); gap: 14px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 15px; }
.user-profile-photo-actions form { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); align-content: end; gap: 10px; }
.user-profile-photo-actions .field { margin: 0; }
.user-profile-photo-actions input[type="file"] { min-width: 0; padding: 9px; background: #fff; font-size: 11px; }
.user-profile-photo-actions .button { justify-self: start; }
.my-activity-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 24px; }
.my-activity-tabs a { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-top: 4px solid var(--deep); padding: 11px 15px; background: #fff; color: var(--deep); font-size: 13px; font-weight: 850; text-decoration: none; box-shadow: var(--shadow); }
.my-activity-tabs a:last-child { border-top-color: var(--orange); }
.my-activity-tabs a.is-current { border-color: var(--green); border-top-color: var(--green); background: var(--mint); color: var(--green); }
.my-activity-tabs span { display: grid; min-width: 25px; height: 25px; place-items: center; border-radius: 999px; background: var(--deep); color: #fff; font-size: 11px; }
.my-activity-tabs a.is-current span { background: var(--green); }
.user-profile-form .field { margin-bottom: 14px; }
.user-profile-form .approval-check { min-height: 46px; border: 1px solid #B7CFC0; padding: 10px 12px; background: #F9FBFA; }
.user-role-readonly { margin-bottom: 14px; border: 1px solid var(--line); padding: 11px 12px; background: #F9FBFA; }
.user-role-readonly strong { color: var(--deep); font-size: 13px; }
.user-self-note { margin-top: -4px; font-size: 11px; }
.user-security-actions { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.user-security-action-card { display: flex; min-width: 0; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-top: 4px solid var(--green); padding: 17px; background: #FBFCFB; }
.user-security-action-card:nth-child(3) { border-top-color: var(--orange); }
.user-security-action-heading { min-height: 92px; }
.user-security-action-heading .eyebrow { margin: 0 0 5px; }
.user-security-action-heading h4 { margin: 0 0 6px; color: var(--deep); font-size: 16px; }
.user-security-action-heading .subtle { margin: 0; font-size: 11px; line-height: 1.45; }
.user-security-actions .field { min-width: 0; margin: 0; }
.user-security-actions .field label { font-size: 11px; }
.user-security-actions input, .user-security-actions select { width: 100%; min-width: 0; padding: 9px 10px; font-size: 12px; }
.user-security-action-card .button { width: 100%; margin-top: auto; white-space: normal; }
.user-mobile-access-control { display: flex; min-width: 0; height: 100%; box-sizing: border-box; flex-direction: column; margin: 0; border: 1px solid var(--line); border-left: 4px solid var(--orange); padding: 17px; background: #FFFCF7; }
.user-mobile-access-control--web { border-left-color: var(--deep); background: #F5F8F6; }
.user-mobile-access-control--ios { border-left-color: var(--green); background: #F5FAF7; }
.user-mobile-access-control h4 { margin: 0; color: var(--deep); font-size: 15px; }
.user-mobile-access-control p { margin: 0 0 14px; font-size: 12px; line-height: 1.5; }
.user-mobile-access-control .form-grid { margin-bottom: 12px; }
.user-mobile-access-control .field { margin: 0; }
.user-mobile-access-control .button-row { margin-top: 0; }
.user-mobile-access-control > form { margin-top: auto; }
.user-access-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.user-access-heading .eyebrow { margin: 0 0 4px; font-size: 9px; }
.user-access-heading .status { flex: 0 0 auto; max-width: 108px; text-align: center; line-height: 1.2; }
.user-access-device { min-height: 68px; border: 1px solid rgba(6, 59, 41, .12); padding: 11px 12px; background: rgba(255, 255, 255, .72); }
.user-access-device span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.user-access-device strong { display: block; color: var(--deep); font-size: 12px; line-height: 1.45; }
.user-account-controls { margin-top: 17px; border: 1px solid var(--line); background: #fff; }
.user-account-controls > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; color: var(--deep); cursor: pointer; list-style: none; }
.user-account-controls > summary::-webkit-details-marker { display: none; }
.user-account-controls > summary span { font-size: 13px; font-weight: 850; }
.user-account-controls > summary small { color: var(--muted); font-size: 11px; text-align: right; }
.user-account-controls > summary::after { content: "+"; display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; background: #EAF2ED; color: var(--deep); font-size: 16px; font-weight: 850; }
.user-account-controls[open] > summary::after { content: "−"; }
.user-account-controls-body { border-top: 1px solid var(--line); padding: 0 16px 17px; background: #FBFCFB; }
.people-device-empty { margin: 0; border: 1px dashed var(--line); padding: 28px; background: #fff; color: var(--muted); text-align: center; }
.matrix-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.matrix-card { display: flex; min-height: 350px; flex-direction: column; justify-content: space-between; border-top-color: var(--orange); }
.matrix-card h3 { font-size: 18px; }
.matrix-card .subtle { margin-bottom: 18px; font-size: 12px; line-height: 1.48; }
.matrix-assignee-list { display: grid; gap: 8px; margin: 0 0 14px; }
.matrix-assignee { display: flex; align-items: flex-start; gap: 9px; border: 1px solid #D5E4DA; padding: 9px 10px; background: #F9FBFA; color: var(--deep); cursor: pointer; }
.matrix-assignee:has(input:checked) { border-color: var(--green); background: var(--mint); }
.matrix-assignee input { width: auto; min-width: 16px; margin-top: 2px; accent-color: var(--green); }
.matrix-assignee strong, .matrix-assignee small { display: block; }
.matrix-assignee strong { font-size: 12px; }
.matrix-assignee small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.matrix-rule { margin: 0 0 15px; color: #6E5218; font-size: 11px; font-weight: 700; line-height: 1.4; }

.authenticator-qr { display: block; width: 200px; max-width: 100%; margin: 20px auto; border: 1px solid var(--line); padding: 10px; background: #fff; }
.setup-steps { margin: 16px 0; padding-left: 19px; color: var(--ink); }
.setup-steps li { margin-bottom: 7px; }
.manual-key { margin: 18px 0; border-left: 4px solid var(--lime); padding: 12px 14px; background: var(--mint); }
.manual-key span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.manual-key code { display: block; color: var(--deep); font-size: 15px; font-weight: 800; letter-spacing: .08em; overflow-wrap: anywhere; }
.login-code { text-align: center; font-size: 30px; letter-spacing: .18em; }
.login-note { margin-top: 19px; font-size: 12px; }

/* Compact portal footer, using the public Aqaba Vegetable Oils hierarchy. */
.site-footer { flex: 0 0 auto; margin-top: auto; padding: 24px 0 10px; background: var(--deep); color: #E9FFF2; }
.site-footer .shell { width: min(1280px, 92vw); }
.footer-grid { display: grid; grid-template-columns: 1.45fr .78fr .78fr 1.45fr; align-items: start; column-gap: clamp(22px, 3vw, 52px); row-gap: 18px; }
.footer-logo-frame { width: 142px; height: 68px; margin: 0 0 6px; }
.footer-logo-frame img { display: block; width: 142px; height: 68px; object-fit: contain; }
.site-footer, .site-footer a, .site-footer p, .footer-contact { font-size: .86rem; line-height: 1.45; }
.footer-brand p { max-width: none; color: #E9FFF2; white-space: nowrap; }
.footer-tagline { margin: 0; }
.footer-brand .footer-visit { display: inline-flex; align-items: center; margin: 5px 0 0; font-weight: 800; }
.site-footer h4 { margin: 0 0 9px; color: #E9FFF2; font-size: .88rem; font-weight: 800; letter-spacing: 0; }
.site-footer a { display: block; margin: 0 0 6px; color: #D4F5DD; text-decoration: none; }
.footer-links { display: block; }
.footer-link-list { display: grid; grid-auto-rows: 20px; row-gap: 7px; }
.footer-link-list a { height: 20px; margin: 0; line-height: 20px; }
.site-footer a:hover, .site-footer a:focus { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { display: grid; gap: 7px; color: #E9FFF2; }
.footer-contact a { margin: 0; }
.footer-address { color: #E9FFF2 !important; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px auto 0; border-top: 1px solid rgba(255,255,255,.16); padding: 10px 0 0; color: #BDE8C8; font-size: .77rem; }
.footer-bottom > span:first-child { white-space: nowrap; }
.footer-policy-links { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 4px 8px; white-space: nowrap; }
.footer-policy-links b { color: rgba(189, 232, 200, .65); font-weight: 400; }
.footer-bottom a { display: inline !important; margin: 0 !important; color: inherit; font-size: .77rem; font-weight: 800; }
.footer-bottom a:hover, .footer-bottom a:focus { color: var(--orange); }

@media (max-width: 1080px) {
  .header-row { gap: 16px; }
  .primary-nav { gap: 13px; }
  .primary-nav a, .nav-menu summary { font-size: 14px; }
  .portal-name { padding-left: 20px; font-size: 18px; }
  .inline-admin-form { grid-template-columns: 1fr; }
  .user-access-control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-access-control-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .shell { width: min(100% - 32px, 1180px); }
  .header-row { min-height: 78px; flex-wrap: wrap; padding: 10px 0; }
  .primary-nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .dashboard-head { height: auto; min-height: 0; overflow: visible; padding: 22px 23px; }
  .portal-hero-content { height: auto; min-height: 0; }
  .portal-hero-title-row { align-items: flex-start; }
  .portal-hero-actions { flex-basis: 100%; justify-content: flex-end; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid, .test-grid, .replicate-grid, .bench-sampling-grid, .bench-checks, .document-grid, .resource-grid, .user-manager-grid, .matrix-grid { grid-template-columns: 1fr; }
  .people-device-toolbar, .user-access-control-grid { grid-template-columns: 1fr; }
  .user-access-control-grid > :last-child { grid-column: auto; }
  .user-manager-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-full-portal-device { grid-template-columns: 1fr; gap: 7px; }
  .bench-sampling-grid .appearance-field { grid-column: auto; }
  .calculation-summary { grid-template-columns: repeat(2, 1fr); }
  .calculation-heading { display: block; }
  .bench-method-heading { display: flex; flex-wrap: wrap; gap: 12px; }
  .bench-method-heading > div:first-child { flex: 1 1 220px; }
  .bench-method-link { margin-top: 0; }
  .formula { display: inline-block; margin-top: 13px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { align-items: flex-start; flex-direction: column; white-space: normal; }
  .footer-policy-links { flex-wrap: wrap; }
  .auth-login-layout { grid-template-columns: 1fr; margin-bottom: -18px; }
  .auth-login-landing .auth-card { order: -1; }
  .auth-login-landing .auth-showcase { order: 1; }
  .auth-login-verify .auth-card { order: -1; }
  .auth-login-verify .auth-showcase { order: 1; }
  .account-password-layout .auth-card { order: -1; }
  .account-password-layout .auth-showcase { order: 1; }
  .auth-showcase { min-height: 360px; }
}
@media (max-width: 520px) {
  .site-utility .shell { min-height: 34px; }
  .site-utility .utility-inner { min-height: 0; flex-wrap: wrap; gap: 7px 12px; padding: 7px 0; }
  .site-utility .utility-left { gap: 12px; }
  .site-utility .utility-right { display: flex; flex-wrap: wrap; font-size: 11px; }
  .utility-dropdown { right: -8px; width: min(390px, calc(100vw - 20px)); }
  .header-row { min-height: 68px; }
  .brand-mark { width: 128px; height: 62px; }
  .brand-mark img { width: 128px; height: 62px; transform: none; }
  .portal-name { padding-left: 14px; font-size: 15px; }
  .primary-nav a { font-size: 12px; }
  .nav-menu summary { font-size: 12px; }
  .content { padding: 30px 0 52px; }
  .card { padding: 24px 20px; }
  .user-manager-add-user { padding: 0; }
  h1 { font-size: 30px; }
  .stats, .calculation-summary, .summary-list, .footer-grid { grid-template-columns: 1fr; }
  .people-device-filters, .user-manager-summary { grid-template-columns: 1fr; }
  .user-profile-photo-actions { grid-template-columns: 1fr; }
  .my-activity-tabs { grid-template-columns: 1fr; }
  .people-device-toolbar, .user-manager-card { padding: 20px; }
  .user-manager-heading { align-items: flex-start; flex-direction: column; }
  .user-account-controls > summary small { display: none; }
  .footer-brand p { white-space: normal; }
  .auth-login-layout { margin-bottom: -12px; }
  .auth-showcase { min-height: 300px; padding: 24px 22px; }
  .auth-slides { height: 150px; margin: 12px 0; }
  .auth-slide img { width: 165px; height: 150px; }
  .summary-list div, .summary-list div:nth-child(2n), .summary-list div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-list div:last-child { border-bottom: 0; }
  .certificate-preview { padding: 10px; }
  .certificate-preview iframe { height: 560px; }
}

/* Exact AVO Website v108 shell. This scope is deliberately restricted to
   the utility bar, primary header/dropdowns and footer. */
.portal-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(0, 149, 65, .09);
  box-shadow: 0 10px 34px rgba(3, 45, 26, .06);
  backdrop-filter: blur(18px);
}
.portal-site-header .shell,
.portal-footer-shell .shell { width: min(1180px, 92vw); }

.portal-utility-bar {
  display: flex;
  align-items: center;
  min-height: 42px !important;
  background: #063F26;
  color: #EAFFF0;
  font: 800 .84rem/1.2 Inter, Arial, sans-serif;
}
.portal-utility-bar .utility-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px !important;
}
.portal-utility-bar .utility-account {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}
.portal-utility-bar a,
.portal-utility-bar .utility-menu summary { color: #EAFFF0; font: inherit; text-decoration: none; }
.portal-utility-bar a:hover,
.portal-utility-bar a:focus-visible,
.portal-utility-bar .utility-menu summary:hover,
.portal-utility-bar .utility-menu summary:focus-visible { color: var(--orange); }
.portal-utility-bar .utility-user { color: rgba(234, 255, 240, .92); }
.portal-utility-bar .utility-dropdown {
  top: calc(100% + 12px);
  border: 1px solid #DCE8DF;
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(3, 45, 26, .15);
}

.portal-site-header .main-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  gap: 14px;
  padding: 0;
}
.portal-site-header .brand { display: flex; align-items: center; gap: 0; min-width: max-content; }
.portal-site-header .brand img {
  display: block;
  width: auto;
  height: 86px;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(3, 45, 26, .08));
}
.portal-site-header .brand span { display: none; }
.portal-site-header .nav-links { display: flex; align-items: center; min-width: 0; gap: 16px; }
.portal-site-header .primary-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.portal-site-header .primary-nav > a,
.portal-site-header .nav-menu summary {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 0;
  color: #295240;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.portal-site-header .primary-nav > a::after,
.portal-site-header .nav-menu summary::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
  content: '';
  opacity: 0;
  transform: scaleX(.3);
  transition: .2s;
}
.portal-site-header .nav-menu summary { list-style: none; cursor: pointer; }
.portal-site-header .nav-menu summary::-webkit-details-marker { display: none; }
.portal-site-header .nav-menu summary::before { content: ''; }
.portal-site-header .primary-nav > a:hover,
.portal-site-header .primary-nav > a:focus-visible,
.portal-site-header .nav-menu[open] summary,
.portal-site-header .nav-menu summary:hover,
.portal-site-header .nav-menu summary:focus-visible { color: var(--green); outline: 0; }
.portal-site-header .primary-nav > a:hover::after,
.portal-site-header .primary-nav > a:focus-visible::after,
.portal-site-header .nav-menu[open] summary::before,
.portal-site-header .nav-menu summary:hover::before,
.portal-site-header .nav-menu summary:focus-visible::before { opacity: 1; transform: scaleX(1); }
.portal-site-header .nav-dropdown {
  position: absolute;
  z-index: 100;
  top: calc(100% + 18px);
  left: 50%;
  display: grid;
  min-width: 218px;
  gap: 4px;
  transform: translateX(-50%);
  border: 1px solid #DCE8DF;
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(3, 45, 26, .15);
  background: #fff;
  padding: 8px;
}
.portal-site-header .nav-menu:last-child .nav-dropdown { right: 0; left: auto; transform: none; }
.portal-site-header .nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #083D25;
  font-size: .84rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  white-space: normal;
}
.portal-site-header .nav-dropdown a::after { content: none; }
.portal-site-header .nav-dropdown a:hover,
.portal-site-header .nav-dropdown a:focus-visible { border-color: #D9EADF; background: #F1FAF4; color: var(--green); outline: 0; }
.portal-site-header .nav-dropdown .nav-dropdown-all,
.portal-site-header .nav-dropdown .nav-dropdown-admin-first { margin-top: 6px; border-top-color: rgba(6, 59, 41, .18); padding-top: 12px; }
.portal-site-header .nav-dropdown .nav-dropdown-all { color: var(--orange); }
.portal-site-header .nav-dropdown .nav-dropdown-all:hover,
.portal-site-header .nav-dropdown .nav-dropdown-all:focus-visible { border-color: transparent; background: #FFF6ED; color: var(--orange); }
.portal-site-header .mobile-toggle {
  display: none;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(0, 149, 65, .18);
  border-radius: 18px;
  background: #F4FAF6;
  color: #063F26;
  font-size: 1.55rem;
  line-height: 1;
}

.footer.footer-v12.portal-footer-shell {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 38px 0 14px;
  background: var(--deep);
  color: #E9FFF2;
}
.portal-footer-shell .footer-grid {
  display: grid;
  grid-template-columns: 1.45fr .72fr .72fr 1.35fr;
  align-items: start;
  column-gap: 18px;
  row-gap: 22px;
}
.portal-footer-shell .footer-logo-link { display: block; width: max-content; }
.portal-footer-shell .footer-logo { width: auto; height: 72px; object-fit: contain; }
.portal-footer-shell h4 { margin: 0 0 10px; color: #fff; font-size: .95rem; font-weight: 800; letter-spacing: 0; }
.portal-footer-shell p { margin: 8px 0 10px; color: #E9FFF2; font-size: .95rem; line-height: 1.58; }
.portal-footer-shell a { display: block; margin: 4px 0; color: #D4F5DD; font-size: .95rem; line-height: 1.58; text-decoration: none; }
.portal-footer-shell a:hover,
.portal-footer-shell a:focus-visible { color: var(--orange); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.portal-footer-shell .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px auto 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 12px;
  color: #BDE8C8;
  font-size: .77rem;
}
.portal-footer-shell .footer-bottom > span:first-child { white-space: nowrap; }
.portal-footer-shell .policy-links-v16 { display: flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.portal-footer-shell .policy-links-v16 a { display: inline; margin: 0; color: inherit; font-size: .77rem; font-weight: 800; }
.portal-footer-shell .policy-sep { color: rgba(189, 232, 200, .65); }

/* Product & Specification Register */
.product-specification-intro { margin-bottom: 22px; }
.product-specification-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-specification-card { border: 1px solid var(--line); border-top: 4px solid var(--green); padding: 24px; background: #fff; box-shadow: var(--shadow); }
.product-specification-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.product-specification-card-head h2 { margin-bottom: 5px; }
.product-specification-metrics { display: grid; gap: 10px; margin: 18px 0; }
.product-specification-metrics > div { border-left: 3px solid var(--lime); padding: 4px 0 4px 11px; }
.product-specification-metrics span,
.product-specification-audit,
.field-help { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.product-specification-metrics strong { display: block; color: var(--deep); font-size: 13px; }
.product-specification-audit { margin: 0; }
.product-specification-editor h2 { margin-top: 4px; }
.controlled-readonly { background: #F4F7F5; color: var(--muted); }
.specification-enable { margin: 2px 0 20px; }
.spec-editor-help { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.allowed-ip-grid { display: grid; gap: 22px; }
.allowed-ip-table .field { min-width: 150px; margin: 0 0 8px; }
.allowed-ip-table .text-button[disabled] { cursor: not-allowed; opacity: .48; }
.ip-revoke-form { display: grid; gap: 7px; min-width: 190px; }
.view-as-banner { display: flex; align-items: center; gap: 14px; margin: 18px auto 0; padding: 12px 15px; border: 1px solid #b77a15; border-left: 5px solid #b77a15; background: #fff7e7; color: #563700; font-size: 13px; }
.view-as-banner strong { white-space: nowrap; }
.view-as-banner span { flex: 1; }
.view-as-banner form { margin: 0; }
.view-as-banner button { border: 1px solid #8d5e11; background: #fff; color: #563700; padding: 7px 10px; border-radius: 3px; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 720px) {
  .view-as-banner { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media print {
  .site-header, .site-footer, .print-only-hide, .view-as-banner { display: none !important; }
  .content, .shell { max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .product-specification-print-header, .product-specification-print-section { break-inside: avoid; box-shadow: none !important; }
  .product-specification-print-table { font-size: 9px; }
}
.specification-raw-input { display: none; }
.spec-editor-section { margin: 22px 0; padding: 20px; border: 1px solid var(--line); background: #fcfdfc; }
.spec-editor-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.spec-editor-section-head h2 { margin: 0 0 5px; color: var(--deep); font-size: 18px; }
.spec-editor-section-head .subtle { margin: 0; max-width: 820px; }
.spec-editor-count { flex: 0 0 auto; border: 1px solid #cfe3d5; border-radius: 999px; padding: 5px 9px; background: #edf7ef; color: var(--deep); font-size: 12px; font-weight: 800; white-space: nowrap; }
.spec-editor-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.spec-edit-table { width: 100%; min-width: var(--spec-editor-minimum-width, 760px); border-collapse: collapse; }
.spec-edit-table th { padding: 10px 9px; border-right: 1px solid #dbe6de; border-bottom: 1px solid var(--line); background: var(--deep); color: #fff; font-size: 12px; line-height: 1.25; text-align: left; vertical-align: bottom; }
.spec-edit-table td { min-width: 118px; padding: 6px; border-right: 1px solid #e1eae4; border-bottom: 1px solid #e1eae4; vertical-align: top; }
.spec-edit-table tr:last-child td { border-bottom: 0; }
.spec-edit-table th:last-child,
.spec-edit-table td:last-child { border-right: 0; }
.spec-edit-table input { width: 100%; min-width: 110px; min-height: 38px; border: 1px solid #cbd9d0; border-radius: 3px; padding: 7px 8px; background: #fffdf8; color: var(--ink); font: 13px/1.35 Arial, sans-serif; }
.spec-edit-table input:focus { outline: 3px solid rgba(0, 149, 65, .18); border-color: var(--green); }
.spec-edit-table input[readonly] { background: #F1F6F2; color: #4F655A; cursor: not-allowed; }
.spec-edit-actions-heading { width: 82px; }
.spec-edit-actions { min-width: 82px; text-align: center; }
.spec-remove-row { border: 0; border-radius: 3px; padding: 8px 9px; background: #f8e8e6; color: #8b2d25; font-size: 12px; font-weight: 800; cursor: pointer; }
.spec-remove-row:hover,
.spec-remove-row:focus-visible { background: #f1d1cd; outline: 3px solid rgba(139, 45, 37, .16); }
.spec-editor-actions { margin: 12px 0 0; }

/* Instrument Register: quick, client-side lookup without changing the
   controlled register or hiding any record from the database. */
.instrument-register-filter {
  display: grid;
  grid-template-columns: minmax(280px, 520px) auto;
  align-items: end;
  gap: 8px 14px;
  margin: 22px 0 16px;
}
.instrument-register-filter label { grid-column: 1; color: var(--deep); font-size: 12px; font-weight: 850; }
.instrument-register-filter input { grid-column: 1; }
.instrument-register-filter .subtle { grid-column: 2; grid-row: 2; margin: 0; padding-bottom: 11px; font-size: 12px; white-space: nowrap; }

@media (max-width: 1020px) {
  .portal-site-header .main-nav { height: auto; padding: 12px 16px; }
  .portal-site-header .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .portal-site-header .nav-links {
    position: absolute;
    z-index: 200;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    max-height: calc(100vh - 185px);
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid rgba(0, 149, 65, .16);
    border-radius: 24px;
    box-shadow: 0 26px 60px rgba(3, 45, 26, .15);
    background: #fff;
    padding: 18px;
  }
  .portal-site-header .nav-links.open { display: flex; }
  .portal-site-header .primary-nav { display: flex; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; }
  .portal-site-header .primary-nav > a,
  .portal-site-header .nav-menu summary {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 16px;
    color: #063F26;
    font-size: 1rem;
    line-height: 1.25;
    background: #fff;
  }
  .portal-site-header .primary-nav > a:hover,
  .portal-site-header .primary-nav > a:focus-visible,
  .portal-site-header .nav-menu summary:hover,
  .portal-site-header .nav-menu summary:focus-visible { background: #F3FAF0; }
  .portal-site-header .primary-nav > a::after,
  .portal-site-header .nav-menu summary::before { display: none; }
  .portal-site-header .nav-menu[open] .nav-dropdown {
    position: static;
    display: grid;
    width: 100%;
    min-width: 0;
    transform: none;
    margin: 0 0 2px;
    border-radius: 18px;
    box-shadow: none;
    background: #F8FCF7;
  }
  .portal-footer-shell .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-footer-shell .footer-bottom { align-items: flex-start; flex-direction: column; }
  .product-specification-grid { grid-template-columns: 1fr; }
  .spec-editor-section { padding: 16px; }
}
@media (max-width: 640px) {
  .portal-utility-bar .utility-inner { min-height: 38px !important; }
  .portal-utility-bar .utility-account { width: 100%; justify-content: flex-end; }
  .portal-site-header .main-nav { padding: 10px 12px; }
  .portal-site-header .brand img { height: 74px; max-width: 210px; }
  .portal-site-header .nav-links { right: 10px; left: 10px; max-height: calc(100vh - 210px); border-radius: 20px; }
  .portal-footer-shell .footer-grid { grid-template-columns: 1fr; }
  .portal-footer-shell .footer-bottom > span:first-child,
  .portal-footer-shell .policy-links-v16 { white-space: normal; }
  .portal-footer-shell .policy-links-v16 { flex-wrap: wrap; justify-content: flex-start; }
  .instrument-register-filter { grid-template-columns: 1fr; }
  .instrument-register-filter .subtle { grid-column: 1; grid-row: auto; padding-bottom: 0; }
  .spec-editor-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* Version 1.23 — exact AVO v108 utility bar, header/dropdown and footer
   component treatment. Portal-only links keep their permissions and routes;
   this scope changes only the public-site shell component geometry. */
.portal-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(0, 149, 65, .09);
  box-shadow: 0 10px 34px rgba(3, 45, 26, .06);
  backdrop-filter: none;
}
.portal-site-header .shell,
.portal-footer-shell .shell { width: min(1180px, 92vw); }

.portal-utility-bar {
  display: block;
  min-height: 42px !important;
  background: #063f26;
  color: #eafff0;
  font: 800 .84rem/1.2 Inter, Arial, sans-serif;
}
.portal-utility-bar .utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between !important;
  min-height: 42px !important;
  gap: 18px;
}
.portal-utility-bar .portal-utility-left { min-width: 0; }
.portal-utility-bar .utility-account,
.portal-utility-bar .utility-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  font: inherit;
  white-space: nowrap;
}
.portal-utility-bar a,
.portal-utility-bar .utility-menu summary { color: #eafff0; font: inherit; text-decoration: none; }
.portal-utility-bar a:hover,
.portal-utility-bar a:focus-visible,
.portal-utility-bar .utility-menu summary:hover,
.portal-utility-bar .utility-menu summary:focus-visible { color: var(--orange); }
.portal-utility-bar .utility-user { color: #eafff0; }
.portal-utility-bar .utility-dropdown {
  top: calc(100% + 12px);
  border: 1px solid #dce8df;
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(3, 45, 26, .15);
}

.portal-site-header .main-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  gap: 14px;
  padding: 0;
}
.portal-site-header .brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.portal-site-header .brand img {
  display: block;
  width: auto;
  height: 86px;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(3, 45, 26, .08));
}
.portal-site-header .brand span {
  display: inline;
  color: var(--deep);
  font-size: .98rem;
  font-weight: 950;
  line-height: 1.1;
}
.portal-site-header .nav-links { display: flex; align-items: center; gap: 16px; min-width: 0; }
.portal-site-header .primary-nav { display: flex; align-items: center; gap: 16px; margin-left: 0; }
.portal-site-header .primary-nav > a,
.portal-site-header .nav-dropdown-v19 > .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 0;
  color: #295240;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.portal-site-header .primary-nav > a::after,
.portal-site-header .nav-dropdown-v19 > .nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--orange);
  content: '';
  opacity: 0;
  transform: scaleX(.3);
  transition: .2s;
}
.portal-site-header .primary-nav > a:hover,
.portal-site-header .primary-nav > a:focus-visible,
.portal-site-header .nav-dropdown-v19:focus-within > .nav-link,
.portal-site-header .nav-dropdown-v19:hover > .nav-link { color: #295240; outline: 0; }
.portal-site-header .primary-nav > a:hover::after,
.portal-site-header .primary-nav > a:focus-visible::after,
.portal-site-header .nav-dropdown-v19:focus-within > .nav-link::after,
.portal-site-header .nav-dropdown-v19:hover > .nav-link::after { opacity: 1; transform: scaleX(1); }
.portal-site-header .nav-dropdown-v19 { position: relative; display: flex; align-items: center; }
.portal-site-header .nav-dropdown-menu-v19 {
  position: absolute;
  z-index: 100;
  top: calc(100% + 18px);
  left: 50%;
  display: grid;
  width: 190px;
  min-width: 190px;
  max-width: 220px;
  gap: 4px;
  transform: translateX(-50%) translateY(8px);
  border: 1px solid #dce8df;
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(3, 45, 26, .15);
  background: #fff;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .22s;
}
.portal-site-header .nav-dropdown-menu-v19::before {
  position: absolute;
  top: -16px;
  right: 0;
  left: 0;
  height: 16px;
  content: '';
}
.portal-site-header .nav-dropdown-v19:focus-within .nav-dropdown-menu-v19,
.portal-site-header .nav-dropdown-v19:hover .nav-dropdown-menu-v19 {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.portal-site-header .portal-resources-menu .nav-dropdown-menu-v19 { right: 0; left: auto; transform: translateY(8px); }
.portal-site-header .portal-resources-menu:focus-within .nav-dropdown-menu-v19,
.portal-site-header .portal-resources-menu:hover .nav-dropdown-menu-v19 { transform: translateY(0); }
.portal-site-header .nav-dropdown-menu-v19 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 11px;
  color: #083d25;
  font-size: .84rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  white-space: normal;
}
.portal-site-header .nav-dropdown-menu-v19 a:hover,
.portal-site-header .nav-dropdown-menu-v19 a:focus-visible { border-color: #d9eadf; background: #f1faf4; color: #009541; outline: 0; }
.portal-site-header .nav-dropdown-menu-v19 .nav-catalogue-link-v31 {
  margin-top: 6px;
  border-top-color: rgba(6, 59, 41, .18);
  padding-top: 12px;
  color: #009541;
  font-weight: 900;
}
.portal-site-header .nav-dropdown-menu-v19 .nav-catalogue-link-v31:hover,
.portal-site-header .nav-dropdown-menu-v19 .nav-catalogue-link-v31:focus-visible { border-color: transparent; background: #fff6ed; color: var(--orange); }
.portal-site-header .nav-dropdown-menu-v19 .nav-catalogue-link-v31--continued {
  margin-top: 0;
  border-top-color: transparent;
  padding-top: 9px;
}
.portal-site-header .nav-mobile-disclosure { display: none; }
.portal-site-header .portal-submenu { position: relative; }
.portal-site-header .portal-submenu-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  padding: 9px 11px;
  color: #083d25;
  cursor: pointer;
  font: inherit;
  font-size: .84rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: left;
}
.portal-site-header .portal-submenu-toggle:hover,
.portal-site-header .portal-submenu-toggle:focus-visible { border-color: #d9eadf; background: #f1faf4; color: #009541; outline: 0; }
.portal-site-header .portal-submenu-links {
  position: absolute;
  z-index: 120;
  top: -8px;
  left: calc(100% + 8px);
  display: grid;
  width: 205px;
  gap: 4px;
  transform: translateX(8px);
  border: 1px solid #dce8df;
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(3, 45, 26, .15);
  background: #fff;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .22s;
}
.portal-site-header .portal-submenu:hover .portal-submenu-links,
.portal-site-header .portal-submenu:focus-within .portal-submenu-links { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }

.footer.footer-v12.portal-footer-shell {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 24px 0 10px;
  background: var(--deep);
  color: #e9fff2;
}
.portal-footer-shell .footer-grid {
  display: grid;
  grid-template-columns: 1.45fr .72fr .72fr 1.35fr;
  align-items: start;
  gap: 16px;
}
.portal-footer-shell .footer-logo-link { display: block; width: max-content; }
.portal-footer-shell .footer-logo { width: auto; height: 66px; object-fit: contain; }
.portal-footer-shell h4 { margin: 0 0 9px; color: #fff; font-size: .9rem; font-weight: 800; letter-spacing: 0; }
.portal-footer-shell p { margin: 7px 0 8px; color: #e9fff2; font-size: .9rem; line-height: 1.55; }
.portal-footer-shell a { display: block; margin: 0 0 6px; color: #d4f5dd; font-size: .9rem; line-height: 1.55; text-decoration: none; }
.portal-footer-shell a:hover,
.portal-footer-shell a:focus-visible { color: var(--orange); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.portal-footer-shell .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px auto 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 10px;
  color: #bde8c8;
  font-size: .77rem;
}
.portal-footer-shell .footer-bottom > span:first-child { white-space: nowrap; }
.portal-footer-shell .policy-links-v16 { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 9px; max-width: 680px; line-height: 1.7; }
.portal-footer-shell .policy-links-v16 a { display: inline; margin: 0; color: inherit; font-size: .77rem; font-weight: 800; }

/* Company Resources uses the same portal card language as Other Forms and
   Bench Sheets, while retaining a consistent side visual for each resource. */
.company-resource-directory .company-resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.company-resource-directory .company-resource-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 152px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  padding: 23px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: border-color .16s ease, border-top-color .16s ease, transform .16s ease;
}
.company-resource-directory .company-resource-card:hover,
.company-resource-directory .company-resource-card:focus-within { border-top-color: var(--green); transform: translateY(-2px); }
.company-resource-directory .company-resource-mark {
  display: grid;
  width: 130px;
  height: 100px;
  place-items: center;
  margin: 0 auto;
  padding: 14px;
  box-sizing: border-box;
  border: 1px solid #dce8df;
  border-radius: 18px;
  background: #f7fbf8;
  color: #083d25;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}
.company-resource-directory .company-resource-mark--image {
  display: block;
  height: 100px;
  padding: 0;
  background: #eef5f0;
  overflow: hidden;
}
.company-resource-directory .company-resource-mark--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.company-resource-directory .company-resource-mark--external-logo {
  padding: 16px;
  background: #fff;
}
.company-resource-directory .company-resource-mark--external-logo img {
  object-fit: contain;
}
.company-resource-directory .company-resource-mark--external-logo.external-logo--rentokil {
  background: #004f3e;
}
.company-resource-directory .company-resource-mark--external-logo.external-logo--jas-au {
  padding: 5px;
}
.company-resource-directory .company-resource-card h3 { margin: 0 0 8px; color: #083d25; font-size: 1.05rem; }
.company-resource-directory .company-resource-card p { margin: 0; color: #62736a; font-size: .9rem; line-height: 1.6; }
.company-resource-directory .company-resource-card .company-resource-title-link {
  display: inline;
  margin: 0;
  color: #083d25;
  font: inherit;
  font-weight: inherit;
  text-decoration: none;
}
.company-resource-directory .company-resource-card .company-resource-title-link:hover,
.company-resource-directory .company-resource-card .company-resource-title-link:focus-visible {
  color: #009541;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}
.company-resource-directory .company-resource-alternate { margin-top: 9px; }
.company-resource-directory .company-resource-alternate a {
  color: #009541;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.company-resource-directory .company-resource-alternate a:hover,
.company-resource-directory .company-resource-alternate a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Ensure the explanatory text in both Manage Users sections uses the entire
   available section width and reaches the same right edge as its cards. */
.admin-section-heading .subtle {
  width: 100%;
  max-width: none;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

@media (max-width: 1020px) {
  .portal-site-header .main-nav { height: auto; padding: 12px 16px; }
  .portal-site-header .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .portal-site-header .nav-links {
    position: absolute;
    z-index: 200;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none !important;
    max-height: calc(100vh - 185px);
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid rgba(0, 149, 65, .16);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(3, 45, 26, .16);
    background: #fff;
    padding: 14px;
  }
  .portal-site-header .nav-links.open { display: flex !important; }
  .portal-site-header .primary-nav { display: flex; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; }
  .portal-site-header .primary-nav > a,
  .portal-site-header .nav-dropdown-v19 > .nav-link {
    width: 100%;
    justify-content: space-between;
    border-radius: 16px;
    padding: 12px 14px;
    color: #063f26;
    font-size: 1rem;
    line-height: 1.25;
    background: #fff;
  }
  .portal-site-header .primary-nav > a::after,
  .portal-site-header .nav-dropdown-v19 > .nav-link::after { display: none; }
  .portal-site-header .nav-dropdown-v19 { position: relative; display: block; width: 100%; }
  .portal-site-header .nav-dropdown-v19 > .nav-link { padding-right: 52px; }
  .portal-site-header .nav-mobile-disclosure { position: absolute; top: 6px; right: 7px; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: #eff7f1; color: #063f26; cursor: pointer; font-size: 1.05rem; }
  .portal-site-header .nav-mobile-disclosure:focus-visible { outline: 3px solid rgba(242,141,44,.35); outline-offset: 2px; }
  .portal-site-header .nav-dropdown-v19.is-open > .nav-mobile-disclosure { background: #005b3e; color: #fff; }
  .portal-site-header .nav-dropdown-menu-v19,
  .portal-site-header .portal-resources-menu .nav-dropdown-menu-v19 {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    transform: none;
    margin: 6px 0 10px;
    border: 1px solid rgba(0, 149, 65, .12);
    border-radius: 18px;
    box-shadow: none;
    background: #f8fcf7;
    padding: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .portal-site-header .nav-dropdown-v19:hover .nav-dropdown-menu-v19,
  .portal-site-header .nav-dropdown-v19:focus-within .nav-dropdown-menu-v19 { display: none; transform: none; }
  .portal-site-header .nav-dropdown-v19.is-open > .nav-dropdown-menu-v19 { display: grid; transform: none; }
  .portal-site-header .nav-dropdown-menu-v19::before { display: none; }
  .portal-site-header .nav-dropdown-menu-v19 a { width: 100%; padding: 9px 11px; border-radius: 13px; font-size: .92rem; line-height: 1.35; }
  .portal-site-header .portal-submenu { margin-top: 2px; }
  .portal-site-header .portal-submenu-toggle { padding: 10px 11px; border-radius: 13px; background: #fff; font-size: .92rem; }
  .portal-site-header .portal-submenu-links { position: static; display: none; width: 100%; margin: 5px 0 3px; transform: none; border: 1px solid rgba(0,149,65,.12); border-radius: 13px; box-shadow: none; background: #fff; padding: 6px; opacity: 1; visibility: visible; pointer-events: auto; }
  .portal-site-header .portal-submenu:hover .portal-submenu-links,
  .portal-site-header .portal-submenu:focus-within .portal-submenu-links { display: none; transform: none; }
  .portal-site-header .portal-submenu.is-open .portal-submenu-links { display: grid; }
  .portal-footer-shell .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-footer-shell .footer-bottom { align-items: flex-start; flex-direction: column; }
  .company-resource-directory .company-resource-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .portal-utility-bar .utility-inner { min-height: 38px !important; }
  .portal-utility-bar .portal-utility-left { display: none; }
  .portal-utility-bar .utility-account { width: 100%; justify-content: flex-end; }
  .portal-site-header .main-nav { padding: 10px 12px; }
  .portal-site-header .brand img { height: 74px; max-width: 210px; }
  .portal-site-header .brand span { font-size: .82rem; }
  .portal-site-header .nav-links { right: 10px; left: 10px; max-height: calc(100vh - 210px); border-radius: 20px; }
  .portal-footer-shell .footer-grid { grid-template-columns: 1fr; }
  .portal-footer-shell .footer-bottom > span:first-child,
  .portal-footer-shell .policy-links-v16 { white-space: normal; }
  .portal-footer-shell .policy-links-v16 { justify-content: flex-start; }
  .company-resource-directory .company-resource-card { grid-template-columns: 1fr; text-align: center; }
  .company-resource-directory .company-resource-mark { margin: auto; }
}

/* Version 1.27 — use the current aqabavegoil.com shell type scale and
   geometry exactly. The portal retains only its destination/account links. */
.portal-utility-bar .utility-visit-site,
.portal-utility-bar .utility-portal-title {
  font: 800 .84rem/1.2 Inter, Arial, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}
.portal-utility-bar .utility-portal-title { color: #eafff0; }
.portal-utility-bar .utility-visit-site { display: inline-flex; align-items: center; }

.portal-site-header .brand { gap: 0; }
.portal-site-header .brand span { display: none !important; }
.portal-site-header .primary-nav > a,
.portal-site-header .nav-dropdown-v19 > .nav-link {
  font-size: 1.22rem !important;
  font-weight: 900 !important;
}

.footer.footer-v12.portal-footer-shell,
.portal-footer-shell .footer-grid,
.portal-footer-shell .footer-logo,
.portal-footer-shell h4,
.portal-footer-shell p,
.portal-footer-shell a,
.portal-footer-shell .footer-bottom {
  font-family: Inter, Arial, sans-serif;
}
.portal-footer-shell h4 { margin: 0 0 10px; font-size: .9rem; font-weight: 800; line-height: 1.55; }
.portal-footer-shell p,
.portal-footer-shell a { font-size: .9rem; line-height: 1.55; }
.portal-footer-shell p { margin: 8px 0 10px; }
.portal-footer-shell a { margin: 4px 0; }
.portal-footer-shell .footer-logo { height: 66px; }
.portal-footer-shell .footer-tagline,
.portal-footer-shell .footer-visit-site {
  font-family: Inter, Arial, sans-serif;
  font-size: .9rem;
  line-height: 1.55;
  letter-spacing: 0;
}
.portal-footer-shell .footer-tagline { font-weight: 400; }
.portal-footer-shell .footer-visit-site { display: inline-flex; align-items: center; gap: 5px; margin-top: 0; font-weight: 800; }
.portal-footer-shell .footer-bottom { margin-top: 12px; padding-top: 10px; }
.portal-footer-shell .footer-bottom,
.portal-footer-shell .footer-bottom a { font-size: .77rem; line-height: 1.35; }

/* v1.55: protect the legal/footer row from overflow on narrow tablet widths. */
.portal-footer-shell .footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 20px;
}
.portal-footer-shell .footer-bottom > span:first-child { min-width: 0; white-space: normal; }
.portal-footer-shell .policy-links-v16 { min-width: 0; max-width: min(680px, 100%); white-space: normal; }
@media (max-width: 820px) {
  .portal-footer-shell .footer-bottom { grid-template-columns: 1fr; }
  .portal-footer-shell .policy-links-v16 { justify-content: flex-start; }
}

/* Version 1.28 — keep footer entry spacing uniform and reserve enough room
   for the complete Industrial Estate map address on one desktop line. */
.portal-footer-shell .footer-grid {
  grid-template-columns: minmax(290px, 1.20fr) minmax(145px, .60fr) minmax(150px, .65fr) minmax(410px, 1.65fr);
  column-gap: 16px;
  row-gap: 22px;
}
.portal-footer-shell .footer-column h4 { margin-bottom: 10px; }
.portal-footer-shell .footer-column-items {
  display: grid;
  align-content: start;
  gap: 8px;
}
.portal-footer-shell .footer-column-items > a,
.portal-footer-shell .footer-column-items > span {
  display: block;
  margin: 0;
  color: #d4f5dd;
  font-size: .9rem;
  line-height: 1.55;
}
.portal-footer-shell .footer-map-link { white-space: nowrap; }
.portal-footer-shell .footer-company p { margin: 8px 0 10px; }

@media (max-width: 1133px) and (min-width: 641px) {
  .portal-footer-shell .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-footer-shell .footer-map-link { white-space: normal; }
}

@media (min-width: 1440px) {
  .portal-footer-shell .footer-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; }
  .portal-footer-shell .footer-bottom > span:first-child { font-size: .82rem; }
  .portal-footer-shell .policy-links-v16 { flex-wrap: nowrap; max-width: none; gap: 4px 7px; font-size: .70rem; white-space: nowrap; }
}
@media (min-width: 1021px) and (max-width: 1439px) {
  .portal-footer-shell .footer-bottom { align-items: flex-start; flex-direction: column; }
  .portal-footer-shell .policy-links-v16 { max-width: none; justify-content: flex-start; }
}

/* Version 1.31 — retain the approved AVO shell while making the portal
   navigation slightly more compact and keeping all footer lists on one
   identical vertical baseline. */
.portal-site-header .primary-nav > a,
.portal-site-header .nav-dropdown-v19 > .nav-link {
  font-size: 1.14rem !important;
}

/* Explore, Verification and Laboratory Contact Details each have a single
   heading row and a single list row.  This removes the inherited contact
   grid gap that previously lowered the address below its neighbouring links. */
.portal-footer-shell .footer-column:not(.footer-company) {
  display: grid;
  grid-template-rows: minmax(1.55em, auto) auto;
  align-content: start;
  row-gap: 10px;
}
.portal-footer-shell .footer-column:not(.footer-company) h4 {
  margin: 0;
}
.portal-footer-shell .footer-column-items {
  gap: 4px;
}

/* The public sign-in page keeps its original portal lock-up: logo, divider,
   then a right-aligned portal title.  It is not rendered for signed-in pages. */
.portal-site-header .portal-landing-identity {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-left: 0;
  border-left: 0;
  padding-left: 0;
  color: #295240;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .portal-site-header .portal-landing-identity {
    min-height: 26px;
    padding-left: 0;
    font-size: .92rem;
  }
}

/* Version 1.47 — align the portal shell with the current AVO website v111.
   Portal routes, roles, and account controls intentionally remain unchanged. */
.portal-site-header {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}
.portal-site-header .shell {
  width: min(1220px, calc(100% - (clamp(18px, 3vw, 42px) * 2)));
}
.portal-utility-bar,
.portal-utility-bar .utility-inner,
.portal-utility-bar .utility-account,
.portal-utility-bar .utility-right,
.portal-utility-bar a,
.portal-utility-bar .utility-menu summary,
.portal-utility-bar .utility-portal-title,
.portal-utility-bar .utility-user,
.portal-utility-bar .utility-separator {
  font-family: Inter, 'Noto Kufi Arabic', Tahoma, Arial, sans-serif !important;
  font-size: .84rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}
.portal-utility-bar,
.portal-utility-bar .utility-portal-title,
.portal-utility-bar .utility-user,
.portal-utility-bar .utility-separator {
  color: #eafff0;
}
.portal-utility-bar a,
.portal-utility-bar .utility-menu summary {
  color: #eafff0;
  opacity: .95;
}
.portal-utility-bar a:hover,
.portal-utility-bar a:focus-visible,
.portal-utility-bar .utility-menu summary:hover,
.portal-utility-bar .utility-menu summary:focus-visible {
  color: var(--orange);
  opacity: 1;
}
.portal-site-header .primary-nav > a,
.portal-site-header .nav-dropdown-v19 > .nav-link {
  font-size: 1.22rem !important;
  font-weight: 900 !important;
}

@media (max-width: 1020px) {
  .portal-site-header .shell {
    width: auto;
  }
}

/* Version 1.49 — current aqabavegoil.com v111 shell values and the matching
   compact utility-bar search interaction. Portal-only routes and permission
   checks remain unchanged. */
.portal-utility-bar {
  color: #EAFFF0;
  font: 800 13.4px/1.2 Inter, 'Noto Kufi Arabic', Tahoma, Arial, sans-serif;
}
.portal-utility-bar .utility-inner {
  justify-content: space-between !important;
  gap: 24px;
}
.portal-utility-bar .utility-portal-title,
.portal-utility-bar a,
.portal-utility-bar .utility-menu summary {
  color: #EAFFF0;
  font: inherit;
  text-decoration: none;
}
.portal-utility-bar .utility-user { color: rgba(234, 255, 240, .9); }
.portal-utility-bar .utility-separator { color: rgba(234, 255, 240, .86); }
.portal-utility-bar a:hover,
.portal-utility-bar a:focus-visible,
.portal-utility-bar .utility-menu summary:hover,
.portal-utility-bar .utility-menu summary:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.utility-search-trigger {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #EAFFF0;
  cursor: pointer;
}
/* v1.53: the only divider in the portal title group is the intentional text
   separator. This also neutralises any inherited button rule on old caches. */
.portal-utility-bar .utility-search-trigger {
  border: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none;
}
.utility-search-trigger svg,
.portal-search-field svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}
.utility-search-trigger:hover,
.utility-search-trigger:focus-visible { color: #fff; outline: 0; }
.utility-search-trigger:focus-visible { border-radius: 4px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }

/* Version 1.51 — internal Final Product Inspection Form and utility title. */
.portal-utility-bar .portal-utility-left { gap: 0; }
.portal-utility-bar .utility-release-version { color: rgba(234, 255, 240, .76); font-weight: 700; }
.portal-utility-bar .portal-utility-left .utility-search-trigger { margin-left: 0; }
.inspection-form-card { margin-top: 24px; }
.inspection-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.inspection-section-heading h2 { margin: 0; }
.inspection-section-heading .eyebrow { margin-bottom: 5px; }
.inspection-all-ok { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 40px; border: 1px solid rgba(0, 149, 65, .28); padding: 8px 12px; background: #F4FBF6; color: var(--deep); font-size: 13px; font-weight: 800; }
.inspection-all-ok input { width: auto; min-width: 17px; accent-color: var(--green); }
.inspection-all-ok--static { color: #0B6A39; }
.inspection-result-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.inspection-result-checks label { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--deep); font-weight: 700; white-space: nowrap; }
.inspection-result-checks input { width: 18px; min-width: 18px; height: 18px; accent-color: var(--green); }
.inspection-remarks-control { display: grid; min-width: 205px; gap: 7px; }
.inspection-remarks-choices { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.inspection-remarks-choices label { display: inline-flex; align-items: center; gap: 6px; color: var(--deep); font-size: 12px; font-weight: 700; white-space: nowrap; }
.inspection-remarks-choices input { width: 17px; min-width: 17px; height: 17px; accent-color: var(--green); }
.inspection-remarks-input { min-width: 205px; margin: 0; }
.inspection-remarks-input:disabled { display: none; }
.inspection-remarks-static { color: var(--deep); font-size: 12px; line-height: 1.45; white-space: normal; }
.inspection-table th { vertical-align: top; }
.inspection-table td { vertical-align: middle; }
.inspection-table select { min-width: 165px; margin: 0; }
.inspection-result { display: inline-flex; align-items: center; min-height: 30px; color: var(--deep); font-size: 12px; }
.inspection-result.conforming { color: #0B6A39; }
.inspection-result.nonconforming { color: var(--danger); }
.inspection-result.not-recorded { color: var(--muted); }
.inspection-disposition { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 0 0 16px; }
.inspection-disposition label { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.inspection-disposition input { width: auto; min-width: 16px; accent-color: var(--green); }
.inspection-signatures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 24px; border: 1px solid var(--line); background: var(--line); }
.inspection-signatures > div { min-height: 82px; padding: 15px; background: #F9FBFA; }
.inspection-signatures span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.inspection-signatures strong { color: var(--deep); }

.portal-site-header .main-nav {
  min-height: 104px;
  height: 104px;
  gap: 30px;
}
.portal-site-header .brand {
  flex: 0 0 178px;
  width: 178px;
}
.portal-site-header .brand img {
  width: 178px;
  max-width: 178px;
  height: 86px;
}
.portal-site-header .nav-links {
  flex: 1 1 auto;
  justify-content: flex-end;
  width: 100%;
  gap: 0;
}
.portal-site-header .primary-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 25px;
  margin-left: auto;
}
.portal-site-header .primary-nav > a,
.portal-site-header .nav-dropdown-v19 > .nav-link {
  color: #153225;
  padding: 0;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -.035em;
}
.portal-site-header .primary-nav > a::after,
.portal-site-header .nav-dropdown-v19 > .nav-link::after {
  bottom: -18px;
}
.portal-site-header .primary-nav > a:hover,
.portal-site-header .primary-nav > a:focus-visible,
.portal-site-header .nav-dropdown-v19:focus-within > .nav-link,
.portal-site-header .nav-dropdown-v19:hover > .nav-link { color: var(--green); }

.portal-search-overlay {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  padding: clamp(22px, 8vh, 96px) 18px;
}
.portal-search-overlay[hidden] { display: none !important; }
.portal-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 45, 26, .66);
  backdrop-filter: blur(4px);
}
.portal-search-dialog {
  position: relative;
  width: min(680px, 100%);
  border: 1px solid rgba(6, 59, 41, .14);
  border-top: 4px solid var(--orange);
  box-shadow: 0 28px 90px rgba(3, 45, 26, .28);
  background: #fff;
  padding: clamp(24px, 4vw, 38px);
}
.portal-search-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.portal-search-heading .eyebrow { margin-bottom: 5px; }
.portal-search-heading h2 { margin-bottom: 0; }
.portal-search-close {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 149, 65, .22);
  border-radius: 50%;
  background: #fff;
  color: var(--deep);
  cursor: pointer;
  font: 500 28px/1 Inter, Arial, sans-serif;
}
.portal-search-close:hover,
.portal-search-close:focus-visible { border-color: var(--orange); background: var(--orange); color: #fff; outline: 0; }
.portal-search-field {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 25px;
  border: 1px solid #B7CFC0;
  padding: 0 14px;
  color: var(--green);
}
.portal-search-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 149, 65, .13); }
.portal-search-field input { min-width: 0; border: 0; padding-left: 0; box-shadow: none; }
.portal-search-field input:focus { border: 0; box-shadow: none; }
.portal-search-help { margin: 9px 0 15px; color: var(--muted); font-size: 12px; }
.portal-search-results { display: grid; gap: 5px; }
.portal-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 18px;
  border: 1px solid transparent;
  padding: 13px 14px;
  color: var(--deep);
  text-decoration: none;
}
.portal-search-result strong { font-size: 15px; font-weight: 800; }
.portal-search-result span { grid-column: 1; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.portal-search-result b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #5E796C; font-size: 23px; font-weight: 500; }
.portal-search-result:hover,
.portal-search-result:focus-visible { border-color: rgba(0, 149, 65, .12); background: #F4FAF5; color: var(--green); outline: 0; }
.portal-search-result:hover span,
.portal-search-result:focus-visible span,
.portal-search-result:hover b,
.portal-search-result:focus-visible b { color: var(--green); }
.portal-search-empty { margin: 12px 0 0; padding: 16px; background: #F8FCF7; color: var(--muted); font-size: 13px; }
body.portal-search-open { overflow: hidden; }

/* v1.59 — restored v1.55 desktop-header geometry and dashboard action queue. */
.portal-site-header .main-nav { height: 104px; min-height: 104px; gap: 14px; padding: 0; }
.portal-site-header .brand { flex: 0 0 auto; width: auto; }
.portal-site-header .brand img { width: auto; max-width: 260px; height: 86px; }
.portal-site-header .nav-links { gap: 16px; width: auto; }
.portal-site-header .primary-nav { gap: 16px; margin-left: 0; }
.portal-site-header .primary-nav > a,
.portal-site-header .nav-dropdown-v19 > .nav-link { padding: 12px 0; color: #295240; font-size: .84rem !important; font-weight: 900 !important; letter-spacing: 0; }
.portal-site-header .primary-nav > a::after,
.portal-site-header .nav-dropdown-v19 > .nav-link::after { bottom: 0; }
.portal-site-header .primary-nav > a:hover,
.portal-site-header .primary-nav > a:focus-visible,
.portal-site-header .nav-dropdown-v19:focus-within > .nav-link,
.portal-site-header .nav-dropdown-v19:hover > .nav-link { color: #295240; }
.portal-site-header .nav-dropdown-menu-v19 { top: calc(100% + 18px); width: 190px; min-width: 190px; max-width: 220px; border-radius: 18px; }
.portal-site-header .nav-dropdown-menu-v19 a { padding: 9px 11px; font-size: .84rem; font-weight: 850; }
.dashboard-queue { margin: 26px 0; border: 1px solid var(--line); border-top: 4px solid var(--orange); background: #fff; box-shadow: var(--shadow); padding: 25px; }
.dashboard-queue-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dashboard-queue-heading h2 { margin-bottom: 5px; }
.dashboard-queue-heading .subtle { margin: 0; max-width: 780px; }
.dashboard-queue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dashboard-queue-card { min-height: 148px; border: 1px solid #D9E5DD; background: #F9FCF9; padding: 15px; }
.dashboard-queue-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dashboard-queue-card-head h3 { margin: 0; font-size: 14px; }
.dashboard-queue-card-head > strong { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--deep); color: #fff; font-size: 12px; }
.dashboard-queue-card > p { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.dashboard-queue-item { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(6,59,41,.12); color: var(--deep); text-decoration: none; }
.dashboard-queue-item strong { display: block; font-size: 12px; line-height: 1.35; }
.dashboard-queue-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.dashboard-queue-item:hover strong, .dashboard-queue-item:hover span, .dashboard-queue-item:focus-visible strong, .dashboard-queue-item:focus-visible span { color: var(--green); }

@media (max-width: 1020px) {
  .portal-site-header .main-nav { min-height: 0; height: auto; padding: 12px 16px; }
  .portal-site-header .nav-links { width: auto; gap: 8px; }
  .portal-site-header .primary-nav { gap: 8px; }
  .portal-site-header .primary-nav > a, .portal-site-header .nav-dropdown-v19 > .nav-link { padding: 12px 14px; font-size: 1rem !important; }
  .dashboard-queue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-site-header .main-nav { min-height: 0; height: auto; }
  .portal-site-header .brand { flex-basis: auto; width: auto; }
  .portal-site-header .brand img { width: auto; max-width: 260px; }
}
@media (max-width: 640px) {
  .dashboard-queue { padding: 20px; }
  .dashboard-queue-heading { flex-direction: column; }
  .dashboard-queue-grid { grid-template-columns: 1fr; }
  .portal-utility-bar .utility-account { gap: 0; }
  .utility-search-trigger { margin-left: 8px; padding-left: 0; }
  .portal-utility-bar .portal-utility-left { display: inline-flex; min-width: 0; }
  .portal-utility-bar .portal-utility-left .utility-portal-title { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
  .inspection-section-heading { align-items: flex-start; flex-direction: column; }
  .management-matrix-heading { flex-direction: column; gap: 6px; }
  .inspection-table select { min-width: 145px; }
  .inspection-remarks-control, .inspection-remarks-input { min-width: 170px; }
  .inspection-signatures { grid-template-columns: 1fr; }
  .portal-site-header .brand img { max-width: 210px; }
  .portal-search-dialog { padding: 24px 20px; }
}

/* v1.60 — exact v1.55 desktop header sizing and navigation typography. */
@media screen and (min-width: 1021px) {
  .portal-site-header .main-nav { min-height: 104px; height: 104px; gap: 30px; }
  .portal-site-header .brand { flex: 0 0 178px; width: 178px; }
  .portal-site-header .brand img { width: 178px; max-width: 178px; height: 86px; }
  .portal-site-header .nav-links { flex: 1 1 auto; justify-content: flex-end; width: 100%; gap: 0; }
  .portal-site-header .primary-nav { flex: 1 1 auto; justify-content: flex-end; gap: 25px; margin-left: auto; }
  .portal-site-header .primary-nav > a,
  .portal-site-header .nav-dropdown-v19 > .nav-link {
    color: #153225;
    padding: 0;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: -.035em;
  }
  .portal-site-header .primary-nav > a::after,
  .portal-site-header .nav-dropdown-v19 > .nav-link::after { bottom: -18px; }
  .portal-site-header .primary-nav > a:hover,
  .portal-site-header .primary-nav > a:focus-visible,
  .portal-site-header .nav-dropdown-v19:focus-within > .nav-link,
  .portal-site-header .nav-dropdown-v19:hover > .nav-link { color: var(--green); }
}

/* v1.77.2 — every Portal Management tab reaches the right edge at equal width. */
.admin-section-nav[aria-label="Portal Management areas"] { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.admin-section-nav[aria-label="Portal Management areas"] .management-tab { justify-content: center; text-align: center; }
.portal-management-panel > .admin-section,
.portal-management-panel .portal-management-panel { margin-bottom: 34px; }
.portal-management-panel .admin-section-heading {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--deep);
  padding: 22px 24px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F5FAF7 100%);
  box-shadow: var(--shadow);
}

/* v1.78.0 — coordinated record layout, sticky controls and action hierarchy. */
.record-sticky-header {
  position: sticky;
  top: 0;
  z-index: 24;
  border-top: 4px solid var(--orange, #ec5810);
  box-shadow: 0 12px 30px rgba(6, 59, 41, .1);
}
.record-sticky-actions,
.bench-form > .button-row {
  position: sticky;
  bottom: 0;
  z-index: 22;
  padding: 12px;
  margin-inline: -12px;
  background: rgba(248, 252, 249, .97);
  border-top: 1px solid #cfe1d6;
  backdrop-filter: blur(12px);
}
.record-sticky-actions { align-items: flex-end; }
.record-sticky-actions > .button { flex: 0 0 auto; align-self: flex-end; width: auto; }
.record-sticky-actions > form { flex: 0 1 auto; align-self: flex-end; margin: 0; }
.button,
button.button {
  min-height: 44px;
  border-radius: 9px;
  font-weight: 700;
}
.button:not(.secondary):not(.orange):not(.danger) { background: #0b7147; color: #fff; }
.button.orange { background: #ec5810; color: #fff; }
.button.danger { background: #a72b2b; color: #fff; }
.button.secondary { background: #fff; color: #063b29; border: 1px solid #9fc1ad; }
.record-history,
.saved-filter-panel { margin-top: 18px; }
.autosave-status { color: #526b5d; align-self: center; margin-inline-start: 8px; }
.sensitive-reauthentication { min-width: 220px; }
.sensitive-reauthentication small { display: block; color: #64786c; margin-top: 4px; }
.bench-review-actions { display: grid; grid-template-columns: max-content max-content; align-items: center; justify-content: start; gap: 10px; }
.bench-review-actions > .button,
.bench-review-actions > form { flex: 0 0 auto; align-self: center; }
.bench-review-actions > form { display: flex; align-items: center; margin: 0; }
.bench-review-actions > form > .button { width: auto; min-width: 0; }
.approval-session-note { margin: 10px 0 0; }
.bench-workflow-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.bench-workflow-section.is-locked { opacity: .68; }
.bench-workflow-section.is-locked::before { content: "Locked by the controlled Section A handover state"; display: block; margin: 12px 0; padding: 10px 12px; background: #edf5f0; color: #335a47; font-weight: 700; border-left: 4px solid #0b7147; }
.bench-workflow-section.is-locked input,
.bench-workflow-section.is-locked select,
.bench-workflow-section.is-locked textarea,
.bench-workflow-section.is-locked button,
.bench-workflow-section.is-locked label { pointer-events: none; }
.bench-workflow-section.is-locked a {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  opacity: 1;
}
.bench-method-link { isolation: isolate; cursor: pointer; }
.mobile-handover-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.mobile-handover-actions > form { border: 1px solid var(--line); padding: 18px; background: #f8fcf9; }
.mobile-handover-actions .approval-check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 18px; }
.mobile-handover-actions .approval-check input { width: auto; margin-top: 3px; }
.admin-reassignment { flex: 1 1 100%; max-width: 760px; border: 1px solid var(--line); padding: 12px 14px; background: #f8fcf9; }
.admin-reassignment summary { cursor: pointer; color: var(--deep); font-weight: 800; }
.admin-reassignment form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 14px; }
.admin-reassignment .field { margin: 0; }
.admin-reassignment .button { align-self: end; }
.management-card--wide { width: 100%; }
@media (max-width: 760px) {
  .record-sticky-header { position: static; }
  .record-sticky-actions { position: static; margin-inline: 0; }
  .saved-filter-panel .form-grid { grid-template-columns: 1fr; }
  .bench-review-actions, .mobile-handover-actions { grid-template-columns: 1fr; }
  .admin-reassignment form { grid-template-columns: 1fr; }
  .bench-review-actions > .button, .bench-review-actions > form, .bench-review-actions > form > .button { width: 100%; }
}
.portal-management-panel .admin-section-heading .eyebrow { margin-bottom: 7px; }
.portal-management-panel .admin-section-heading h2 { margin-bottom: 7px; }
.portal-management-panel .admin-section-heading .subtle { max-width: 980px; }
.management-matrix-group { margin-top: 28px; }
.management-matrix-group > h3 { margin: 0 0 12px; color: var(--deep); font-size: 18px; }
.management-matrix-group--item { border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: 22px; background: #fff; box-shadow: var(--shadow); }
.management-matrix-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 0 14px; }
.management-matrix-heading h3 { margin: 0; color: var(--deep); font-size: 19px; }
.management-matrix-heading .subtle { max-width: 620px; margin: 0; }
.management-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.management-card { border: 1px solid var(--line); background: #fff; padding: 22px; }
.management-card--wide { grid-column: 1 / -1; }
.management-security-stack { grid-template-columns: 1fr; }
.management-channel-card { border-left: 5px solid var(--deep); box-shadow: var(--shadow); }
.management-channel-card--ios { border-left-color: var(--green); }
.management-channel-card--mobile { border-left-color: var(--orange); }
.management-channel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.management-channel-heading h2 { margin-bottom: 0; }
.management-channel-heading .status { flex: 0 0 auto; max-width: 190px; text-align: center; }
.management-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 22px; }
.management-overview-link { display: flex; min-height: 170px; box-sizing: border-box; flex-direction: column; border: 1px solid var(--line); border-top: 4px solid var(--green); padding: 21px; background: #fff; box-shadow: var(--shadow); color: var(--deep); text-decoration: none; }
.management-overview-link:hover, .management-overview-link:focus-visible { border-top-color: var(--orange); color: var(--green); transform: translateY(-2px); }
.management-overview-link span { margin-bottom: 8px; font-size: 17px; font-weight: 850; line-height: 1.25; }
.management-overview-link small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.management-overview-link b { margin-top: auto; padding-top: 18px; color: var(--green); font-size: 12px; }

.management-card h2 { margin-top: 0; }
.email-template-html-editor { min-height: 360px; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 13px; line-height: 1.55; }
.email-outlook-setting { grid-template-columns: 1fr; margin-bottom: 18px; }
.email-template-grid { align-items: stretch; }
.email-template-card { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.email-template-card form { display: flex; flex: 1; flex-direction: column; }
.email-template-card .button-row { margin-top: auto; }
.security-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 20px 0; background: var(--line); border: 1px solid var(--line); }
.security-policy-grid > div { min-height: 92px; padding: 15px; background: #F9FBFA; }
.security-policy-grid span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.security-policy-grid strong { display: block; color: var(--deep); font-size: 13px; line-height: 1.45; }
@media (max-width: 860px) {
  .admin-section-nav,
  .admin-section-nav[aria-label="Portal Management areas"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .management-card-grid, .security-policy-grid { grid-template-columns: 1fr; }
  .management-channel-heading { flex-direction: column; }
}
@media (max-width: 520px) {
  .admin-section-nav,
  .admin-section-nav[aria-label="Portal Management areas"] { grid-template-columns: 1fr; }
  .portal-management-panel .admin-section-heading { padding: 19px; }
  .management-overview-grid { grid-template-columns: 1fr; }
}

/* v1.80.5+ controlled access-review and deployment-readiness workspaces. */
.access-review-table { width: 100%; min-width: 1040px; table-layout: fixed; }
.access-review-table th:nth-child(1) { width: 16%; }
.access-review-table th:nth-child(2) { width: 19%; }
.access-review-table th:nth-child(3) { width: 13%; }
.access-review-table th:nth-child(4) { width: 22%; }
.access-review-table th:nth-child(5) { width: 30%; }
.access-review-findings { margin: 0; padding-left: 18px; }
.access-review-findings li + li { margin-top: 7px; }
.access-review-table th:nth-child(5),
.access-review-table td:nth-child(5) { min-width: 0; padding-right: 12px; }
.access-review-form {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  border: 1px solid #C5D8CC;
  padding: 16px;
  background: #F8FBF9;
}
.access-review-form .field { min-width: 0; margin: 0; }
.access-review-form input:not([type="hidden"]):not([type="checkbox"]),
.access-review-form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #9FBEAD;
  background: #fff;
}
.access-review-form textarea { min-height: 88px; resize: vertical; }
.access-review-form .button { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; white-space: normal; }
.access-review-table .approval-check { align-items: flex-start; white-space: normal; }
.access-review-table .approval-check input { flex: 0 0 auto; }
.access-review-filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); align-items: end; gap: 20px; margin-bottom: 18px; border: 1px solid var(--line); border-left: 4px solid var(--green); padding: 16px 18px; background: #f8fbf9; }
.access-review-filter h3, .access-review-filter p { margin-top: 0; }
.access-review-filter .field { margin: 0; }

.weekly-insight { margin-bottom: 24px; border-top: 4px solid var(--green); }
.weekly-insight > form { margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.weekly-insight-proposal { display: grid; grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr); gap: 22px; margin: 18px 0; border: 1px solid var(--line); padding: 20px; background: #F8FBF9; }
.weekly-insight-proposal h4 { margin: 8px 0 6px; color: var(--deep); font-size: 20px; }
.weekly-insight-actions { display: grid; gap: 12px; }
.weekly-insight-actions form { display: grid; min-width: 0; gap: 10px; border: 1px solid var(--line); padding: 14px; background: #fff; }
.weekly-insight-actions input { width: 100%; min-width: 0; }
.weekly-insight details { margin-top: 18px; }
.weekly-insight details > summary { color: var(--green); cursor: pointer; font-weight: 800; }

.mobile-release-card { border-top: 4px solid var(--green); }
.mobile-release-card + .mobile-release-card { margin-top: 24px; }
.mobile-release-card--alerts { border-top-color: var(--orange); }
.mobile-release-card .report-top { margin-bottom: 18px; }
.mobile-release-card .report-top h3 { margin: 0 0 6px; }
.mobile-release-table { min-width: 900px; }
.mobile-release-action { display: grid; min-width: 170px; gap: 8px; }
.mobile-release-action input { width: 100%; min-width: 0; padding: 8px 9px; font-size: 11px; }
.mobile-release-action .button { width: 100%; min-width: 0; }
.readiness-table td:nth-child(2) { white-space: nowrap; }
.readiness-table td:last-child { min-width: 360px; }
.deployment-readiness-card .report-top { margin-bottom: 18px; }
.deployment-readiness-card .report-top h3 { margin: 0 0 7px; }
.deployment-readiness-card .report-top .subtle { margin: 0; }
.broadcast-composer { border-top: 4px solid var(--orange); }
.broadcast-composer-heading { margin: 0 0 24px; }
.broadcast-composer-heading .eyebrow { margin-bottom: 7px; }
.broadcast-composer-heading h3 { margin: 0 0 8px; color: var(--deep); }
.broadcast-composer-heading .subtle {
  width: 100%;
  max-width: 1120px;
  margin: 0;
  text-align: left;
  text-align-last: auto;
}
.broadcast-composer-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 24px; align-items: start; }
.broadcast-fields { min-width: 0; }
.broadcast-fieldset { display: grid; gap: 10px; margin: 0 0 18px; border: 1px solid var(--line); padding: 16px; background: #F8FBF9; }
.broadcast-fieldset legend { padding: 0 7px; color: var(--deep); font-size: 13px; font-weight: 850; }
.broadcast-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.broadcast-choice { display: flex; min-width: 0; align-items: flex-start; gap: 8px; border: 1px solid var(--line); padding: 10px; background: #fff; color: var(--deep); font-size: 12px; }
.broadcast-choice input { width: auto; min-width: 16px; margin-top: 2px; accent-color: var(--green); }
.broadcast-choice span { display: grid; min-width: 0; gap: 3px; }
.broadcast-choice strong, .broadcast-choice small { overflow-wrap: anywhere; }
.broadcast-choice small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.broadcast-user-choices { display: grid; max-height: 240px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow-y: auto; padding-right: 4px; }
.broadcast-preview { position: sticky; top: 18px; border: 1px solid var(--line); border-top: 4px solid var(--green); padding: 20px; background: #F5FAF7; }
.broadcast-preview-card { display: grid; gap: 7px; margin: 12px 0 16px; border-radius: 14px; padding: 16px; background: #fff; box-shadow: 0 10px 28px rgba(6,59,41,.13); }
.broadcast-preview-card > span, .broadcast-preview-card small { color: var(--muted); font-size: 10px; font-weight: 750; }
.broadcast-preview-card strong { color: var(--deep); font-size: 14px; overflow-wrap: anywhere; }
.broadcast-preview-card p { margin: 0; color: #314c3e; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.broadcast-history-heading { margin-bottom: 18px; }
.broadcast-history-heading h3 { margin: 0 0 6px; }
.broadcast-history-heading .eyebrow { margin-bottom: 6px; }
.broadcast-history-heading .subtle { max-width: 760px; margin: 0; }
.broadcast-history-table-wrap { border: 1px solid var(--line); background: #fff; }
.broadcast-history-table { min-width: 980px; margin: 0; }
.broadcast-history-table th:nth-child(1) { width: 28%; }
.broadcast-history-table th:nth-child(2) { width: 14%; }
.broadcast-history-table th:nth-child(3) { width: 11%; }
.broadcast-history-table th:nth-child(4) { width: 15%; }
.broadcast-history-table th:nth-child(5) { width: 17%; }
.broadcast-history-table th:nth-child(6) { width: 15%; }
.broadcast-history-table th { white-space: nowrap; }
.broadcast-history-table td { vertical-align: top; }
.broadcast-history-table td:last-child { min-width: 156px; }
.broadcast-history-table td:last-child > .button { width: 100%; justify-content: center; }
.broadcast-history-table td:last-child form { display: grid; gap: 7px; margin-top: 8px; }
.broadcast-history-table td:last-child input { width: 100%; min-width: 0; padding: 8px 9px; font-size: 11px; }
.broadcast-history-table td:last-child .text-button { width: 100%; min-height: 34px; border: 1px solid #e1b7a0; border-radius: 9px; background: #fff7f1; padding: 7px 11px; color: #9a3b00; font-size: 11px; font-weight: 850; text-align: center; }
.broadcast-history-table td:last-child .text-button:hover,
.broadcast-history-table td:last-child .text-button:focus-visible { border-color: var(--orange); background: #fff0e5; color: #7b2f00; outline: 0; }
.broadcast-history-empty { padding: 24px !important; color: var(--muted); text-align: center; }
.broadcast-history { margin-top: 28px; }
.button.compact { min-height: 34px; padding: 7px 11px; font-size: 11px; }
@media (max-width: 980px) {
  .broadcast-composer-grid { grid-template-columns: 1fr; }
  .broadcast-preview { position: static; }
}
@media (max-width: 680px) {
  .broadcast-choice-grid, .broadcast-user-choices { grid-template-columns: 1fr; }
}

/* v1.80.4 mobile-browser parity with AVO Quality iOS v1.0 build 10. */
.bench-sheet-archive { margin-top: 30px; }
.daily-inspection-section { margin-top: 28px; }
.daily-inspection-standards ul { margin: 12px 0 0; padding-left: 22px; }
.daily-inspection-standards li + li { margin-top: 8px; }
.account-security-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 24px;
}
.account-security-card { margin: 0; }
.account-security-card > p:not(.eyebrow):not(.notice) { color: var(--muted); }
.account-security-card > form { display: grid; gap: 14px; }
.account-security-card > form > .button { justify-self: start; }
.account-lost-device-card { display: flex; flex-direction: column; }
.account-device-protection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.account-device-protection {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.account-device-protection .eyebrow { margin-bottom: 4px; }
.account-device-protection h3 { margin: 0 0 8px; }
.account-device-protection > p:not(.eyebrow):not(.notice) { color: var(--muted); }
.account-device-protection .summary-list { margin: 4px 0 16px; }
.account-device-protection form { display: grid; gap: 12px; margin-top: auto; }
.account-device-protection .notice { margin-top: auto; }
.account-device-protection .button { width: 100%; }
.account-security-grid--rows .account-device-protection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  align-items: start;
  column-gap: 28px;
}
.account-security-grid--rows .account-device-protection-row > .eyebrow,
.account-security-grid--rows .account-device-protection-row > h2,
.account-security-grid--rows .account-device-protection-row > p {
  grid-column: 1;
}
.account-security-grid--rows .account-device-protection-row > .summary-list {
  grid-column: 1;
  margin-bottom: 0;
}
.account-security-grid--rows .account-device-protection-row > form,
.account-security-grid--rows .account-device-protection-row > .notice {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  width: 100%;
  margin: 0;
}

@media (max-width: 900px) {
  .account-security-grid { grid-template-columns: 1fr; }
  .account-security-grid--rows .account-device-protection-row { grid-template-columns: 1fr; }
  .account-security-grid--rows .account-device-protection-row > .eyebrow,
  .account-security-grid--rows .account-device-protection-row > h2,
  .account-security-grid--rows .account-device-protection-row > p,
  .account-security-grid--rows .account-device-protection-row > .summary-list,
  .account-security-grid--rows .account-device-protection-row > form,
  .account-security-grid--rows .account-device-protection-row > .notice {
    grid-column: 1;
    grid-row: auto;
  }
  .account-security-grid--rows .account-device-protection-row > form,
  .account-security-grid--rows .account-device-protection-row > .notice { margin-top: 16px; }
}
@media (max-width: 600px) {
  .account-device-protection-list { grid-template-columns: 1fr; }
}

.mobile-bench-shell {
  min-width: 320px;
  margin: 0;
  background: #F4F9F6;
  color: #132019;
}
.mobile-bench-main {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 18px 16px 40px;
  background: linear-gradient(180deg, #fff 0, #F7FBF8 42%, #F4F9F6 100%);
}
.mobile-bench-frame {
  display: grid;
  width: min(100%, 760px);
  margin: 0 auto;
  gap: 16px;
}
.mobile-bench-shell .flash { margin: 0; border-radius: 12px; }
.mobile-bench-shell .card {
  box-sizing: border-box;
  margin: 0;
  border: 1px solid #D5E3D9;
  border-top-width: 1px;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 73, 50, .025);
}
.mobile-bench-shell .card h1,
.mobile-bench-shell .card h2,
.mobile-bench-shell .card h3 { color: #004932; }
.mobile-bench-shell .card > :last-child { margin-bottom: 0; }
.mobile-bench-shell .eyebrow {
  color: #0B7147;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mobile-bench-shell .subtle,
.mobile-bench-shell .card p { color: #566C61; }
.mobile-bench-shell .button,
.mobile-bench-shell button.button {
  min-height: 48px;
  border-radius: 10px;
  padding: 12px 16px;
}
.mobile-bench-shell .field input,
.mobile-bench-shell .field select,
.mobile-bench-shell .field textarea {
  min-height: 50px;
  border-color: #B7CFC0;
  border-radius: 10px;
  background: #F4F8F5;
  color: #132019;
}

.mobile-bench-login-identity,
.mobile-bench-login-panel,
.mobile-bench-login-showcase {
  width: min(100%, 540px);
  box-sizing: border-box;
  margin-inline: auto;
}
.mobile-bench-language-en { direction:ltr; text-align:left; }

/* v1.80.7 — unified document workflows and balanced management navigation. */
.status.waiting { background: #E5EFFF; color: #164B8F; }
.status.approved, .status.finalized, .status.locked { background: #E2F5E9; color: #00652E; }
.status.issued { background: #E2F5E9; color: #00652E; }
.status.returned { background: #FFE3E1; color: #92261E; }

.document-workflow-banner { margin: 18px 0; border: 1px solid #CFE1D6; background: #F8FCF9; }
.document-workflow-banner ol { display: grid; grid-template-columns: repeat(var(--workflow-columns, 4), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.document-workflow-step { position: relative; display: flex; min-width: 0; align-items: center; gap: 9px; padding: 11px 13px; color: #64786C; font-size: 12px; }
.document-workflow-step + .document-workflow-step { border-left: 1px solid #CFE1D6; }
.document-workflow-step span { display: inline-grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border-radius: 50%; background: #E8EFEB; color: #496257; font-size: 11px; font-weight: 900; }
.document-workflow-step strong { overflow-wrap: anywhere; }
.document-workflow-step.is-complete { color: #0B6A39; }
.document-workflow-step.is-complete span { background: #DDF3E4; color: #0B6A39; }
.document-workflow-step.is-current { box-shadow: inset 0 -3px 0 var(--orange); color: var(--deep); }
.document-workflow-step.is-current span { background: var(--orange); color: #fff; }

.document-action-bar { align-items: center; }
.document-action-bar > * { order: 5; }
.document-action-bar .action-back { order: 1; }
.document-action-bar .action-save { order: 2; }
.document-action-bar .action-primary,
.document-action-bar > form { order: 3; }
.document-action-bar .action-output { order: 4; display: inline-flex; flex-wrap: wrap; gap: 10px; }
.document-action-bar .action-related { order: 5; display: inline-flex; flex-wrap: wrap; gap: 10px; }
.document-action-bar > form { margin: 0; }

.management-tab-navigation { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; }
.management-tab-row { display: grid; gap: 8px; }
.management-tab-row--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.management-tab-row--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.management-counter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.management-counter-card { display: flex; min-height: 92px; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-top: 4px solid var(--green); padding: 16px 18px; background: #fff; box-shadow: var(--shadow); color: var(--deep); text-decoration: none; }
.management-counter-card:hover, .management-counter-card:focus-visible { border-top-color: var(--orange); color: var(--green); transform: translateY(-2px); }
.management-counter-card strong { font-size: 28px; line-height: 1; }
.management-counter-card span { margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }

.controlled-register-sections { display: grid; gap: 24px; }
.controlled-register-sections .controlled-register-direct-entry + .controlled-register-controls { margin-top: 0; }

/* v1.80.8 reversible Portal Management navigation trial. */
.portal-management-layout {
  display: grid;
  grid-template-columns: minmax(248px, 22%) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.portal-management-main { min-width: 0; }
.portal-management-sidebar {
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  padding: 16px 12px 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.portal-management-sidebar > .eyebrow { margin: 0 10px 10px; color: var(--orange); }
.portal-management-actions { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.portal-management-actions > .eyebrow { margin: 0 10px 10px; color: var(--green); }
.portal-management-actions .portal-sidebar-link { width: 100%; border: 0; background-color: transparent; text-align: left; cursor: pointer; }
.portal-management-actions .portal-contextual-link--primary { background: var(--green); color: #fff; }
.portal-management-actions .portal-contextual-link--primary:hover,
.portal-management-actions .portal-contextual-link--primary:focus-visible { background: var(--deep); color: #fff; }
.portal-management-actions-empty { margin: 0 10px 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.portal-management-mobile-tools { display: none; }
.portal-management-sidebar .management-tab-navigation {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 4px !important;
  width: 100%;
  margin: 0;
}
.portal-management-sidebar .management-tab {
  min-height: 52px;
  justify-content: flex-start !important;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  padding: 11px 12px;
  background: transparent;
  color: var(--deep);
  text-align: left !important;
  line-height: 1.25;
}
.portal-management-sidebar .management-tab:hover,
.portal-management-sidebar .management-tab:focus-visible {
  background: #FFF4E8;
  color: var(--deep);
}
.portal-management-sidebar .management-tab.is-current {
  background: var(--orange);
  color: var(--deep);
  box-shadow: none;
}
.management-tab-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.management-tab-label { min-width: 0; }
.portal-management-mobile-navigation {
  display: none;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.portal-management-mobile-navigation > label {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
}
.portal-management-mobile-navigation > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.portal-management-actions--mobile { border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: 16px 12px 12px; background: #fff; box-shadow: var(--shadow); }

.approval-review-modal { position: fixed; z-index: 10020; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(3,35,24,.72); backdrop-filter: blur(4px); }
.approval-review-modal[hidden] { display: none; }
.approval-review-dialog { width: min(680px,100%); max-height: calc(100vh - 40px); overflow-y: auto; border-top: 6px solid var(--orange); padding: 26px; background: #fff; box-shadow: 0 18px 60px rgba(3,35,24,.28); }
.approval-review-dialog h2 { margin: 0 0 8px; }
.approval-review-changes { display: grid; gap: 10px; margin: 20px 0; }
.approval-review-change { border: 1px solid var(--line); border-left: 4px solid var(--green); padding: 13px 15px; background: #f8fbf9; }
.approval-review-change h3, .approval-review-change p { margin: 0; }
.approval-review-change p + p { margin-top: 6px; }
body.approval-review-open { overflow: hidden; }

@media (max-width: 1100px) {
  .management-tab-navigation { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .management-tab-row { display: contents; }
}
@media (max-width: 1020px) {
  .portal-management-layout { grid-template-columns: minmax(0, 1fr); }
  .portal-management-sidebar { display: none; }
  .portal-management-mobile-navigation { display: block; }
  .portal-management-mobile-tools { display: grid; gap: 14px; margin-bottom: 24px; }
  .portal-management-mobile-tools .portal-management-mobile-navigation { display: block; margin: 0; }
}
@media (max-width: 760px) {
  .document-workflow-banner ol { grid-template-columns: 1fr; }
  .document-workflow-step + .document-workflow-step { border-left: 0; border-top: 1px solid #CFE1D6; }
  .document-action-bar, .document-action-bar .action-output, .document-action-bar .action-related { align-items: stretch; width: 100%; }
  .document-action-bar .button, .document-action-bar > form, .document-action-bar > form .button { width: 100%; }
  .management-tab-navigation, .management-counter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
  .management-tab-navigation, .management-counter-grid { grid-template-columns: 1fr !important; }
  .portal-management-mobile-navigation > div { grid-template-columns: 1fr; }
  .portal-management-mobile-navigation .button { width: 100%; }
}
.mobile-bench-login-identity {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 14px;
  padding-inline: 2px;
}
.mobile-bench-login-identity img { width: 136px; height: 66px; object-fit: contain; }
.mobile-bench-login-identity > span { width: 1px; height: 34px; background: rgba(0, 73, 50, .22); }
.mobile-bench-login-identity strong { color: #004932; font-size: 16px; line-height: 1.25; }
.mobile-bench-login-panel,
.mobile-bench-login-showcase {
  position: relative;
  border: 1px solid #D5E3D9;
  padding: 24px;
  background: #fff;
  box-shadow: 0 9px 19px rgba(0, 73, 50, .075);
}
.mobile-bench-login-panel::before,
.mobile-bench-login-showcase::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 3px;
  background: #EC5810;
  content: "";
}
.mobile-bench-login-panel h1 { margin: 6px 0 8px; color: #004932; font-size: 27px; }
.mobile-bench-login-panel > p:not(.eyebrow):not(.mobile-bench-login-note) { margin: 0 0 18px; color: #566C61; font-size: 15px; line-height: 1.5; }
.mobile-bench-login-panel form { display: grid; gap: 16px; }
.mobile-bench-login-panel .field { margin: 0; }
.mobile-bench-login-panel .field label { display: block; margin-bottom: 7px; color: #004932; font-size: 13px; font-weight: 700; }
.mobile-bench-login-panel .field > input { min-height: 52px; border: 1px solid #B7CFC0; border-radius: 0; background: #fff; }
.mobile-bench-login-panel .button { width: 100%; border-radius: 0; background: #0B7147; }
.mobile-bench-email-field { display: flex; min-height: 52px; border: 1px solid #B7CFC0; background: #fff; }
.mobile-bench-email-field input { min-width: 0; flex: 1 1 auto; border: 0 !important; border-radius: 0 !important; background: #fff !important; }
.mobile-bench-email-field span { display: flex; align-items: center; border-left: 1px solid #D5E3D9; padding: 0 10px; background: #F7FAF8; color: #566C61; font-size: 12px; font-weight: 700; }
.mobile-bench-login-note { margin: 16px 0 0; color: #566C61; font-size: 12px; line-height: 1.5; }
.mobile-bench-login-showcase {
  background: linear-gradient(135deg, #F7FBF8, #E9F8ED);
}
.mobile-bench-login-showcase::before { background: #0B7147; }
.mobile-bench-login-showcase h2 { margin: 6px 0 7px; color: #004932; font-size: 18px; }
.mobile-bench-login-showcase > p:not(.eyebrow) { margin: 0; color: #566C61; font-size: 15px; line-height: 1.5; }
.mobile-bench-login-showcase img { display: block; width: auto; height: 96px; margin: 16px auto; object-fit: contain; }
.mobile-bench-login-showcase > strong { display: block; color: #004932; font-size: 12px; line-height: 1.5; }

.mobile-bench-app-heading { display: flex; align-items: center; gap: 12px; }
.mobile-bench-app-heading > h1 { flex: 1 1 auto; margin: 0; color: #004932; font-size: 25px; line-height: 1.18; }
.mobile-bench-account-menu { position: relative; flex: 0 0 auto; }
.mobile-bench-account-menu > summary {
  display: grid;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  padding: 0;
  background: #fff;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .09);
  cursor: pointer;
  line-height: 0;
  list-style: none;
}
.mobile-bench-account-menu > summary::-webkit-details-marker { display: none; }
.mobile-bench-account-menu > summary img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center center; }
.mobile-bench-account-initials { display: grid; width: 100%; height: 100%; place-items: center; background: #e9f8ed; color: #006f42; font-size: 14px; font-weight: 900; letter-spacing: .04em; line-height: 1; }
.mobile-bench-account-menu > div {
  position: absolute;
  z-index: 40;
  top: 52px;
  right: 0;
  max-width: calc(100vw - 32px);
  display: grid;
  min-width: 190px;
  border: 1px solid #D5E3D9;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0, 73, 50, .14);
}
.mobile-bench-account-menu > div strong { padding: 9px 10px; color: #004932; font-size: 12px; }
.mobile-bench-account-menu > div a { border-radius: 8px; padding: 10px; color: #0B7147; font-size: 13px; font-weight: 750; text-decoration: none; }
.mobile-bench-account-menu > div a:hover,
.mobile-bench-account-menu > div a:focus-visible { background: #E9F8ED; }
.mobile-bench-account-menu > div a.danger { color: #A72B2B; }
.mobile-bench-release-list { display: grid; gap: 10px; padding-left: 22px; line-height: 1.55; }
.mobile-bench-about-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 20px 0; }
.mobile-bench-about-meta > div { display: grid; gap: 4px; border: 1px solid #d5e3d9; border-radius: 10px; padding: 13px; background: #f8fbf9; }
.mobile-bench-about-meta span { color: #64776d; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.mobile-bench-about-meta strong { color: #004932; }
.mobile-bench-connection-identity { display: flex; min-height: 42px; align-items: center; border: 1px solid #d5e3d9; border-radius: 12px; padding: 9px 12px; background: #fff; box-shadow: 0 3px 10px rgba(0,73,50,.025); }
.mobile-bench-connection-identity > p { display: flex; width:100%; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; text-align: left; }
.mobile-bench-connection-identity > p b { color: #0b7147; font-size: 12px; }
.mobile-bench-connection-identity > p span { color: #64776d; font-size: 10px; }
.mobile-bench-connection-identity .mobile-bench-last-login { margin-inline-start:auto; text-align:end; }

.mobile-bench-hero {
  display: grid;
  gap: 14px;
  border-radius: 18px;
  padding: 20px;
  background: #0B7147;
  color: #fff;
}
.mobile-bench-hero .eyebrow { margin: 0 0 8px; color: rgba(255, 255, 255, .75); }
.mobile-bench-hero-title { display: flex; align-items: flex-start; gap: 14px; }
.mobile-bench-hero h2 { flex: 1 1 auto; margin: 0; color: #fff; font-size: 26px; line-height: 1.18; }
.mobile-bench-hero--home h2 { font-size: 24px; }
.mobile-bench-hero > p { margin: 0; color: rgba(255, 255, 255, .87); font-size: 17px; line-height: 1.55; }
.mobile-bench-hero-badge,
.mobile-bench-controlled-access {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 9px;
  background: #EC5810;
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mobile-bench-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mobile-bench-hero-actions .button { border: 0; }
.mobile-bench-work-card > .eyebrow { margin-bottom: 12px; }
.mobile-bench-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mobile-bench-work-grid > div { display: grid; min-height: 72px; align-content: center; gap: 5px; border-radius: 12px; padding: 12px; background: #E9F8ED; }
.mobile-bench-work-grid strong { color: #0B7147; font-size: 25px; }
.mobile-bench-work-grid span { color: #132019; font-size: 12px; font-weight: 700; line-height: 1.3; }
.mobile-bench-work-grid .orange strong { color: #EC5810; }
.mobile-bench-work-grid .red strong { color: #A72B2B; }
.mobile-bench-work-grid .deep strong { color: #004932; }
.mobile-bench-controlled-access { margin-top: 2px; }
.mobile-bench-editor > .report-top { display: none; }
.mobile-bench-editor > .button-row { border-radius: 14px; }
.mobile-bench-shell .certificate-preview { margin: 0; overflow: hidden; border-radius: 18px; }

@media (max-width: 560px) {
  .mobile-bench-main { padding-inline: 14px; }
  .mobile-bench-login-identity img { width: 126px; }
  .mobile-bench-login-identity strong { font-size: 15px; }
  .mobile-bench-app-heading > h1 { font-size: 23px; }
  .mobile-bench-hero-title { flex-wrap: wrap; }
  .mobile-bench-hero-badge { margin-left: 0; }
  .mobile-bench-connection-identity > p { gap: 5px 8px; }
  .mobile-bench-shell .table { min-width: 680px; }
}

/* v1.80.9 global wide portal shell trial and reserved notification position. */
@media (min-width: 1021px) {
  .shell,
  .site-footer .shell,
  .portal-footer-shell .shell {
    width: calc(100% - 64px);
    max-width: none;
  }

  .portal-management-layout {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
  }

  .portal-management-sidebar { top: 18px; }
  .portal-management-main > .portal-hero { margin-top: 0; }
}

.portal-notification-separator {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: rgba(6, 59, 41, .42);
  font-size: 19px;
  font-weight: 500;
  margin-left: -9px;
  margin-right: -17px;
}

.portal-notification-placeholder {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--deep);
  opacity: 1;
  cursor: default;
}

.portal-notification-placeholder svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1020px) {
  .portal-notification-separator,
  .portal-notification-placeholder { display: none; }
}

/* v1.80.10-v1.80.13 — consistent portal sidebar with aligned and contextual workspaces. */
.portal-utility-bar {
  position: sticky;
  top: 0;
  z-index: 1100;
}
.portal-site-header {
  position: relative;
  top: auto;
}
.utility-queue-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.utility-work-queue-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.utility-queue-preview summary {
  display: inline-flex;
  min-width: 18px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
}
.utility-queue-preview summary::after { margin-left: 0; }
.portal-page-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  width: min(1840px, calc(100% - 32px));
  max-width: 1840px;
  margin-inline: auto;
}
.portal-page-layout--focused {
  width: min(1840px, calc(100% - 32px));
}
.portal-page-layout--with-context > .portal-contextual-sidebar { grid-column: 2; }
.portal-page-layout--with-context > .portal-management-sidebar { grid-column: 2; }
.portal-page-main,
.portal-page-content { min-width: 0; }
.portal-page-main--wide > .portal-page-content {
  width: 100%;
  margin-inline: 0;
}
.portal-page-content > .portal-hero:first-child,
.portal-page-content > .dashboard-head:first-child { margin-top: 0; }
.portal-page-content > .flash,
.portal-page-content > .view-as-banner { margin-bottom: 24px; }

.portal-global-sidebar {
  position: sticky;
  top: 60px;
  max-height: calc(100vh - 78px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  padding: 16px 12px 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.portal-page-layout > .portal-management-sidebar {
  top: 60px;
  max-height: calc(100vh - 78px);
  overflow-y: auto;
}
.portal-contextual-sidebar {
  position: sticky;
  top: 60px;
  max-height: calc(100vh - 78px);
  overflow-y: auto;
  grid-column: 2;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  padding: 16px 12px 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.portal-contextual-sidebar > .eyebrow { margin: 0 10px 10px; color: var(--orange); }
.portal-contextual-sidebar > h2 { margin: 0 10px 8px; font-size: 20px; }
.portal-contextual-sidebar > .subtle { margin: 0 10px 14px; font-size: 12px; }
.portal-insights-search {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.portal-insights-search > .eyebrow { margin: 0 10px 12px; }
.portal-insights-search .portal-contextual-form { display: grid; gap: 12px; }
.portal-insights-search .button-row { display: grid; gap: 8px; }
.portal-insights-search .button { width: 100%; justify-content: center; }
#lost-device-protection { scroll-margin-top: 84px; }
.release-welcome-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(3,35,24,.72); backdrop-filter: blur(4px); }
.release-welcome-card { width: min(640px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; padding: clamp(24px, 4vw, 40px); border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.release-welcome-card h1 { margin-top: 4px; }
.release-welcome-card li { margin: 10px 0; line-height: 1.5; }
.planning-visibility { padding: 0; overflow: hidden; border-top: 4px solid var(--orange); }
.planning-visibility > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.planning-visibility > summary::-webkit-details-marker { display: none; }
.planning-visibility > summary > span:first-child { display: grid; gap: 4px; }
.planning-visibility > summary .eyebrow { margin: 0; }
.planning-visibility > summary strong { color: var(--deep); font-size: 22px; }
.planning-visibility-toggle::before {
  content: '−';
  color: var(--orange);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.planning-visibility:not([open]) .planning-visibility-toggle::before { content: '+'; }
.planning-visibility-content { padding: 0 24px 24px; border-top: 1px solid var(--line); }
.planning-visibility-content h2 { margin-top: 22px; }
.planning-visibility-table th:first-child { width: 150px; }
.release-history-heading { margin: 34px 0 16px; padding: 0 4px; }
.release-history-heading .eyebrow { margin-bottom: 5px; }
.release-history-heading h2 { margin: 0 0 5px; }
.release-history-heading p:last-child { margin: 0; }
.release-history-list { display: grid; gap: 16px; }
.release-history-entry { padding: 0; overflow: hidden; }
.release-history-entry > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.release-history-entry > summary::-webkit-details-marker { display: none; }
.release-history-entry > summary::after {
  content: '+';
  color: var(--orange);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.release-history-entry[open] > summary::after { content: '−'; }
.release-history-entry > summary strong { color: var(--deep); font-size: 20px; }
.release-history-date { color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; }
.release-history-content { padding: 0 24px 22px; border-top: 1px solid var(--line); }
.release-history-content p { margin: 18px 0 0; }
@media (max-width: 680px) {
  .planning-visibility > summary { padding: 18px; }
  .planning-visibility-content { padding: 0 18px 20px; }
  .planning-visibility-table th:first-child { width: auto; }
  .release-history-entry > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 18px; }
  .release-history-entry > summary::after { grid-column: 2; grid-row: 1 / span 2; }
  .release-history-date { grid-column: 1; text-align: left; }
  .release-history-content { padding: 0 18px 20px; }
}
.portal-contextual-form { display: grid; gap: 12px; margin: 0 10px 10px; }
.portal-contextual-form .field { margin: 0; }
.portal-contextual-form .button { width: 100%; white-space: normal; }
.portal-browser-notification-permission { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.portal-browser-notification-permission p { margin: 0; font-size: 11px; line-height: 1.45; }
.portal-contextual-link-copy { display: grid; min-width: 0; gap: 3px; }
.portal-contextual-link-copy strong { color: inherit; font: inherit; }
.portal-contextual-link-copy small { color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.3; }
.portal-contextual-link--primary { background: var(--orange); color: #fff; }
.portal-contextual-link--primary .portal-contextual-link-copy small { color: rgba(255, 255, 255, .84); }
.portal-contextual-link--primary:hover,
.portal-contextual-link--primary:focus-visible { background: var(--deep); color: #fff; }
.portal-contextual-action-form { margin: 0; }
.portal-contextual-action-form .portal-sidebar-link {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.portal-contextual-link--danger { color: var(--danger); }
.portal-contextual-link--danger:hover,
.portal-contextual-link--danger:focus-visible { background: #fff1f1; color: var(--danger); }
.portal-notifications {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.portal-notifications > summary {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--deep);
  cursor: pointer;
  list-style: none;
}
.portal-notifications > summary::-webkit-details-marker { display: none; }
.portal-notifications > summary::after { display: none; }
.portal-notifications > summary:hover,
.portal-notifications > summary:focus-visible,
.portal-notifications[open] > summary { background: var(--mint); color: var(--green); }
.portal-notifications > summary svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-notification-badge {
  position: absolute;
  top: 0;
  right: -2px;
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0 4px;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.portal-notification-panel {
  position: absolute;
  z-index: 1250;
  top: calc(100% + 12px);
  right: -10px;
  width: min(430px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  background: #fff;
  box-shadow: 0 20px 52px rgba(6, 59, 41, .2);
  color: var(--deep);
  text-align: left;
}
.portal-notification-panel::before {
  position: absolute;
  top: -11px;
  right: 23px;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
  content: '';
  transform: rotate(45deg);
}
.portal-notification-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.portal-notification-panel-heading .eyebrow { margin: 0 0 3px; }
.portal-notification-panel-heading h2 { margin: 0; font-size: 20px; }
.portal-notification-heading-link { color: var(--deep); text-decoration: none; }
.portal-notification-heading-link:hover,
.portal-notification-heading-link:focus-visible { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.portal-notification-panel-heading > span { color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.portal-notification-list { max-height: 420px; overflow-y: auto; }
.portal-notification-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 11px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--deep);
  text-decoration: none;
}
.portal-notification-item:hover,
.portal-notification-item:focus-visible { background: #f6faf7; color: var(--green); }
.portal-notification-item.is-resolved { opacity: .66; }
.portal-notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #94aa9d;
}
.portal-notification-item--warning .portal-notification-dot { background: var(--orange); }
.portal-notification-item--success .portal-notification-dot { background: var(--green); }
.portal-notification-item.is-unread .portal-notification-dot { box-shadow: 0 0 0 4px rgba(244, 121, 32, .12); }
.portal-notification-copy { display: grid; min-width: 0; gap: 3px; }
.portal-notification-copy strong { color: inherit; font-size: 13px; line-height: 1.35; }
.portal-notification-copy > span { color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.4; }
.portal-notification-copy small { color: #7a8d82; font-size: 10px; font-weight: 700; line-height: 1.35; }
.portal-notification-empty { margin: 0; padding: 24px 18px; color: var(--muted); font-size: 12px; }
.portal-notification-browser-permission {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 14px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #F8FBF9;
}
.portal-notification-browser-permission button {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
.portal-notification-browser-permission button:disabled { color: #73847a; cursor: default; text-decoration: none; }
.portal-notification-browser-permission p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; font-weight: 650; line-height: 1.4; }
.portal-notification-controls {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px 14px;
  align-items: center;
  padding: 13px 18px 15px;
}
.portal-notification-controls form { margin: 0; }
.portal-notification-controls button,
.portal-notification-controls a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 11px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.portal-notification-controls button:hover,
.portal-notification-controls a:hover,
.portal-notification-controls button:focus-visible,
.portal-notification-controls a:focus-visible { border-color: var(--green); background: var(--mint); }
.portal-notification-controls button:disabled { color: #9aaba0; cursor: default; background: #f6f8f7; }
.portal-notification-controls > a { justify-self: start; }
.portal-notification-controls > * { white-space: nowrap; }
.portal-notification-sound-toggle { white-space: nowrap; }
.portal-notification-sound-sidebar { margin-top: 16px; border-top: 1px solid var(--line); padding: 16px 10px 4px; }
.portal-notification-sound-sidebar > .eyebrow { margin: 0 0 10px; color: var(--green); }
.portal-notification-sound-sidebar .button { width: 100%; }
.portal-notification-sound-sidebar form { margin: 8px 0 0; }
.portal-notification-sound-sidebar .subtle { margin: 8px 0 0; font-size: 11px; }
.browser-notification-prompt {
  position: fixed;
  z-index: 4000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 33, 23, .58);
}
.browser-notification-prompt-card {
  position: relative;
  width: min(460px, 100%);
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-top: 5px solid var(--orange);
  padding: 30px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
}
.browser-notification-prompt-card h2 { margin: 0 0 10px; color: var(--deep); }
.browser-notification-prompt-card > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.6; }
.browser-notification-prompt-card .button-row { margin-bottom: 0; }
.browser-notification-prompt-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 520px) {
  .browser-notification-prompt-card { padding: 26px 20px 22px; }
  .browser-notification-prompt-card .button-row { display: grid; grid-template-columns: 1fr; }
  .browser-notification-prompt-card .button { width: 100%; }
}
.notification-history-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.notification-history-controls .button-row { margin: 0; flex-wrap: wrap; }
.portal-global-sidebar > .eyebrow { margin: 0 10px 10px; }
.portal-sidebar-navigation { display: grid; gap: 4px; }
.portal-sidebar-link {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}
.portal-sidebar-link:hover,
.portal-sidebar-link:focus-visible {
  background: var(--mint);
  color: var(--green);
}
.portal-sidebar-link.is-current {
  background: var(--deep);
  color: #fff;
}
.portal-sidebar-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-login-sidebar .portal-sidebar-link { align-items: flex-start; }
.portal-login-sidebar .portal-sidebar-link span { overflow-wrap: anywhere; }

@media (min-width: 1021px) {
  .portal-utility-bar .shell {
    width: min(1220px, calc(100% - (clamp(18px, 3vw, 42px) * 2)));
    max-width: 1220px;
    margin-inline: auto;
  }
  .portal-page-main--focused > .portal-page-content {
    width: 100%;
    margin-inline: 0;
  }

  /* The header and work area remain wide; the established footer width is retained. */
  .portal-footer-shell .shell,
  .site-footer.portal-footer-shell .shell {
    width: min(1180px, 92vw);
    max-width: 1180px;
  }
}

@media (min-width: 1500px) {
  .portal-page-layout {
    grid-template-columns: 290px minmax(0, 1fr) 270px;
  }
  .portal-page-layout--with-context > .portal-contextual-sidebar { grid-column: 3; }
  .portal-page-layout--with-context > .portal-management-sidebar { grid-column: 3; }
}

@media (min-width: 1021px) and (max-width: 1499px) {
  .portal-page-layout--with-context > .portal-contextual-sidebar {
    position: static;
    grid-column: 2;
  }
  .portal-page-layout--with-context > .portal-management-sidebar {
    position: static;
    grid-column: 2;
  }
  .portal-page-layout--with-context > .portal-contextual-sidebar .portal-sidebar-navigation {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

@media (max-width: 1020px) {
  .portal-page-layout { display: block; }
  .portal-page-layout--focused { width: min(100% - 32px, 1180px); }
  .portal-global-sidebar,
  .portal-page-layout > .portal-management-sidebar { display: none; }
  .portal-page-layout > .portal-management-mobile-navigation {
    display: block;
    margin-bottom: 24px;
  }
  .portal-page-main--focused > .portal-page-content { width: 100%; }
  .portal-contextual-sidebar { position: static; margin-top: 24px; }
  .portal-notifications,
  .portal-notification-separator { display: none; }
  .notification-history-controls { flex-direction: column; }
}

@media print {
  .portal-page-layout { display: block !important; width: 100% !important; }
  .portal-global-sidebar,
  .portal-management-sidebar,
  .portal-management-mobile-navigation { display: none !important; }
  .portal-contextual-sidebar { display: none !important; }
  .portal-page-main,
  .portal-page-content { width: 100% !important; max-width: none !important; margin: 0 !important; }
}

/* v1.80.20.1 shell refinement: the utility bar contains only the three
   immediate activity tools; the authenticated identity moves to the header. */
.portal-utility-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px !important;
}
.portal-utility-actions .utility-separator {
  margin: 0;
  color: rgba(234, 255, 240, .62);
  font-size: 15px !important;
  font-weight: 500 !important;
}
.portal-utility-actions .utility-search-trigger { margin: 0; color: #eafff0; }
.portal-utility-actions .portal-notifications,
.portal-utility-actions .portal-notification-placeholder {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
.portal-utility-actions .portal-notifications > summary {
  width: 32px;
  height: 32px;
  color: #eafff0;
}
.portal-utility-actions .portal-notifications > summary:hover,
.portal-utility-actions .portal-notifications > summary:focus-visible,
.portal-utility-actions .portal-notifications[open] > summary {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.portal-utility-actions .portal-notifications > summary svg,
.portal-utility-actions .portal-notification-placeholder svg { width: 20px; height: 20px; }
.portal-utility-actions .portal-notification-placeholder { color: rgba(234, 255, 240, .68); }
.portal-utility-actions .portal-notification-badge {
  top: -2px;
  right: -4px;
  border-color: #063f26;
}
.portal-utility-actions .portal-notification-panel { top: calc(100% + 10px); right: -44px; }
.portal-utility-actions .utility-queue-panel { right: auto; left: 0; }
.portal-utility-actions .utility-queue-panel::before { right: auto; left: 36px; }
.portal-utility-bar .portal-notification-panel,
.portal-utility-bar .portal-notification-panel a,
.portal-utility-bar .portal-notification-panel button {
  color: var(--deep);
  font-family: Inter, 'Noto Kufi Arabic', Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}
.portal-utility-bar .portal-notification-panel a:hover,
.portal-utility-bar .portal-notification-panel a:focus-visible { color: var(--green); }
.portal-utility-bar .portal-notification-heading-link { font-size: 20px !important; font-weight: 850 !important; }
.portal-utility-bar .portal-notification-item { display: grid; }
.portal-utility-bar .portal-notification-copy strong { font-size: 13px !important; }
.portal-utility-bar .portal-notification-copy > span { font-size: 11px !important; }
.portal-utility-bar .portal-notification-copy small { font-size: 10px !important; }
.portal-utility-bar .portal-notification-controls a,
.portal-utility-bar .portal-notification-controls button { color: var(--green); font-size: 11px !important; }

.portal-header-profile {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
}
.portal-header-profile > summary {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(0, 149, 65, .28);
  border-radius: 50%;
  background: #f2f8f4;
  color: var(--deep);
  cursor: pointer;
  list-style: none;
}
.portal-header-profile > summary::-webkit-details-marker { display: none; }
.portal-header-profile > summary::after { display: none; }
.portal-header-profile > summary:hover,
.portal-header-profile > summary:focus-visible,
.portal-header-profile[open] > summary {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 149, 65, .11);
  outline: 0;
}
.portal-header-profile > summary img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-header-profile-initials {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--deep);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .03em;
}
.portal-header-profile-menu {
  position: absolute;
  z-index: 1300;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  width: min(250px, calc(100vw - 24px));
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 20px 52px rgba(6, 59, 41, .2);
}
.portal-header-profile-menu::before {
  position: absolute;
  top: -11px;
  right: 14px;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
  content: '';
  transform: rotate(45deg);
}
.portal-header-profile-identity { display: grid; gap: 3px; margin: -8px -8px 6px; padding: 16px; border-bottom: 1px solid var(--line); }
.portal-header-profile-identity strong { color: var(--deep); font-size: 14px; }
.portal-header-profile-identity small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.portal-header-profile-menu > a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.portal-header-profile-menu > a:hover,
.portal-header-profile-menu > a:focus-visible { background: var(--mint); color: var(--green); outline: 0; }
.portal-header-profile-menu > .portal-header-profile-signout { margin-top: 6px; border-top-color: rgba(6, 59, 41, .18); border-radius: 0 0 13px 13px; padding-top: 12px; color: var(--danger); }

@media (max-width: 1020px) {
  .portal-utility-actions .portal-notifications,
  .portal-utility-actions .portal-notification-placeholder { display: inline-flex; }
  .portal-site-header .main-nav { justify-content: flex-start; }
  .portal-site-header .brand { margin-right: auto; }
  .portal-header-profile { margin-left: 8px; }
  .portal-site-header .mobile-toggle { flex: 0 0 52px; width: 52px; height: 52px; margin-left: 6px; }
}

@media (max-width: 640px) {
  .portal-utility-bar .utility-inner { flex-wrap: wrap; padding-block: 5px; }
  .portal-utility-bar .portal-utility-left { flex: 1 1 100%; }
  .portal-utility-bar .portal-utility-left .utility-portal-title { max-width: none; }
  .portal-utility-bar .portal-utility-actions { width: 100%; justify-content: flex-end; }
  .portal-utility-actions .portal-notification-panel { position: fixed; top: 86px; right: 10px; left: 10px; width: auto; }
  .portal-utility-actions .utility-queue-panel { right: 10px; left: 10px; }
  .portal-utility-actions .portal-notification-panel::before { display: none; }
  .portal-header-profile { width: 42px; height: 42px; flex-basis: 42px; }
  .portal-header-profile > summary { width: 40px; height: 40px; }
}

.portal-whats-new-sidebar { display: grid; gap: 18px; }
.portal-whats-new-sidebar .portal-sidebar-section + .portal-sidebar-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.portal-whats-new-sidebar .portal-sidebar-section > .eyebrow { margin: 0 10px 10px; }
.planning-visibility,
.release-history-entry { scroll-margin-top: 72px; }

/* Next portal update - align authenticated header dropdowns. */
.portal-activity-preview .portal-notification-panel {
  width: min(430px, calc(100vw - 32px));
}
.portal-activity-preview .portal-notification-list {
  max-height: 420px;
  overflow-y: auto;
}
.portal-activity-preview .portal-notification-controls {
  grid-template-columns: auto auto;
}

/* The profile photo now opens with the same geometry, motion and link styling
   as the Resources navigation dropdown. */
.portal-header-profile-menu {
  top: calc(100% + 18px);
  width: min(190px, calc(100vw - 24px));
  min-width: 190px;
  max-width: 220px;
  border-color: rgba(6, 59, 41, .12);
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(3, 45, 26, .15);
  transform: translateY(8px);
  transition: transform .22s ease;
}
.portal-header-profile[open] .portal-header-profile-menu {
  transform: translateY(0);
}
.portal-header-profile-menu::before {
  top: -16px;
  right: 0;
  left: 0;
  width: auto;
  height: 16px;
  border: 0;
  background: transparent;
  transform: none;
}
.portal-header-profile-identity {
  gap: 3px;
  margin: -8px -8px 6px;
  padding: 13px 12px 11px;
}
.portal-header-profile-menu > a {
  border-radius: 12px;
  padding: 9px 11px;
  font-size: .84rem;
  font-weight: 850;
  line-height: 1.2;
}
.portal-header-profile-menu > a:hover,
.portal-header-profile-menu > a:focus-visible {
  border-color: #d9eadf;
  background: #f1faf4;
}
.portal-header-profile-menu > .portal-header-profile-signout {
  margin-top: 6px;
  border-top-color: rgba(6, 59, 41, .18);
  border-radius: 12px;
  padding-top: 12px;
}

/* Align only the authenticated utility bar and header with the portal panel
   frame. The established footer shell intentionally remains unchanged. */
.portal-utility-bar .utility-inner,
.portal-site-header .main-nav {
  width: min(1840px, calc(100% - 32px));
  max-width: 1840px;
  margin-inline: auto;
}
.session-warning{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;background:rgba(0,45,31,.58);backdrop-filter:blur(3px)}
.session-warning[hidden]{display:none}
.session-warning-card{width:min(520px,100%);padding:28px;border:1px solid #bed5c7;border-top:4px solid #f58220;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(0,45,31,.25)}
.session-warning-card h2{margin:.25rem 0 .7rem;color:#003f2d}
.session-warning-card .button-row{margin-top:20px}

/* Portal v1.80.20.3 final layout, account and authentication refinements. */
.portal-footer-shell .shell,
.site-footer.portal-footer-shell .shell {
  width: min(1840px, calc(100% - 32px));
  max-width: 1840px;
  margin-inline: auto;
}
.portal-footer-shell .footer-grid {
  grid-template-columns: minmax(260px,1.4fr) repeat(3,minmax(150px,.72fr)) minmax(300px,1.35fr);
  gap: clamp(20px,2.5vw,46px);
}
.portal-footer-brand-lockup { display:flex; align-items:center; gap:14px; min-height:74px; }
.portal-footer-brand-lockup > span { width:1px; height:52px; background:rgba(212,245,221,.46); }
.portal-footer-shell .footer-lab-logo { display:block; width:68px; height:68px; object-fit:contain; }
.portal-footer-shell .footer-logo { height:62px; }

.portal-header-profile-account-link { display:grid; width:100%; height:100%; place-items:center; overflow:hidden; border-radius:50%; color:inherit; text-decoration:none; }
.portal-header-profile-account-link img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.portal-site-header .brand { display:flex; align-items:center; gap:12px; }
.portal-header-secondary-logo-divider { width:1px; height:46px; background:rgba(6,59,41,.18); }
.portal-site-header .brand .portal-header-secondary-logo { width:52px; height:52px; object-fit:contain; border-radius:12px; }

.portal-utility-actions .utility-queue-panel { right:0; left:auto; }
.portal-utility-actions .utility-queue-panel::before { right:42px; left:auto; }
.portal-site-header .portal-resource-report-link { border-bottom:1px solid rgba(6,59,41,.15); color:var(--deep); font-weight:900; }
.portal-site-header .portal-resource-report-link:hover,
.portal-site-header .portal-resource-report-link:focus-visible { color:var(--green); background:#f1faf4; }
.portal-site-header .portal-resources-menu .nav-catalogue-link-v31,
.portal-site-header .portal-qc-reports-menu .nav-catalogue-link-v31 { margin-top:2px; border-top:1px solid rgba(6,59,41,.15); }

.company-resource-directory .company-resource-mark--external-logo.lab-seal { padding:6px; }
.company-resource-directory .company-resource-mark--external-logo.lab-seal img { width:100%; height:100%; max-width:144px; max-height:122px; }

.account-passkey-card,.account-personalize-card { grid-column:1/-1; }
.account-passkey-list { display:grid; gap:10px; margin:18px 0; }
.account-passkey-row { display:flex; align-items:center; justify-content:space-between; gap:18px; border:1px solid var(--line); border-radius:14px; padding:14px; background:#f8fbf9; }
.account-passkey-row > div { display:grid; gap:4px; }
.account-passkey-row small { color:var(--muted); }
.account-logo-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.account-logo-choice { display:grid; grid-template-columns:46px minmax(0,1fr); align-items:center; gap:10px; border:1px solid var(--line); border-radius:14px; padding:10px; background:#fff; cursor:pointer; }
.account-logo-choice:has(input:checked) { border-color:var(--green); background:var(--mint); box-shadow:0 0 0 2px rgba(0,149,65,.08); }
.account-logo-choice input { position:absolute; opacity:0; pointer-events:none; }
.account-logo-choice img,.account-logo-choice > span { display:grid; width:44px; height:44px; place-items:center; border-radius:10px; object-fit:contain; background:#f3f7f4; }
.auth-passkey-divider { display:flex; align-items:center; gap:10px; margin:16px 0; color:var(--muted); font-size:12px; font-weight:800; text-transform:uppercase; }
.auth-passkey-divider::before,.auth-passkey-divider::after { height:1px; flex:1; background:var(--line); content:""; }
.draft-recovery-banner { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 18px; border:1px solid #f5b77d; border-left:5px solid var(--orange); border-radius:14px; padding:14px 16px; background:#fff8f1; }
.draft-recovery-banner > div:first-child { display:grid; gap:4px; }
.draft-recovery-banner strong { color:var(--deep); }
.draft-recovery-banner span { color:var(--muted); font-size:.88rem; }
.draft-recovery-banner .button-row { margin:0; flex:0 0 auto; }
.mobile-bench-resource-list { display:grid; gap:12px; }
.mobile-bench-resource-list article { display:grid; grid-template-columns:92px minmax(0,1fr); gap:14px; align-items:center; border:1px solid #d5e3d9; border-radius:16px; padding:12px; background:#fff; }
.mobile-bench-resource-list img { width:92px; height:82px; border-radius:12px; object-fit:contain; background:#f4f9f6; }
.mobile-bench-resource-list h3 { margin:4px 0 6px; font-size:16px; }
.mobile-bench-resource-list p,.mobile-bench-resource-list small { margin:0; color:#64776d; font-size:12px; line-height:1.45; }
.mobile-bench-resource-list a { color:#0b7147; font-weight:800; text-decoration:none; }

@media (max-width:1200px) {
  .portal-footer-shell .footer-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .portal-footer-shell .footer-company,.portal-footer-shell .footer-contact { grid-column:span 1; }
}
@media (max-width:760px) {
  .portal-footer-shell .footer-grid,.account-logo-choices { grid-template-columns:1fr; }
  .draft-recovery-banner { align-items:flex-start; flex-direction:column; }
  .portal-header-secondary-logo-divider,.portal-header-secondary-logo { display:none!important; }
}

/* Portal v2.22 checkpoint — staged A2/A3/A6/A9/A11 management refinements. */
.auth-login-actions {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  align-items:stretch;
}
.auth-login-actions > .button:not(.auth-use-another) { width:100%; min-height:46px; justify-content:center; }
.auth-login-actions > .auth-use-another {
  grid-column:1 / -1;
  width:max-content;
  min-height:0;
  justify-self:center;
  border:0;
  padding:5px 8px;
  background:transparent;
  color:var(--green-dark);
  text-decoration:underline;
}
.portal-footer-shell .footer-copyright {
  grid-column:1 / -1;
  width:100%;
  max-width:none;
  white-space:nowrap;
}
.portal-footer-shell .footer-bottom > .footer-policy-links { grid-column:1 / -1; }
.portal-management-panel .admin-section-heading,
.portal-management-panel .admin-section-heading .subtle,
.people-devices-section > .admin-section-heading,
.people-devices-section > .admin-section-heading .subtle { width:100%; max-width:none; }
.user-profile-photo-actions {
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:nowrap;
}
.user-profile-photo-actions .profile-photo-upload-row {
  display:flex;
  align-items:center;
  gap:9px;
  flex:1 1 auto;
  min-width:0;
}
.profile-photo-file-input { position:absolute!important; inline-size:1px!important; block-size:1px!important; opacity:0!important; overflow:hidden!important; }
.profile-photo-file-name {
  display:flex;
  align-items:center;
  min-height:36px;
  min-width:150px;
  flex:1 1 220px;
  border:1px solid var(--line);
  border-radius:7px;
  padding:7px 10px;
  background:#fff;
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.portal-ios-download-badge { display:block; padding:4px 11px 10px; }
.portal-ios-download-badge img { display:block; width:100%; max-width:210px; height:auto; }
.portal-header-secondary-title { color:var(--green-dark); font-weight:800; line-height:1.15; max-width:210px; }
.account-logo-title-preview { display:flex; align-items:center; justify-content:center; min-height:54px; padding:8px; color:var(--green-dark); font-size:.72rem; line-height:1.15; text-align:center; }
.user-access-split,.user-personalization-admin { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.instrument-test-assignment-editor { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:18px 0; border:1px solid var(--line); border-radius:10px; padding:16px; }
.instrument-test-assignment-editor legend { padding:0 7px; color:var(--green-dark); font-weight:800; }
.instrument-test-assignment-editor > .subtle { grid-column:1 / -1; max-width:none; }
.spare-part-row-form { display:grid; grid-template-columns:repeat(3,minmax(74px,1fr)) minmax(130px,2fr) auto; gap:6px; align-items:center; }
@media (max-width:760px) {
  .auth-login-actions { grid-template-columns:1fr; }
  .auth-login-actions > .auth-use-another { grid-column:1; }
  .portal-footer-shell .footer-copyright { white-space:normal; }
  .user-profile-photo-actions,.user-profile-photo-actions .profile-photo-upload-row { flex-wrap:wrap; }
  .user-profile-photo-actions > form,.user-profile-photo-actions .profile-photo-upload-row { width:100%; }
  .profile-photo-file-name { flex-basis:100%; }
  .user-access-split,.user-personalization-admin,.instrument-test-assignment-editor { grid-template-columns:1fr; }
  .spare-part-row-form { grid-template-columns:1fr; }
}

/* Portal v2.18 coordinated shell, access preview and About presentation. */
@media (min-width:761px) {
  .portal-utility-left .utility-portal-title { margin-left:8px; }
}
.portal-utility-left .utility-portal-title {
  border:0;
  padding:0;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
}
.portal-utility-left .utility-portal-title:hover,
.portal-utility-left .utility-portal-title:focus-visible { color:var(--orange); }
.portal-footer-shell .footer-grid {
  grid-template-columns:minmax(285px,1.18fr) repeat(4,minmax(118px,.62fr)) minmax(390px,1.55fr);
  gap:clamp(14px,1.4vw,28px);
}
.portal-footer-shell .footer-policy-links { display:inline-flex; align-items:center; justify-content:flex-end; gap:8px; margin-left:auto; white-space:nowrap; }
.portal-footer-shell .footer-policy-links .policy-sep { display:inline; }
.portal-footer-shell .footer-bottom { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.portal-top-button {
  display:inline-flex;
  align-items:center;
  gap:7px;
  position:fixed;
  right:max(18px,env(safe-area-inset-right));
  bottom:20px;
  z-index:1200;
  border:1px solid rgba(212,245,221,.78);
  border-radius:999px;
  padding:8px 14px;
  background:var(--deep);
  color:#eafff0;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.portal-top-button:hover,.portal-top-button:focus-visible { border-color:var(--orange); color:var(--orange); }
.portal-site-header .brand .portal-header-secondary-logo { width:auto; max-width:100px; height:58px; padding:0; border-radius:0; object-fit:contain; background:transparent; }
.portal-header-secondary-logo-divider { height:52px; }
.portal-site-header .brand > img:first-child { width:auto; height:58px; object-fit:contain; }
.auth-login-actions { align-items:center; }
.auth-use-another { border-color:var(--orange); color:var(--deep); background:#fff8f1; }
.saved-account-chooser .saved-account-remove,.saved-account-chooser .saved-account-use-another { display:none!important; }
.auth-card:has(.saved-account-chooser:not([hidden])) .field:has(#email-local) { display:none; }
.approval-matrix-save-row { position:sticky; bottom:16px; z-index:5; justify-content:flex-end; padding:14px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.96); box-shadow:0 10px 28px rgba(6,59,41,.12); }
.portal-notification-chevron { margin-left:2px; color:currentColor; font-size:14px; line-height:1; }
.portal-utility-actions .portal-notifications,.portal-utility-actions .portal-notifications > summary { width:42px; }
.portal-utility-actions .portal-notifications { flex-basis:42px; }
.portal-notification-controls > a { display:inline-flex!important; align-items:center; gap:5px; }
.dashboard-queue-heading > div { width:100%; }
.dashboard-queue-heading .subtle { max-width:none; }
.dashboard-queue-heading a,.dashboard-queue-card-head,.dashboard-queue-empty { color:inherit; text-decoration:none; }
.dashboard-queue-card-head { border-radius:10px; padding:4px; }
.dashboard-queue-card-head:hover,.dashboard-queue-card-head:focus-visible { background:var(--mint); color:var(--green); }
.dashboard-queue-empty { display:block; color:var(--muted); }
.dashboard-queue-empty:hover,.dashboard-queue-empty:focus-visible { color:var(--green); }
.approval-review-warning { margin-top:10px; }
.account-login-activity { grid-column:1/-1; }
.portal-about-dialog {
  width:min(760px,calc(100vw - 32px));
  max-height:calc(100vh - 48px);
  overflow:auto;
  border:1px solid var(--line);
  border-top:5px solid var(--green);
  border-radius:18px;
  padding:24px;
  background:#fff;
  color:var(--deep);
  box-shadow:0 28px 90px rgba(0,45,31,.32);
}
.portal-about-dialog::backdrop { background:rgba(0,45,31,.55); backdrop-filter:blur(3px); }
.portal-about-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.portal-about-dialog-head h2 { margin:.25rem 0 1rem; }
.portal-about-close { border:0; border-radius:50%; width:40px; height:40px; background:var(--mint); color:var(--deep); font-size:26px; cursor:pointer; }
.portal-about-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:10px 0 22px; }
.portal-about-meta > div { display:grid; gap:4px; border:1px solid var(--line); border-radius:12px; padding:12px; background:#f8fbf9; }
.portal-about-meta span { color:var(--muted); font-size:12px; }
@media (max-width:1200px) { .portal-footer-shell .footer-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:760px) {
  .portal-footer-shell .footer-grid,.portal-about-meta { grid-template-columns:1fr; }
  .portal-footer-shell .footer-bottom { align-items:flex-start; flex-direction:column; }
  .portal-top-button { right:14px; bottom:14px; }
  .portal-footer-shell .footer-policy-links { margin-left:0; flex-wrap:wrap; justify-content:flex-start; }
}
html[dir="rtl"] .mobile-bench-shell { font-family:"Noto Kufi Arabic",Tahoma,Arial,sans-serif; text-align:right; }
html[dir="rtl"] .mobile-bench-hero-title,
html[dir="rtl"] .mobile-bench-hero-actions,
html[dir="rtl"] .button-row { flex-direction:row-reverse; }
html[dir="rtl"] .mobile-bench-account-menu > div { right:0; left:auto; text-align:right; }

/* v2.21 — restore the established full-portal brand geometry. */
@media (min-width:1021px) {
  .portal-site-header .brand { gap:18px; }
  .portal-site-header .brand > img:first-child { width:auto; max-width:260px; height:86px; object-fit:contain; }
  .portal-site-header .brand .portal-header-secondary-logo { width:auto; max-width:132px; height:78px; padding:0; border-radius:0; object-fit:contain; background:transparent; }
  .portal-site-header .portal-header-secondary-logo-divider { display:block!important; flex:0 0 1px; width:1px; height:68px; background:rgba(6,59,41,.24); }
}

.saved-account-chooser { margin:16px 0 8px; }
.saved-account-chooser .saved-account {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"name status" "email status";
  align-items:center;
  gap:3px 18px;
  width:100%;
  min-height:68px;
  padding:12px 16px;
  border:1px solid #b9c9c1;
  border-radius:8px;
  background:#f1f3f2;
  color:var(--ink);
  text-align:left;
  font:inherit;
  cursor:pointer;
}
.saved-account-chooser .saved-account:hover,
.saved-account-chooser .saved-account:focus-visible { border-color:var(--green); box-shadow:0 0 0 3px rgba(0,152,69,.12); }
.saved-account-name { grid-area:name; min-width:0; overflow-wrap:anywhere; font-weight:800; }
.saved-account-email { grid-area:email; min-width:0; overflow-wrap:anywhere; color:var(--muted); font-size:.9rem; }
.saved-account-status { grid-area:status; color:var(--muted); font-size:.82rem; white-space:nowrap; }
.passkey-login-status:empty { display:none; }

.footer-contact .footer-policy-links {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin:8px 0 0;
  white-space:normal;
  text-align:left;
}
.footer-contact .footer-policy-links a { display:inline; margin:0; font-size:.77rem; font-weight:800; }
.portal-footer-shell .footer-bottom { justify-content:space-between; }

.user-profile-form + .user-access-form,
.user-profile-form + .user-role-readonly { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }

@media (max-width:640px) {
  .saved-account-chooser .saved-account { grid-template-columns:1fr; grid-template-areas:"name" "email" "status"; gap:3px; }
  .saved-account-status { white-space:normal; margin-top:4px; }
  .footer-contact .footer-policy-links { flex-wrap:wrap; }
}

/* Portal v2.21 reissue — visible AVO-green brand divider and legal-row alignment. */
@media (min-width:761px) {
  .portal-site-header .brand > .portal-header-secondary-logo-divider {
    display:block!important;
    flex:0 0 2px;
    width:2px;
    height:68px;
    background:var(--green);
  }
}
.portal-footer-shell .footer-bottom {
  display:grid;
  grid-template-columns:minmax(285px,1.18fr) repeat(4,minmax(118px,.62fr)) minmax(390px,1.55fr);
  align-items:start;
  gap:clamp(14px,1.4vw,28px);
}
.portal-footer-shell .footer-copyright {
  grid-column:1;
  min-width:0;
  white-space:normal;
}
.portal-footer-shell .footer-bottom > .footer-policy-links {
  grid-column:6;
  justify-self:start;
  justify-content:flex-start;
  margin:0;
  white-space:nowrap;
  text-align:left;
}
.portal-footer-shell .footer-bottom > .footer-policy-links a {
  display:inline;
  margin:0;
  font-size:.77rem;
  font-weight:800;
}
@media (max-width:1200px) and (min-width:761px) {
  .portal-footer-shell .footer-bottom { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .portal-footer-shell .footer-bottom > .footer-policy-links { grid-column:3; }
}
@media (max-width:760px) {
  .portal-footer-shell .footer-bottom { grid-template-columns:1fr; }
  .portal-footer-shell .footer-copyright,
  .portal-footer-shell .footer-bottom > .footer-policy-links { grid-column:1; }
  .portal-footer-shell .footer-bottom > .footer-policy-links { flex-wrap:wrap; white-space:normal; }
}

/* v2.22.1 hotfix final cascade controls. */
.auth-login-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:stretch}
.auth-login-actions>.button:not(.auth-use-another){width:100%;min-height:46px;justify-content:center}
.auth-login-actions>.auth-use-another{grid-column:1/-1;width:max-content;min-height:0;justify-self:center;border:0;padding:5px 8px;background:transparent;color:var(--green-dark);text-decoration:underline}
.portal-footer-shell .footer-copyright{grid-column:1/-1;width:100%;max-width:none;white-space:nowrap}
.portal-footer-shell .footer-contact>.footer-policy-links{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin:10px 0 0;white-space:nowrap;text-align:left}
.portal-footer-shell .footer-contact>.footer-policy-links a{display:inline;margin:0;font-size:.77rem;font-weight:800}
.portal-management-panel .admin-section-heading,.portal-management-panel .admin-section-heading .subtle,.people-devices-section>.admin-section-heading,.people-devices-section>.admin-section-heading .subtle{width:100%;max-width:none}
.user-profile-photo-actions{display:flex;align-items:center;gap:9px;flex-wrap:nowrap}
.user-profile-photo-actions .profile-photo-upload-row{display:flex;align-items:center;gap:9px;flex:1 1 auto;min-width:0}
.profile-photo-file-input{position:absolute!important;inline-size:1px!important;block-size:1px!important;opacity:0!important;overflow:hidden!important}
.profile-photo-file-name{display:flex;align-items:center;min-height:36px;min-width:150px;flex:1 1 220px;border:1px solid var(--line);border-radius:7px;padding:7px 10px;background:#fff;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-ios-download-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
.portal-ios-download-row>.portal-sidebar-link{min-width:0}
.portal-ios-download-badge{display:block;justify-self:end;padding:0}.portal-ios-download-badge img{display:block;width:135px;min-width:135px;height:40px}
.portal-header-secondary-title{color:var(--green-dark);font-weight:800;line-height:1.15;max-width:210px}
@media(min-width:761px){.portal-site-header .brand>.portal-header-secondary-logo-divider{display:block!important;flex:0 0 1px;width:1px;height:68px;background:rgba(6,59,41,.24)}}
.portal-site-header .brand{gap:18px}
.user-access-split,.user-personalization-admin{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px;align-items:start}
.user-access-split{margin-top:18px}
.user-access-split>.user-access-form,.user-access-split>.user-access-form+.user-access-form{margin-top:0;padding-top:18px;border-top:1px solid var(--line)}
.user-access-split>.user-access-form{display:grid;align-content:start;min-width:0}
.user-access-split>.user-access-form .field{min-width:0}
.user-access-split>.user-access-form select,.user-access-split>.user-access-form .approval-check{width:100%;min-height:50px}
.user-access-split>.user-access-form>.button{justify-self:start}
.user-personalization-admin{margin-top:30px}
.user-personalization-admin>.eyebrow{grid-column:1/-1;margin:0}
.user-personalization-admin>div{min-width:0}
.user-personalization-admin>div>h4{margin-top:0}
.instrument-test-assignment-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0;border:1px solid var(--line);border-radius:10px;padding:16px}
.instrument-test-assignment-editor>.subtle{grid-column:1/-1;max-width:none}.spare-part-row-form{display:grid;grid-template-columns:repeat(3,minmax(74px,1fr)) minmax(130px,2fr) auto;gap:6px;align-items:center}
@media(max-width:760px){.auth-login-actions{grid-template-columns:1fr}.auth-login-actions>.auth-use-another{grid-column:1}.portal-footer-shell .footer-copyright{white-space:normal}.portal-footer-shell .footer-contact>.footer-policy-links{flex-wrap:wrap;white-space:normal}.portal-ios-download-row{grid-template-columns:1fr}.portal-ios-download-badge{justify-self:start;margin-left:11px}.user-profile-photo-actions,.user-profile-photo-actions .profile-photo-upload-row{flex-wrap:wrap}.user-profile-photo-actions>form,.user-profile-photo-actions .profile-photo-upload-row{width:100%}.profile-photo-file-name{flex-basis:100%}.user-access-split,.user-personalization-admin,.instrument-test-assignment-editor{grid-template-columns:1fr}.user-personalization-admin>.eyebrow{grid-column:1}.spare-part-row-form{grid-template-columns:1fr}}
