/*
 * OneHLP theme: customer portal
 * Modern skin modelled on the osTicket 2.0 look (white top bar, blue
 * primary, rounded cards, pill navigation). Loaded last from
 * include/client/header.inc.php so it overrides assets/default/css/theme.css
 * without editing it. Colours and sizes come from css/onehlp-tokens.css
 * (generated from theme/brand.json, ADR-002); this file uses roles only.
 */

/* ---------- Base ---------- */
/* theme.css forces a permanent scrollbar (html { overflow-y: scroll }): show
   one only when the page is taller than the window */
html { overflow-y: auto; }
html, body {
  background: var(--oh-bg);
  color: var(--oh-text);
  font-family: var(--oh-font);
  font-size: 1.0625rem;
  line-height: 1.65;          /* ADR-002 typography (GK 2026-10-17) */
  -webkit-font-smoothing: antialiased;
}
a, a:visited { color: var(--oh-primary-text); }
a:hover { color: var(--oh-primary-text-hover); }
h1, h2, h3, h4 { color: var(--oh-text); font-family: var(--oh-font); letter-spacing: -.01em; }
/* theme.css and thread.css hard-code Helvetica in several places */
#container, .thread-body, .thread-body h1, .thread-body h2, .thread-body h3,
.thread-body .h1, .thread-body .h2, .thread-body .h3, .thread-body .h4 {
  font-family: var(--oh-font);
}
h1 { font-size: 1.625rem; font-weight: 700; }
h2 { font-size: 1.375rem; font-weight: 600; }
h3 { font-size: 1.1875rem; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--oh-border); }

/* ---------- Layout ---------- */
#container {
  width: auto;
  max-width: 1120px;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Full-width white top bar (header + nav) */

#logo { height: 64px; display: flex; align-items: center; float: none; }
#logo .valign-helper { display: none; }
/* OneHLP logo (src/images/onehlp-logo.png) replaces the uploaded client logo */
#logo {
  width: 140px;
  background: url(../images/onehlp-logo.png) left center / contain no-repeat;
}
:root[data-theme="dark"] #logo { background-image: url(../images/onehlp-logo-dark.png); }

/* Appearance switch (ADR-002): light / dark / high contrast / match device */
.oh-mode-switch { position: relative; }
.oh-mode-switch summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--oh-border-strong);
  border-radius: 999px;
  background: var(--oh-surface);
  color: var(--oh-text-muted);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.oh-mode-switch summary::-webkit-details-marker { display: none; }
.oh-mode-switch summary:hover { color: var(--oh-text); background: var(--oh-subtle); }
.oh-mode-switch summary:focus-visible { outline: 2px solid var(--oh-primary); outline-offset: 2px; }
.oh-mode-switch summary i { font-size: 1.0625rem; }
.oh-sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.oh-mode-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  min-width: 200px;
  padding: 6px;
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  box-shadow: var(--oh-shadow-lg);
}
.oh-mode-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px 0 32px;
  border: 0;
  margin: 0;
  box-shadow: none;
  text-shadow: none;
  border-radius: var(--oh-radius-sm);
  background: transparent;
  color: var(--oh-text);
  font: 500 1rem var(--oh-font);
  text-align: left;
  cursor: pointer;
  position: relative;
}
.oh-mode-menu button:hover, .oh-mode-menu button:focus-visible { background: var(--oh-subtle); outline: none; }
.oh-mode-menu button[aria-checked="true"] { color: var(--oh-primary-text); font-weight: 600; }
.oh-mode-menu button[aria-checked="true"]::before {
  content: "\f00c";  /* Font Awesome check */
  font-family: FontAwesome;
  position: absolute;
  left: 11px;
  font-size: .875rem;
}

/* osTicket templates fix tables at width="800"; never wider than the card
   (between 760 and ~880 px they pushed the page sideways) */
#content table[width] { max-width: 100%; }
#content {
  margin: 16px 0 0;
  padding: 28px 32px;
  min-height: 320px;
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  box-shadow: var(--oh-shadow);
}

/* Fixed footer: one slim line at the bottom of the window; the page
   scrolls under it, and a page that fits has no scrollbar */
:root { --oh-footer-h: 40px; }
/* exactly the footer's height, as in the staff panel: any extra space here
   made a page whose content fits scroll by that much */
#container { padding-bottom: var(--oh-footer-h); }
#footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  height: var(--oh-footer-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 16px env(safe-area-inset-bottom);
  background: var(--oh-bg);
  border-top: 1px solid var(--oh-divider);
  color: var(--oh-text-muted);
  font-size: .8125rem;   /* desktop: small credit (GK 2026-10-17); phones keep 15px below */
}
#footer a { color: var(--oh-text-muted); }

/* ---------- Landing page ---------- */
.main-content { width: auto; margin-right: 300px; }
#landing_page .sidebar,
.sidebar { width: 260px; }
.sidebar .content {
  margin-top: 16px;
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  padding: 12px 16px;
  background: var(--oh-surface);
}
.sidebar .content section .header {
  font-weight: 600;
  color: var(--oh-text);
  border-bottom: 1px solid var(--oh-border);
}
.front-page-button { margin-bottom: 12px; }

/* ---------- Buttons ---------- */
.button, .button:visited,
input[type="submit"], input[type="button"], input[type="reset"],
button {
  font-family: var(--oh-font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25rem;
  padding: 9px 16px;
  height: auto;
  border-radius: var(--oh-radius-sm);
  border: 1px solid var(--oh-border-strong);
  background: var(--oh-surface);
  background-image: none;
  color: var(--oh-text);
  box-shadow: 0 1px 2px rgba(var(--oh-shadow-rgb), .05);
  text-shadow: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
  max-width: 100%;      /* theme.css caps .button at 220px: longer labels spilled out at the larger type */
}
.button:hover, input[type="button"]:hover, input[type="reset"]:hover, button:hover {
  background: var(--oh-subtle);
  text-decoration: none;
}
/* Primary: submit buttons and the blue/green front-page buttons */
input[type="submit"],
button[type="submit"],
.blue.button, .blue.button:visited,
.green.button, .green.button:visited {
  background: var(--oh-primary);
  border-color: var(--oh-primary);
  color: var(--oh-on-primary);
}
#content input[type="submit"] { color: var(--oh-on-primary); }
input[type="submit"]:hover,
button[type="submit"]:hover,
.blue.button:hover, .green.button:hover {
  background: var(--oh-primary-hover);
  border-color: var(--oh-primary-hover);
  color: var(--oh-on-primary);
}
/* Secondary front-page action (Check Ticket Status) as outline */
.green.button, .green.button:visited {
  background: var(--oh-surface);
  color: var(--oh-primary-text);
  border-color: var(--oh-border-strong);
}
.green.button:hover { background: var(--oh-primary-soft); color: var(--oh-primary-text); border-color: var(--oh-primary); }

/* osTicket marks a changed form by setting style="color: red" on its submit
   button (js/osticket.js, scp/js/scp.js). Red on blue is unreadable: keep the
   text white and show an amber "unsaved changes" ring instead. */
input[type="submit"][style*="color"] {
  color: var(--oh-on-primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--oh-attention-rgb), .45);
}

/* Print / Edit buttons on the ticket view: same 40 px as the other buttons */
.action-button {
  display: inline-block;
  box-sizing: border-box;
  height: 40px;
  padding: 0 16px;
  line-height: 38px;
  vertical-align: middle;
  border: 1px solid var(--oh-border-strong);
  border-radius: var(--oh-radius-sm);
  background: var(--oh-surface);
  color: var(--oh-text) !important;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(var(--oh-shadow-rgb), .05);
  text-decoration: none;
}
.action-button:hover { background: var(--oh-bg); text-decoration: none; }
.action-button a, .action-button i { color: inherit !important; float: none; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="search"], input[type="date"], input:not([type]),
select, textarea {
  font-family: var(--oh-font);
  font-size: 1rem;
  padding: 8px 12px;
  border: 1px solid var(--oh-control-border);
  border-radius: var(--oh-radius-sm);
  background: var(--oh-surface);
  color: var(--oh-text);
  box-shadow: 0 1px 2px rgba(var(--oh-shadow-rgb), .05);
  box-sizing: border-box;
  max-width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--oh-primary);
  box-shadow: 0 0 0 3px rgba(var(--oh-primary-rgb), .15);
}

label { color: var(--oh-text); }
.error, span.error, font.error { color: var(--oh-danger); }

/* ---------- Sign-in / Check Ticket Status box ---------- */
h1.oh-welcome { margin: 0 0 6px; font-size: 1.875rem; font-weight: 700; letter-spacing: -.02em; }
p.oh-subtitle { margin: 0 0 8px; font-size: 1.125rem; color: var(--oh-text-muted); }
p.oh-subtitle strong { color: var(--oh-text); font-weight: 600; }

#clientLogin {
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  box-shadow: var(--oh-shadow);
  padding: 24px;
}
#clientLogin > div[style*="table-row"] { display: flex !important; gap: 32px; align-items: flex-start; }

#clientLogin .instructions {
  display: block;
  flex: 1;
  padding: 16px 20px;
  background: var(--oh-primary-soft);
  border-radius: var(--oh-radius-sm);
  color: var(--oh-text-muted);
}
#clientLogin div label { font-weight: 500; color: var(--oh-text); }
#clientLogin input[type=text], #clientLogin input[type=password] {
  width: 100%;
  padding: 8px 12px;
  margin: 4px 0 14px;
  border-radius: var(--oh-radius-sm);
}
#clientLogin input[type=submit],
#clientLogin div input[type=submit] {
  width: auto;
  padding: 9px 20px;
  border-radius: var(--oh-radius-sm);
  background: var(--oh-primary);
  border: 1px solid var(--oh-primary);
  color: var(--oh-on-primary);
}
#clientLogin input[type=submit]:hover { background: var(--oh-primary-hover); }
/* Same sizing as the sign-in page: tall 16px inputs, full-width primary button */
#clientLogin input[type=text], #clientLogin input[type=password] {
  height: 48px;
  padding: 0 14px;
  font-size: 1.125rem;
  border-radius: 10px;
}
#clientLogin input[type=submit], #clientLogin div input[type=submit] {
  width: 100%;
  height: 48px;
  font-size: 1.125rem;
  border-radius: 10px;
}
#clientLogin .instructions { line-height: 1.6; }

/* ---------- Sign-in and Check Ticket Status (ADR-009) ----------
   login.inc.php: one card, form left (.oh-split-main), navy panel right
   (.oh-split-aside); accesslink.inc.php: one narrow card. The pages sit
   straight on the page background, not in #content's white card. */
#content:has(> .oh-signin) {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.oh-signin { margin: 24px auto 0; }
.oh-split {
  max-width: 960px;
  display: flex;
  flex-wrap: wrap;
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: 16px;
  box-shadow: var(--oh-shadow-lg);
  overflow: hidden;
}
.oh-split-main {
  flex: 999 1 420px;
  min-width: 0;
  padding: 44px 52px;
  box-sizing: border-box;
}
.oh-signin h1.oh-welcome {
  margin: 0 0 6px;
  font-size: 1.875rem;
  line-height: 2.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--oh-text);
}
.oh-signin p.oh-subtitle { margin: 0 0 20px; font-size: 1.125rem; line-height: 1.5rem; color: var(--oh-text-muted); }

.oh-auth-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.oh-field { display: flex; flex-direction: column; gap: 6px; font-size: 1rem; font-weight: 600; color: var(--oh-text); }
.oh-field-row { display: flex; justify-content: space-between; gap: 12px; }
.oh-field-row a { font-weight: 500; }
.oh-field small { font-size: .9375rem; font-weight: 400; color: var(--oh-text-muted); }
.oh-auth-form input[type="text"],
.oh-auth-form input[type="email"],
.oh-auth-form input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 1.125rem;               /* 16px: iOS does not zoom into the field */
  font-weight: 400;
}
.oh-auth-form button.oh-block,
.oh-auth-form button.oh-block:hover {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  font-size: 1.125rem;
  background: var(--oh-primary);
  border-color: var(--oh-primary);
  color: var(--oh-on-primary);
}
.oh-auth-form button.oh-block:hover { background: var(--oh-primary-hover); border-color: var(--oh-primary-hover); }
.oh-form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--oh-danger-border);
  border-radius: var(--oh-radius-sm);
  background: var(--oh-danger-soft);
  color: var(--oh-danger-strong);
  font-size: 1rem;
}
.oh-signin .external-auth { margin-top: 12px; }
.oh-signin p.oh-alt { margin: 20px 0 0; text-align: center; font-size: 1.0625rem; color: var(--oh-text-muted); }
.oh-signin p.oh-alt a { font-weight: 600; }

.oh-split-aside {
  flex: 1 1 300px;
  min-width: 0;
  padding: 44px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--oh-chrome);
  color: var(--oh-on-chrome);
}
.oh-aside-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--oh-chrome-active);
  font-size: 1.25rem;
}
.oh-split-aside h2 { margin: 14px 0 6px; font-size: 1.375rem; line-height: 1.75rem; font-weight: 700; color: var(--oh-on-chrome); }
.oh-split-aside h2.oh-aside-small { margin-top: 0; font-size: 1.125rem; line-height: 1.5rem; }
.oh-split-aside p { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.4375rem; color: var(--oh-chrome-text); }
.oh-split-aside hr { align-self: stretch; height: 1px; margin: 28px 0; border: 0; background: var(--oh-chrome-active); }
a.oh-aside-button {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px; box-sizing: border-box;
  border: 1px solid rgba(var(--oh-on-chrome-rgb), .45);
  border-radius: var(--oh-radius-sm);
  color: var(--oh-on-chrome);
  font-size: 1.0625rem; font-weight: 600;
}
a.oh-aside-button:hover { background: var(--oh-chrome-hover); color: var(--oh-on-chrome); text-decoration: none; }
a.oh-aside-link { color: var(--oh-on-chrome); font-size: 1.0625rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
a.oh-aside-link:hover { color: var(--oh-on-chrome); }

.oh-status { max-width: 520px; }
.oh-status-card {
  padding: 40px 44px;
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: 16px;
  box-shadow: var(--oh-shadow-lg);
}

/* ---------- Home page (ADR-009, include/client/onehlp-home.inc.php) ---------- */

.oh-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px;
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: 14px;
  box-shadow: var(--oh-shadow-lg);
  color: var(--oh-text);
}
.oh-card:hover { border-color: var(--oh-primary); text-decoration: none; color: var(--oh-text); }

.oh-tone-primary { background: var(--oh-primary-soft); color: var(--oh-primary-text); }
.oh-tone-warning { background: var(--oh-warning-soft); color: var(--oh-warning-text); }
.oh-tone-success { background: var(--oh-success-soft); color: var(--oh-success-text); }

.oh-product {
  display: flex; align-items: center; gap: 14px;
  min-height: 44px;
  padding: 16px 18px;
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: 12px;
  color: var(--oh-text);
}
.oh-product:hover { border-color: var(--oh-primary); text-decoration: none; color: var(--oh-text); }
.oh-product-badge {
  flex: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--oh-primary-soft);
  color: var(--oh-primary-text);
  font-weight: 800; font-size: 1rem;
}

.oh-home-text {
  padding: 24px 28px;
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: 12px;
  color: var(--oh-text);
}
.oh-home-text h1 { font-size: 1.5rem; margin-top: 0; }

/* ---------- Messages ---------- */
#msg_notice, #msg_warning, #msg_error, #msg_info,
.notice_bar, .warning_bar, .error_bar {
  border-radius: var(--oh-radius-sm);
  padding: 10px 14px 10px 40px;
  height: auto;
  line-height: 1.25rem;
  background-position: 14px 50%;
  margin-bottom: 16px;
}
#msg_notice, .notice_bar { background-color: var(--oh-success-soft); border: 1px solid var(--oh-success-border); color: var(--oh-success-text); }
#msg_warning, .warning_bar { background-color: var(--oh-warning-soft); border: 1px solid var(--oh-warning-border); color: var(--oh-warning-text); }
#msg_error, .error_bar { background-color: var(--oh-danger-soft); border: 1px solid var(--oh-danger-border); color: var(--oh-danger-text); }

/* ---------- Tables (My Tickets list, ticket info) ---------- */
 table.list {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  overflow: hidden;
  background: var(--oh-surface);
}

 table.list th {
  background: var(--oh-subtle);
  color: var(--oh-text-muted);
  font-size: .875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--oh-border);
  text-align: left;
}

 table.list td {
  padding: 12px;
  border-bottom: 1px solid var(--oh-border);
  background: var(--oh-surface);
}

/* Ticket view header + info boxes */

/* Thread (conversation) entries as cards */
.thread-entry .header {
  border-radius: var(--oh-radius) var(--oh-radius) 0 0;
}
.thread-entry .thread-body {
  border-radius: 0 0 var(--oh-radius) var(--oh-radius);
}
.thread-entry.response .header { background: var(--oh-primary-soft); border-color: var(--oh-primary-border); }
.thread-entry.message .header  { background: var(--oh-subtle); border-color: var(--oh-border); }

/* ---------- Mobile ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 760px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  body { font-size: 1rem; }
  #container { padding: 0 12px; }

  #logo { height: 40px; width: 112px; }

  /* Appearance switch: icon only, 44px touch target */
  .oh-mode-switch summary { min-height: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .oh-mode-switch .oh-mode-name { display: none; }
  .oh-mode-menu button { min-height: 44px; }

  #content { padding: 18px 16px; }
  .main-content { margin-right: 0; width: auto; }
  #landing_page .sidebar, .sidebar {
    float: none !important;
    width: 100% !important;
    margin: 0 0 16px;
  }
  .sidebar .front-page-button { width: auto; }
  .sidebar .front-page-button .button { width: 100%; max-width: none; box-sizing: border-box; text-align: center; }

  /* templates hard-code width="800" on layout tables: let them fit the screen */
  #content table[width], #content form > table { width: 100% !important; }
  #ticketForm table, #ticketForm tbody, #ticketForm tr, #ticketForm td,
  #clientLogin table, #clientLogin tbody, #clientLogin tr, #clientLogin td {
    display: block;
    width: auto !important;
  }
  #content form table,
  #content form table > tbody,
  #content form table > tbody > tr,
  #content form table > tbody > tr > td,
  #content form table > tbody > tr > th {
    display: block;
    width: auto !important;
    height: auto !important;          /* table.padded fixes cells at 20px */
  }
  #content form table td input[type=text],
  #content form table td input[type=email],
  #content form table td input[type=password],
  #content form table td select,
  #content form table td textarea { width: 100%; }
  .select2-container { max-width: 100%; }
  /* ticket view: the two info boxes stack instead of sitting side by side */

  /* phone number + extension stay on one line */
  #content input[type=tel] { width: calc(100% - 110px) !important; }
  #content input[name$="-ext"] { width: 64px !important; }
  #ticketForm div input, #ticketForm div textarea, #ticketForm div select,
  #clientLogin div textarea, #reply textarea, .redactor-box { width: 100% !important; }
  #content { overflow-x: hidden; }
  #clientLogin { padding: 16px; }
  #clientLogin > div[style*="table-row"] { flex-direction: column; gap: 16px; }

  /* ADR-009 guest pages */
  .oh-signin { margin-top: 16px; }
  .oh-split-main, .oh-split-aside { padding: 28px 20px; }
  .oh-status-card { padding: 28px 20px; }
  .oh-signin h1.oh-welcome { font-size: 1.625rem; line-height: 2rem; }

  .oh-card { padding: 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; }

  /* tables scroll sideways instead of overflowing the card */

  input[type="text"], input[type="email"], input[type="password"], select, textarea { width: 100%; }
}

/* ---------- In-app help (ADR-006 Stage C) ---------- */
/* The panel is css/onehlp-help.css. From 1024px the page and the fixed footer
   make room for the open panel; narrower screens lay it over the page. */
@media (min-width: 1024px) {
  html.oh-help-open body { padding-right: var(--oh-help-w); }
  html.oh-help-open #footer { right: var(--oh-help-w); }
}

/* ---------- Company logo upload (ADR-008) ---------- */
:root[data-oh-logo="custom"] #logo { width: auto; background: none; }

/* ---------- Yes/no dialog (js/osticket.js ohConfirm) ----------
   The portal's own confirm: "Leave without saving?", "Remove this passkey?".
   Same words and buttons as the staff panel's. Native <dialog>. */
dialog.oh-confirm {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  margin: auto;
  padding: 24px;
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  background: var(--oh-surface);
  color: var(--oh-text);
  box-shadow: var(--oh-shadow-lg);
  font-family: var(--oh-font);
}
dialog.oh-confirm::backdrop { background: rgba(var(--oh-shadow-rgb), .45); }
dialog.oh-confirm h3 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.625rem; color: var(--oh-text); }
dialog.oh-confirm p { margin: 0 0 20px; font-size: 1rem; line-height: 1.3125rem; color: var(--oh-text-muted); }
.oh-confirm-buttons { display: flex; justify-content: space-between; gap: 12px; }
dialog.oh-confirm button.oh-confirm-primary {
  background: var(--oh-primary);
  border-color: var(--oh-primary);
  color: var(--oh-on-primary);
}
dialog.oh-confirm button.oh-confirm-primary:hover { background: var(--oh-primary-hover); border-color: var(--oh-primary-hover); }
dialog.oh-confirm button.oh-confirm-danger {
  background: var(--oh-surface);
  border-color: var(--oh-danger-border);
  color: var(--oh-danger-strong);
}
dialog.oh-confirm button.oh-confirm-danger:hover { background: var(--oh-danger-soft); }
dialog.oh-confirm button:focus-visible { outline: 2px solid var(--oh-primary); outline-offset: 2px; }
@media (max-width: 760px) {
  dialog.oh-confirm { padding: 20px; }
  .oh-confirm-buttons { flex-direction: column-reverse; }
  .oh-confirm-buttons button { width: 100%; min-height: 44px; }
}

/* ---------- Passkeys (auth-passkey plugin, ADR-010) ----------
   Sign-in: "Sign in with passkey" + OR above the form (same look as the staff
   sign-in). Profile: a "Passkeys" section under the profile form. */
.oh-passkey[hidden], .oh-pk-unsupported[hidden], .oh-pk-add[hidden] { display: none; }
.oh-passkey-btn,
.oh-passkey-btn:hover {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 18px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--oh-primary-text);
  background: var(--oh-primary-soft);
  border: 1px solid var(--oh-primary-border-strong);
  border-radius: 10px;
  box-shadow: none;
}
.oh-passkey-btn:hover { background: var(--oh-primary-soft-hover); border-color: var(--oh-primary); }
.oh-passkey-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(var(--oh-primary-rgb), .2); }
.oh-passkey-btn:disabled { opacity: .6; cursor: progress; }
.oh-passkey-icon { flex: none; color: var(--oh-primary-text); }
.oh-passkey-label { flex: 1; text-align: left; }
.oh-passkey-hint { flex: none; font-size: 1rem; font-weight: 400; color: var(--oh-text-muted); }
.oh-passkey-msg { margin-top: 8px; font-size: 1rem; color: var(--oh-danger-strong); }
.oh-passkey-msg:empty { display: none; }
.oh-or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--oh-text-muted);
  font-size: .9375rem;
  letter-spacing: .06em;
}
.oh-or::before, .oh-or::after { content: ""; flex: 1; border-top: 1px solid var(--oh-border-strong); }

/* Sign in with Salesforce (auth-salesforce plugin, ADR-022 rule 15): first
   button above the passkey and the form. Its own "OR" goes when the passkey
   button (which brings one) is shown under it. */
.oh-sf-btn,
.oh-sf-btn:hover {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 18px;
  box-sizing: border-box;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--oh-text);
  background: var(--oh-surface);
  border: 1px solid var(--oh-border-strong);
  border-radius: 10px;
  text-decoration: none;
}
.oh-sf-btn:hover { background: var(--oh-primary-soft); border-color: var(--oh-primary); }
.oh-sf-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(var(--oh-primary-rgb), .2); }
.oh-sf-icon { flex: none; color: var(--oh-primary-text); }
.oh-sf-label { flex: 1; text-align: left; }
.oh-sf-hint { margin: 8px 0 0; font-size: 1rem; color: var(--oh-text-muted); overflow-wrap: anywhere; }
.oh-sf:has(+ .oh-passkey:not([hidden])) { margin-bottom: 12px; }
.oh-sf:has(+ .oh-passkey:not([hidden])) .oh-or { display: none; }

.oh-pk-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--oh-border); }
.oh-pk-section h2 { margin: 0 0 4px; font-size: 1.375rem; font-weight: 700; color: var(--oh-text); }
.oh-pk-intro { margin: 0 0 16px; color: var(--oh-text-muted); }
.oh-pk-unsupported {
  margin: 0 0 16px; padding: 10px 14px;
  background: var(--oh-warning-faint); border: 1px solid var(--oh-warning-border);
  border-radius: var(--oh-radius-sm); color: var(--oh-warning-text);
}
#oh-pk-list { width: 100%; max-width: 760px; border-collapse: collapse; }
#oh-pk-list th {
  padding: 8px 10px; text-align: left;
  font-size: .9375rem; font-weight: 600; color: var(--oh-text-muted);
  border-bottom: 1px solid var(--oh-border);
}
#oh-pk-list td { padding: 10px; border-bottom: 1px solid var(--oh-divider); vertical-align: middle; }
#oh-pk-list td.faded { color: var(--oh-text-muted); }
#oh-pk-list td .icon-key { color: var(--oh-primary-text); margin-right: 6px; }
.oh-pk-actions { text-align: right; width: 1%; white-space: nowrap; }
.oh-pk-remove.button.red, .oh-pk-remove.button.red:hover {
  background: var(--oh-surface); border-color: var(--oh-danger-border); color: var(--oh-danger-strong);
}
.oh-pk-remove.button.red:hover { background: var(--oh-danger-soft); }
.oh-pk-add { display: flex; gap: 10px; flex-wrap: wrap; max-width: 760px; margin-top: 16px; }
.oh-pk-add input[type=text] { flex: 1 1 240px; min-width: 0; height: 40px; }
.oh-pk-add .button.primary {
  background: var(--oh-primary); border-color: var(--oh-primary); color: var(--oh-on-primary);
}
.oh-pk-add .button.primary:hover { background: var(--oh-primary-hover); }
.oh-pk-msg { margin-top: 10px; color: var(--oh-danger-strong); }
.oh-pk-msg:empty { display: none; }
@media (max-width: 760px) {
  .oh-passkey-hint { display: none; }          /* keep the button text on one line */
  /* passkey list: one card per passkey */
  #oh-pk-list thead { display: none; }
  #oh-pk-list, #oh-pk-list tbody, #oh-pk-list tr, #oh-pk-list td { display: block; width: auto !important; }
  #oh-pk-list tr { padding: 10px 0; border-bottom: 1px solid var(--oh-border); }
  #oh-pk-list td { padding: 2px 0; border: 0; }
  #oh-pk-list td[data-label]::before { content: attr(data-label) ": "; color: var(--oh-text-muted); }
  #oh-pk-list td[data-label] { font-size: 1rem; }
  .oh-pk-actions { text-align: left; padding-top: 8px !important; }
  .oh-pk-add .button.primary, .oh-pk-remove { min-height: 44px; }
  .oh-pk-add .button.primary { flex: 1 1 100%; width: 100%; }
}

/* ---------- Anchors below the pinned top bar; phone footer above the tab bar ----------
   (ADR-009 amendment; the top bar and tab bar themselves are in the ADR-022 section) */

@media (min-width: 761px) {
  /* #anchors and focused fields land below the pinned header. Not
     scroll-padding on html: browsers apply it to focus too, so tabbing onto
     an icon in the pinned header scrolled the page back to the top */
  :target, #content a, #content input, #content select, #content textarea, #content button { scroll-margin-top: 80px; }
}

@media (max-width: 860px) {      /* same width as the tab bar (ADR-022 step B) */
  :root { --oh-tabbar-h: 64px; }   /* the phone bar (ADR-023) */
  body {
    display: flex; flex-direction: column;
    min-height: 100dvh; box-sizing: border-box;
    padding-bottom: calc(var(--oh-tabbar-h) + env(safe-area-inset-bottom));
  }
  #container { flex: 1 0 auto; width: 100%; padding-bottom: 16px; }
  #footer {
    position: static; height: auto;
    padding: 8px 16px 12px;
    background: none; border: 0;
    font-size: .9375rem;
  }
}

/* ---------------------------------------------------------------------------
   Rich-text editor (Redactor) follows the theme: GK 2026-10-15. ADR-002 had
   left redactor.css out of the legacy layer so the editor stayed white in dark
   mode. Roles only, so light mode keeps a white box and dark/contrast follow.
   The same block is in onehlp-staff.css and onehlp-portal.css.
   --------------------------------------------------------------------------- */
.redactor-box.redactor-styles-on { background: var(--oh-surface); border-color: var(--oh-control-border); }
.redactor-focus.redactor-styles-on,
.redactor-focus:focus.redactor-styles-on { border-color: var(--oh-primary) !important; }
.redactor-over:hover.redactor-styles-on { border-color: var(--oh-primary-border-strong) !important; }
.redactor-styles, .redactor-in { color: var(--oh-text); background: var(--oh-surface); }
.redactor-styles a { color: var(--oh-primary-text); }
.redactor-placeholder:before { color: var(--oh-text-placeholder) !important; }
.redactor-in figure[data-redactor-type=line] hr { background: var(--oh-border); }
.redactor-toolbar-wrapper, .redactor-toolbar,
.redactor-box.redactor-styles-on .redactor-toolbar { background: var(--oh-subtle); }
.redactor-toolbar a, .redactor-air a { color: var(--oh-text); background: transparent; }
.redactor-toolbar a:hover, .redactor-air a:hover { color: var(--oh-on-primary); background: var(--oh-primary); }
.redactor-toolbar a.redactor-button-active { color: var(--oh-primary-text); background: var(--oh-primary-soft); }
.redactor-toolbar a.redactor-button-disabled:hover,
.redactor-air a.redactor-button-disabled:hover { color: var(--oh-text-muted); }
.redactor-statusbar { background: var(--oh-subtle); }
.redactor-statusbar li, .redactor-statusbar a { color: var(--oh-text-muted); border-right-color: var(--oh-border); }
.redactor-dropdown { background-color: var(--oh-surface); color: var(--oh-text); box-shadow: var(--oh-shadow); }
.redactor-dropdown a { color: var(--oh-text); border-bottom-color: var(--oh-divider); }
.redactor-dropdown a:hover { color: var(--oh-on-primary) !important; background-color: var(--oh-primary) !important; }
.redactor-dropdown a.redactor-dropdown-item-disabled { color: var(--oh-text-muted); background: var(--oh-surface); }
.redactor-modal { background: var(--oh-surface); color: var(--oh-text); box-shadow: var(--oh-shadow-lg); }
.redactor-modal-header { color: var(--oh-text); border-bottom-color: var(--oh-border); }
.redactor-modal input, .redactor-modal select, .redactor-modal textarea {
  background: var(--oh-surface); color: var(--oh-text); border-color: var(--oh-control-border); }
/* osTicket's own block in redactor.css doubles the class to win; match it */
.redactor-box.redactor-styles-on .redactor-toolbar.redactor-toolbar {
  background-color: var(--oh-subtle); box-shadow: 0 4px 10px -6px rgba(var(--oh-shadow-rgb), .22); }
.redactor-toolbar.redactor-toolbar a { color: var(--oh-text); }
.redactor-toolbar.redactor-toolbar a:hover { color: var(--oh-on-primary); background-color: var(--oh-primary); }

/* ---------- Back to top (js/onehlp-to-top.js) ----------
   Same as the staff System Logs page: bottom right, above the fixed footer
   (or the phone tab bar), shown once the page has scrolled 400 px. */
.oh-to-top {
  position: fixed; z-index: 210;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--oh-footer-h, 40px) + 16px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--oh-border-strong); background: var(--oh-surface); color: var(--oh-text);
  box-shadow: var(--oh-shadow-lg);
}
.oh-to-top[hidden] { display: none; }
.oh-to-top i { font-size: 1.125rem; line-height: 1; }
.oh-to-top:hover { background: var(--oh-subtle); }
.oh-to-top:focus-visible { outline: 2px solid var(--oh-primary); outline-offset: 2px; }
@media (min-width: 1024px) {
  html.oh-help-open .oh-to-top { right: calc(var(--oh-help-w) + 24px); }
}
@media (max-width: 860px) {     /* above the bottom tab bar */
  .oh-to-top { right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(var(--oh-tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Approvals (ADR-016) ----------
   Ticket page section "Approvals", the Approve / Reject / Choose testers
   dialogs (native <dialog>, opened by js/osticket.js) and the list tab
   "Waiting for my approval". */
.oh-portal-gates { margin: 0 0 20px; padding: 16px 20px; border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius); background: var(--oh-surface); scroll-margin-top: 96px; }
.oh-portal-gates h2 { margin: 0 0 4px; font-size: 1.25rem; }
.oh-portal-gates .oh-gate-intro { margin: 0 0 12px; color: var(--oh-text-muted); font-size: 1rem; }
.oh-portal-gates ul { list-style: none; margin: 0; padding: 0; }
.oh-portal-gates .oh-gate { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--oh-divider); }
.oh-portal-gates .oh-gate-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oh-portal-gates .oh-gate-top .oh-chip { margin-left: auto; }
.oh-portal-gates .oh-gate-n { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: .875rem; font-weight: 700; background: var(--oh-subtle); border: 1px solid var(--oh-border); color: var(--oh-text-muted); }
.oh-portal-gates .oh-gate-granted .oh-gate-n { background: var(--oh-success-soft); border-color: var(--oh-success-border); color: var(--oh-success-text); }
.oh-portal-gates .oh-gate-requested .oh-gate-n { background: var(--oh-warning-soft); border-color: var(--oh-warning-border); color: var(--oh-warning-text); }
.oh-portal-gates .oh-gate-rejected .oh-gate-n { background: var(--oh-danger-soft); border-color: var(--oh-danger-border); color: var(--oh-danger-text); }
.oh-portal-gates .oh-gate-obl { font-size: .8125rem; font-weight: 600; color: var(--oh-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.oh-portal-gates .oh-gate-obl-required { color: var(--oh-danger-text); }
.oh-portal-gates small { color: var(--oh-text-muted); font-size: .9375rem; overflow-wrap: anywhere; }
.oh-portal-gates .oh-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: .875rem; font-weight: 600; white-space: nowrap; border: 1px solid var(--oh-border);
  background: var(--oh-subtle); color: var(--oh-text); }
.oh-portal-gates .oh-chip-ok { background: var(--oh-success-soft); color: var(--oh-success-text); border-color: var(--oh-success-border); }
.oh-portal-gates .oh-chip-warn { background: var(--oh-warning-soft); color: var(--oh-warning-text); border-color: var(--oh-warning-border); }
.oh-portal-gates .oh-chip-bad { background: var(--oh-danger-soft); color: var(--oh-danger-text); border-color: var(--oh-danger-border); }
.oh-portal-gates .oh-chip-faded { color: var(--oh-text-muted); }
.oh-portal-gates .oh-gate-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.oh-portal-gates .oh-gate-approve { background: var(--oh-primary); border-color: var(--oh-primary); color: var(--oh-on-primary); }
.oh-portal-gates .oh-gate-approve:hover { background: var(--oh-primary-hover); border-color: var(--oh-primary-hover); }
.oh-portal-gates .oh-gate-reject { background: var(--oh-surface); border-color: var(--oh-danger-border); color: var(--oh-danger-strong); }
.oh-portal-gates .oh-gate-testers { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--oh-divider);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--oh-text-muted); }

dialog.oh-gate-dialog {
  box-sizing: border-box; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  margin: auto; padding: 24px; border: 1px solid var(--oh-border); border-radius: var(--oh-radius);
  background: var(--oh-surface); color: var(--oh-text); box-shadow: var(--oh-shadow-lg); font-family: var(--oh-font);
}
dialog.oh-gate-dialog::backdrop { background: rgba(var(--oh-shadow-rgb), .45); }
dialog.oh-gate-dialog form { display: grid; gap: 10px; }
dialog.oh-gate-dialog h3 { margin: 0 0 4px; font-size: 1.25rem; line-height: 1.625rem; }
dialog.oh-gate-dialog p { margin: 0; color: var(--oh-text-muted); }
dialog.oh-gate-dialog label { font-weight: 600; font-size: 1rem; }
dialog.oh-gate-dialog textarea, dialog.oh-gate-dialog input[type=file] { width: 100%; box-sizing: border-box; }
.oh-gate-statement { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--oh-radius-sm);
  background: var(--oh-subtle); border: 1px solid var(--oh-border); font-weight: 500 !important; }
.oh-gate-statement input { margin-top: 3px; flex: none; }
.oh-gate-checks { display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.oh-gate-check { display: flex; gap: 8px; align-items: baseline; font-weight: 500 !important; overflow-wrap: anywhere; }
.oh-gate-check small { color: var(--oh-text-muted); }
dialog.oh-gate-dialog .oh-confirm-buttons { margin-top: 8px; }
dialog.oh-gate-dialog button.oh-confirm-primary { background: var(--oh-primary); border-color: var(--oh-primary); color: var(--oh-on-primary); }
dialog.oh-gate-dialog button.oh-confirm-danger { background: var(--oh-surface); border-color: var(--oh-danger-border); color: var(--oh-danger-strong); }
dialog.oh-gate-dialog button:focus-visible { outline: 2px solid var(--oh-primary); outline-offset: 2px; }
@media (max-width: 760px) {
  .oh-portal-gates { padding: 14px 16px; }
  .oh-portal-gates .oh-gate-acts button, .oh-portal-gates .oh-gate-testers button { min-height: 44px; flex: 1 1 auto; }
  dialog.oh-gate-dialog { padding: 20px; }
  dialog.oh-gate-dialog .oh-confirm-buttons { flex-direction: column-reverse; }
  dialog.oh-gate-dialog .oh-confirm-buttons button { width: 100%; min-height: 44px; }
}

/* ---------- Feedback page (ADR-018) ----------
   feedback.php: 1-5 stars (radio buttons drawn as stars), comment, and now
   and then the 0-10 recommend question. Stars fill up to the chosen one
   with :has(); keyboard: arrows move within each group. */
.oh-feedback fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.oh-feedback legend { padding: 0; margin-bottom: 8px; font-size: 1rem; font-weight: 600; color: var(--oh-text); }
.oh-feedback textarea { width: 100%; box-sizing: border-box; font-size: 1.125rem; font-weight: 400; padding: 10px 12px; }
.oh-rate-stars { display: flex; gap: 4px; }
.oh-rate-stars input, .oh-nps-scale input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.oh-rate-stars label {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--oh-radius-sm);
  font-size: 2.25rem; line-height: 1; cursor: pointer; color: var(--oh-border-strong);
}
.oh-rate-stars label:hover { background: var(--oh-subtle); }
.oh-rate-stars input:focus-visible + label { outline: 2px solid var(--oh-primary); outline-offset: 2px; }
.oh-rate-stars:has(input[value="1"]:checked) label:nth-of-type(-n+1),
.oh-rate-stars:has(input[value="2"]:checked) label:nth-of-type(-n+2),
.oh-rate-stars:has(input[value="3"]:checked) label:nth-of-type(-n+3),
.oh-rate-stars:has(input[value="4"]:checked) label:nth-of-type(-n+4),
.oh-rate-stars:has(input[value="5"]:checked) label:nth-of-type(-n+5) { color: var(--oh-warning); }
.oh-nps-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.oh-nps-scale label {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1px solid var(--oh-border-strong); border-radius: var(--oh-radius-sm);
  background: var(--oh-surface); color: var(--oh-text); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.oh-nps-scale label:hover { background: var(--oh-subtle); }
.oh-nps-scale input:checked + label { background: var(--oh-primary); border-color: var(--oh-primary); color: var(--oh-on-primary); }
.oh-nps-scale input:focus-visible + label { outline: 2px solid var(--oh-primary); outline-offset: 2px; }
.oh-nps-ends { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0 0; font-size: .9375rem; color: var(--oh-text-muted); }
.oh-fb-note { margin: 0; font-size: .9375rem; color: var(--oh-text-muted); }
.oh-fb-given { font-size: 1.125rem; }
.oh-stars { color: var(--oh-warning); letter-spacing: 1px; font-size: 1.25rem; }
.oh-stars-off { color: var(--oh-border-strong); }
@media (max-width: 480px) {
  .oh-nps-scale { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.oh-rate-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--oh-border); border-radius: var(--oh-radius);
  background: var(--oh-surface); }
.oh-rate-cta .button { margin: 0; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------------------------------------------------------------------
   Service status (ADR-020 rule 13): status.php, the open-issue banner
   --------------------------------------------------------------------- */
.oh-svc { display: flex; flex-direction: column; gap: 16px; max-width: 880px; margin: 0 auto; }
.oh-svc h1 { margin: 0; font-size: 1.5rem; line-height: 1.875rem; font-weight: 700; color: var(--oh-text); }
.oh-svc h2 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 700; color: var(--oh-text); }
.oh-svc h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.oh-svc-card {
  padding: 20px 24px;
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: 14px;
  box-shadow: var(--oh-shadow);
}
.oh-svc-empty { text-align: center; padding: 40px 24px; }
.oh-svc-empty p { color: var(--oh-text-muted); }

.oh-svc-lines { list-style: none; margin: 0; padding: 0; }
.oh-svc-line {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid var(--oh-divider);
}
.oh-svc-line:first-child { border-top: 0; padding-top: 0; }
.oh-svc-line-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.oh-svc-line-main a { font-size: 1rem; }

.oh-svc-chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .9375rem; font-weight: 600;
  border: 1px solid var(--oh-border); background: var(--oh-subtle); color: var(--oh-text); white-space: nowrap;
}
.oh-svc-chip.oh-svc-ok { background: var(--oh-success-soft); border-color: var(--oh-success-border); color: var(--oh-success-text); }
.oh-svc-chip.oh-svc-warn { background: var(--oh-warning-soft); border-color: var(--oh-warning-border); color: var(--oh-warning-text); }
.oh-svc-chip.oh-svc-bad { background: var(--oh-danger-soft); border-color: var(--oh-danger-border); color: var(--oh-danger-text); }
.oh-svc-chip.oh-svc-info { background: var(--oh-info-soft); border-color: var(--oh-info-border); color: var(--oh-info-text); }
.oh-svc-chips { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.oh-svc-products { font-size: .9375rem; color: var(--oh-text-muted); }

.oh-svc-follow { margin: 0; }
.oh-svc-follow .button { min-height: 36px; padding: 0 14px; }
/* white secondary button (blue is for the main action, ADR-002) */
.oh-svc-follow button.button { background: var(--oh-surface); border-color: var(--oh-control-border); color: var(--oh-text); }
.oh-svc-follow button.button:hover { background: var(--oh-subtle); color: var(--oh-text); }
.oh-svc-follow button.button.oh-following { background: var(--oh-success-soft); border-color: var(--oh-success-border); color: var(--oh-success-text); }
.oh-svc-note, .oh-svc-none { margin: 12px 0 0; font-size: 1rem; color: var(--oh-text-muted); }
.oh-svc-none { margin: 0; }

.oh-svc-issue { padding: 14px 0; border-top: 1px solid var(--oh-divider); }
.oh-svc-issue:first-of-type { border-top: 0; padding-top: 0; }

.oh-svc-window { margin: 6px 0 0; font-size: 1rem; color: var(--oh-text); }
.oh-svc-recent { list-style: none; margin: 0; padding: 0; }
.oh-svc-recent li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 0;
  border-top: 1px solid var(--oh-divider); font-size: 1rem; }
.oh-svc-recent li:first-child { border-top: 0; padding-top: 0; }
.oh-svc-recent span { color: var(--oh-text-muted); }

.oh-svc-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--oh-divider); }
.oh-svc-timeline li { position: relative; padding: 0 0 18px; }
.oh-svc-timeline li::before { content: ''; position: absolute; left: -25px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--oh-primary); border: 2px solid var(--oh-surface); }
.oh-svc-timeline li:last-child { padding-bottom: 0; }
.oh-svc-tl-head { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: .9375rem; color: var(--oh-text-muted); }
.oh-svc-tl-body { font-size: 1.0625rem; color: var(--oh-text); }
.oh-svc-tl-body p { margin: 0 0 8px; }

/* the banner on the home and ticket pages */
.oh-svc-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 16px;
  background: var(--oh-warning-soft); border: 1px solid var(--oh-warning-border); border-radius: 12px;
  color: var(--oh-warning-text);
}
.oh-svc-banner > i { font-size: 1.375rem; }
/* the text keeps at least 8em beside the icon; on a phone "See status" moves to its own line */
.oh-svc-banner p { margin: 0; flex: 1 1 8em; min-width: 0; }
.oh-svc-banner p span { display: block; font-size: .9375rem; }
.oh-svc-banner a { font-weight: 600; color: inherit; white-space: nowrap; margin-left: auto; }

@media (max-width: 760px) {
  .oh-svc-card { padding: 16px; }

  .oh-svc-follow .button { min-height: 44px; }
  .oh-svc-line .oh-svc-follow { flex-basis: 100%; }
  .oh-svc-line .oh-svc-follow .button { width: 100%; }
}

/* OneHLP (ADR-022 rules 20-23): New request, "What is it about?" */
.oh-about { margin: 0; padding: 0; border: 0; display: grid; gap: 12px; }
.oh-about legend { font-weight: 600; font-size: 1.1em; padding: 0; margin-bottom: 8px; }
.oh-about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.oh-about-choice {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; cursor: pointer;
    border: 1px solid var(--oh-border); border-radius: var(--oh-radius-sm); background: var(--oh-surface);
}
.oh-about-choice:has(input:checked) { border-color: var(--oh-primary); background: var(--oh-primary-soft); box-shadow: inset 0 0 0 1px var(--oh-primary); }
.oh-about-choice input { margin-top: 3px; flex: none; }
.oh-about-choice span { display: grid; gap: 2px; min-width: 0; }
.oh-about-choice small { color: var(--oh-text-muted); }
.oh-about-other { border-style: dashed; }
.oh-about-chip {
    justify-self: start; font-style: normal; font-size: .875rem; font-weight: 600; padding: 1px 8px; border-radius: 999px;
    background: var(--oh-warning-soft); color: var(--oh-warning-text); border: 1px solid var(--oh-warning-border);
}
.oh-state-expired .oh-about-chip { background: var(--oh-subtle); color: var(--oh-text-muted); border-color: var(--oh-border); }
.oh-about-more { margin: 0; }
.oh-about-extra { display: grid; gap: 6px; }
.oh-about-extra[hidden] { display: none; }
.oh-about-extra select { max-width: 360px; }
.oh-ooc {
    padding: 14px 16px; border-radius: var(--oh-radius-sm);
    background: var(--oh-warning-soft); color: var(--oh-warning-text); border: 1px solid var(--oh-warning-border);
}
.oh-ooc label { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--oh-text); cursor: pointer; }
.oh-ooc a { color: inherit; font-weight: 600; }
@media (max-width: 760px) {
    .oh-about-choice { min-height: 44px; }
    .oh-about-extra select { max-width: none; width: 100%; }
}

/* osTicket's form rules make labels blocks; these win by id */
#oh-about .oh-about-choice { display: flex; }
#oh-about .oh-about-choice input, #oh-ooc label input { flex: none; width: auto !important; min-width: 0 !important; max-width: none; margin: 3px 0 0; }
#ticketForm #oh-ooc label { display: flex; align-items: flex-start; gap: 8px; }
#oh-about-product label { display: block; }
#oh-about .oh-about-choice > span { flex: 1; }

/* OneHLP (ADR-022 rules 20, 21): Explore more and "I'm interested" (interest.php) */
.oh-explore { display: grid; gap: 24px; }
.oh-explore h2 { margin: 0; }
.oh-explore-group { display: grid; gap: 12px; }
.oh-explore-group h3 { margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--oh-border); }
.oh-explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.oh-explore-card {
    display: flex; flex-direction: column; gap: 8px; padding: 18px; min-width: 0;
    border: 1px solid var(--oh-border); border-radius: var(--oh-radius); background: var(--oh-surface);
    color: var(--oh-text) !important; text-decoration: none !important;
}
.oh-explore-card:hover, .oh-explore-card:focus-visible { border-color: var(--oh-primary); }
.oh-explore-card small { color: var(--oh-text-muted); }
.oh-explore-card .oh-cta { margin-top: auto; color: var(--oh-primary-text); font-weight: 600; }
.oh-explore-icon {
    width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: var(--oh-primary-soft); color: var(--oh-primary-text); font-weight: 700;
}
.oh-interest { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.oh-interest form {
    flex: 999 1 480px; min-width: 0; display: grid; gap: 16px; padding: 24px;
    border: 1px solid var(--oh-border); border-radius: var(--oh-radius); background: var(--oh-surface);
}
.oh-interest form label { display: grid; gap: 6px; font-weight: 600; }
.oh-interest form textarea, .oh-interest form select, .oh-interest form input[type=tel] { width: 100%; box-sizing: border-box; font: inherit; }
.oh-interest form .oh-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.oh-interest aside {
    flex: 1 1 260px; display: grid; gap: 10px; padding: 20px;
    border: 1px solid var(--oh-border); border-radius: var(--oh-radius); background: var(--oh-surface);
}
.oh-interest aside ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.oh-interest-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) {
    .oh-interest-actions .button, .oh-interest-actions input { width: 100%; min-height: 44px; }
}

/* =====================================================================
   Portal redesign (ADR-022 step B). Font, one white top bar, phone tab bar.
   Earlier header rules (#header, #nav, .oh-header-nav) no longer match.
   ===================================================================== */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans/ibm-plex-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-sans/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-sans/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/ibm-plex-sans/ibm-plex-sans-latin-700-normal.woff2) format("woff2"); }
:root { --oh-font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body { font-size: 1.125rem; }  /* not html: the root is the text size (ADR-024) */
#container { max-width: 1280px; padding: 0 32px; }

/* Top bar: white band across the window (border-image outset never widens the page) */
.oh-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 32px; min-height: 76px;
}
.oh-top::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-image: linear-gradient(to top, var(--oh-border) 1px, var(--oh-surface) 1px) fill 0 / 0 / 0 100vmax;
}
.oh-top #logo { flex: none; height: 76px; width: 150px; display: flex; align-items: center; float: none;
  background: url(../images/onehlp-logo.png) left center / contain no-repeat; }
:root[data-theme="dark"] .oh-top #logo { background-image: url(../images/onehlp-logo-dark.png); }
.oh-top #logo img { display: none; }
:root[data-oh-logo="custom"] .oh-top #logo { width: auto; background: none; }
:root[data-oh-logo="custom"] .oh-top #logo img { display: block; max-height: 44px; max-width: 220px; width: auto; }
.oh-menu { flex: 1 1 auto; display: flex; align-self: stretch; gap: 4px; min-width: 0; }
.oh-menu a {
  display: flex; align-items: center; padding: 0 14px; white-space: nowrap;
  color: var(--oh-text-muted) !important; font-size: 1.125rem; font-weight: 500; text-decoration: none !important;
}
.oh-menu a:hover { color: var(--oh-text) !important; }
.oh-menu a.active { color: var(--oh-text) !important; font-weight: 600; box-shadow: inset 0 -3px 0 var(--oh-primary); }
.oh-menu a:focus-visible { outline: 2px solid var(--oh-primary); outline-offset: -2px; }
.oh-top-right { flex: none; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.oh-top-right .oh-langs { margin: 0; }
.oh-top-button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 8px;
  border: 1px solid var(--oh-border-strong); background: var(--oh-surface);
  color: var(--oh-text) !important; font-size: 1.0625rem; font-weight: 600; text-decoration: none !important; white-space: nowrap;
}
.oh-top-button:hover { background: var(--oh-subtle); }
.oh-top-button.oh-signin-button { background: var(--oh-primary); border-color: var(--oh-primary); color: var(--oh-on-primary) !important; }
.oh-top-button.oh-signin-button:hover { background: var(--oh-primary-hover); }

/* Account menu */
.oh-account { position: relative; }
.oh-account summary {
  display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; cursor: pointer; list-style: none;
  border: 1px solid var(--oh-border); border-radius: 999px; background: var(--oh-surface); color: var(--oh-text-muted);
}
.oh-account summary::-webkit-details-marker { display: none; }
.oh-account summary:hover { background: var(--oh-subtle); }
.oh-account summary:focus-visible { outline: 2px solid var(--oh-primary); outline-offset: 2px; }
.oh-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--oh-chrome); color: var(--oh-on-chrome); font-size: .9375rem; font-weight: 600;
}
.oh-account-text { display: grid; line-height: 1.2; }
.oh-account-text b { font-size: 1rem; font-weight: 600; color: var(--oh-text); }
.oh-account-text small { font-size: .875rem; color: var(--oh-text-muted); }
.oh-account-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 200px; padding: 6px; display: grid;
  background: var(--oh-surface); border: 1px solid var(--oh-border); border-radius: var(--oh-radius); box-shadow: var(--oh-shadow-lg);
}
.oh-account-menu a {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: var(--oh-radius-sm);
  color: var(--oh-text) !important; font-size: 1rem; font-weight: 500; text-decoration: none !important;
}
.oh-account-menu a:hover, .oh-account-menu a:focus-visible { background: var(--oh-subtle); outline: none; }
.oh-account-menu i { width: 16px; color: var(--oh-text-muted); }


/* Footer: one line, BIZTBAA */
#footer .oh-powered { margin: 0; }

@media (max-width: 1100px) {
  .oh-top { gap: 18px; }
  .oh-menu a { padding: 0 10px; }
  .oh-account-text, .oh-mode-name { display: none; }
  .oh-account summary { padding: 4px; }
}
/* Larger text sizes (ADR-024) need the compact header on wider screens */
@media (max-width: 1320px) {
  :root[data-text-size="comfortable"] .oh-top { gap: 18px; }
  :root[data-text-size="comfortable"] .oh-menu a { padding: 0 10px; }
  :root[data-text-size="comfortable"] :is(.oh-account-text, .oh-mode-name) { display: none; }
  :root[data-text-size="comfortable"] .oh-account summary { padding: 4px; }
}
@media (max-width: 1600px) {
  :root[data-text-size="accessible"] .oh-top { gap: 18px; }
  :root[data-text-size="accessible"] .oh-menu a { padding: 0 10px; }
  :root[data-text-size="accessible"] :is(.oh-account-text, .oh-mode-name) { display: none; }
  :root[data-text-size="accessible"] .oh-account summary { padding: 4px; }
}
@media (max-width: 860px) {
  #container { padding: 0 16px; }
  .oh-menu { display: none; }
  .oh-top { min-height: 64px; gap: 8px; }
  /* the logo gives way before the buttons do, so the bar never runs off the screen */
  .oh-top #logo { height: 64px; width: auto; flex: 0 1 120px; min-width: 84px; }
  .oh-top-right { flex: 0 1 auto; min-width: 0; gap: 8px; }
  .oh-top-create { display: none; }
}
/* Narrow phones, or phones with large text: the phone bar already offers "Sign in";
   the account button shows only the initials */
@media (max-width: 480px) {
  .oh-top-button.oh-signin-button { display: none; }
  .oh-account summary { padding: 4px; gap: 0; }
  .oh-account summary .oh-account-text, .oh-account summary .icon-caret-down { display: none; }
}
@media (max-width: 360px) {
  .oh-top, .oh-top-right { gap: 6px; }
  .oh-top #logo { min-width: 72px; }
}
/* The narrowest screens (a phone with 150% text): Appearance stays on the Profile page */
@media (max-width: 300px) {
  .oh-top-right .oh-mode-switch { display: none; }
}

/* ---------- Home (ADR-022 step B): signed out and signed in ---------- */
.oh-landing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding: 28px 0 64px; }
.oh-l-top { display: flex; flex-direction: column; }
.oh-l-hero {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 64px 48px 150px; border-radius: 20px; background: var(--oh-chrome); color: var(--oh-on-chrome);
}
.oh-l-hero h1 { margin: 0; color: var(--oh-on-chrome); font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.15; font-weight: 700; }
.oh-l-hero > p { margin: 0; font-size: 1.3125rem; color: rgba(var(--oh-on-chrome-rgb), .85); }
.oh-l-eyebrow { margin: 0; font-size: .9375rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.oh-l-search { position: relative; display: flex; gap: 10px; width: 100%; max-width: 760px; margin-top: 12px; }
.oh-l-search > i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--oh-text-muted); font-size: 1.25rem; }
.oh-l-search input[type=search] {
  flex: 1; min-width: 0; height: 60px; box-sizing: border-box; padding: 0 18px 0 50px; border: 0; border-radius: 12px;
  background: var(--oh-surface); color: var(--oh-text); font: 400 1.25rem var(--oh-font);
}
.oh-l-search button {
  height: 60px; padding: 0 30px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--oh-primary); color: var(--oh-on-primary); font: 600 1.1875rem var(--oh-font); box-shadow: none; text-shadow: none;
}
.oh-l-search button:hover { background: var(--oh-primary-hover); }
.oh-l-popular { margin: 2px 0 0; font-size: 1.0625rem; color: rgba(var(--oh-on-chrome-rgb), .85); }
.oh-l-popular a { color: var(--oh-on-chrome) !important; text-decoration: underline; }
.oh-l-cards {
  margin: -104px 28px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px;
}
.oh-l-card {
  display: flex; flex-direction: column; gap: 12px; min-height: 230px; box-sizing: border-box; padding: 30px;
  background: var(--oh-surface); border: 1px solid var(--oh-border); border-radius: 16px; box-shadow: var(--oh-shadow-lg);
  color: var(--oh-text) !important; text-decoration: none !important;
}
.oh-l-card:hover { border-color: var(--oh-primary-border); }
.oh-l-card:focus-visible, .oh-l-product:focus-visible, .oh-l-service:focus-visible { outline: 2px solid var(--oh-primary); outline-offset: 2px; }
.oh-l-card strong { font-size: 1.5rem; line-height: 1.3; font-weight: 600; }
.oh-l-card > span:not(.oh-l-icon):not(.oh-l-go) { color: var(--oh-text-muted); font-size: 1.125rem; }
.oh-l-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.oh-l-icon.oh-tone-primary { background: var(--oh-primary); color: var(--oh-on-primary); }
.oh-l-icon.oh-tone-success { background: var(--oh-success-soft); color: var(--oh-success-text); }
.oh-l-icon.oh-tone-warning { background: var(--oh-warning-soft); color: var(--oh-warning-text); }
.oh-l-icon.oh-tone-info { background: var(--oh-primary-soft); color: var(--oh-primary-text); }
.oh-l-go { margin-top: auto; color: var(--oh-primary-text); font-size: 1.0625rem; font-weight: 600; }

.oh-l-section { display: grid; gap: 20px; min-width: 0; }
.oh-l-head { display: grid; gap: 4px; }
.oh-l-head h2 { margin: 0; font-size: 1.875rem; line-height: 1.25; }
.oh-l-head p { margin: 0; font-size: 1.1875rem; color: var(--oh-text-muted); }
.oh-l-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.oh-l-product, .oh-l-service {
  display: flex; gap: 18px; align-items: flex-start; padding: 26px; box-sizing: border-box; min-width: 0;
  background: var(--oh-surface); border: 1px solid var(--oh-border); border-radius: 16px;
  color: var(--oh-text) !important; text-decoration: none !important;
}
.oh-l-product:hover, .oh-l-service:hover { border-color: var(--oh-primary-border); }
.oh-l-other { border-style: dashed; border-color: var(--oh-border-strong); }
.oh-l-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-self: stretch; }
.oh-l-text strong { font-size: 1.375rem; line-height: 1.3; font-weight: 600; }
.oh-l-text > span:not(.oh-l-go), .oh-l-text small { color: var(--oh-text-muted); font-size: 1.0625rem; }
.oh-l-text small { font-size: .875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.oh-l-badge {
  flex: none; width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--oh-chrome); color: var(--oh-on-chrome); font-size: 1.4375rem; font-weight: 700;
}
.oh-l-badge-sm { width: 44px; height: 44px; border-radius: 12px; font-size: 1.0625rem; }
.oh-l-other .oh-l-badge { background: var(--oh-subtle); color: var(--oh-text); }
.oh-l-group { display: grid; gap: 14px; }
.oh-l-group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--oh-border); }
.oh-l-group-head h3 { margin: 0; font-size: 1.4375rem; }
.oh-l-group-head span { color: var(--oh-text-muted); }
.oh-l-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.oh-l-services.oh-l-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.oh-l-small .oh-l-service { flex-direction: column; gap: 10px; padding: 20px; }
.oh-l-small .oh-l-text strong { font-size: 1.1875rem; }
.oh-l-small .oh-l-text > span:not(.oh-l-go) { font-size: 1rem; }
.oh-l-sicon {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--oh-primary-soft); color: var(--oh-primary-text);
}
.oh-l-sicon.oh-l-alt { background: var(--oh-info-soft); color: var(--oh-info-text); }
.oh-l-small .oh-l-sicon { width: 40px; height: 40px; border-radius: 10px; }
.oh-l-new {
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 30px 34px;
  background: var(--oh-surface); border: 1px solid var(--oh-border); border-radius: 16px;
}
.oh-l-new h2 { margin: 0 0 6px; font-size: 1.5rem; }
.oh-l-new p { margin: 0; max-width: 70ch; color: var(--oh-text-muted); }
.oh-l-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px;
  border: 1px solid var(--oh-border-strong); background: var(--oh-surface); color: var(--oh-text) !important;
  font-size: 1.0625rem; font-weight: 600; text-decoration: none !important; white-space: nowrap; box-sizing: border-box;
}
.oh-l-button:hover { background: var(--oh-subtle); }
.oh-l-button.oh-l-primary { background: var(--oh-primary); border-color: var(--oh-primary); color: var(--oh-on-primary) !important; }
.oh-l-button.oh-l-primary:hover { background: var(--oh-primary-hover); }
.oh-l-button.oh-l-renew { background: var(--oh-warning-soft); border-color: var(--oh-warning-border); color: var(--oh-warning-text) !important; }

/* Signed in: boxes (Overview, ADR-026) */
.oh-l-box { background: var(--oh-surface); border: 1px solid var(--oh-border); border-radius: 16px; overflow: hidden; min-width: 0; }
.oh-l-status { display: flex; flex-direction: column; }
.oh-l-box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--oh-border); }
.oh-l-box-head h2 { margin: 0; font-size: 1.375rem; }
.oh-l-box-head a { font-weight: 600; }
.oh-l-box ul { list-style: none; margin: 0; padding: 0; }
.oh-l-status ul { display: grid; gap: 12px; padding: 18px 24px; }
.oh-l-status li { display: flex; align-items: center; gap: 12px; }
.oh-l-status li strong { flex: 1; font-weight: 600; }
.oh-l-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--oh-success); flex: none; }
.oh-l-dot.oh-st-degraded, .oh-l-dot.oh-st-partial, .oh-l-dot.oh-st-maintenance { background: var(--oh-warning); }
.oh-l-dot.oh-st-major { background: var(--oh-danger); }
.oh-l-state { font-size: 1rem; font-weight: 600; color: var(--oh-success-text); }
.oh-l-state.oh-st-degraded, .oh-l-state.oh-st-partial, .oh-l-state.oh-st-maintenance { color: var(--oh-warning-text); }
.oh-l-state.oh-st-major { color: var(--oh-danger-text); }
.oh-l-planned { margin: auto 24px 20px; padding: 12px 14px; border-radius: 12px; font-size: 1rem;
  background: var(--oh-primary-soft); color: var(--oh-primary-text); border: 1px solid var(--oh-primary-border); }
.oh-l-empty { margin: 0; padding: 18px 24px; color: var(--oh-text-muted); }

.oh-l-resources ul { margin: 0; padding-left: 20px; }

@media (max-width: 860px) {
  .oh-landing { gap: 32px; padding: 16px 0 32px; }
  .oh-l-hero { padding: 36px 20px 72px; border-radius: 18px; }
  .oh-l-hero > p { font-size: 1.125rem; }
  .oh-l-search button { padding: 0 18px; }
  .oh-l-search input[type=search], .oh-l-search button { height: 52px; }
  .oh-l-cards { margin: -44px 12px 0; gap: 12px; }
  .oh-l-card { min-height: 0; padding: 20px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
  .oh-l-card .oh-l-icon { width: 48px; height: 48px; font-size: 1.375rem; }
  .oh-l-card strong { font-size: 1.3125rem; flex: 1; }
  .oh-l-card > span:not(.oh-l-icon):not(.oh-l-go) { flex-basis: 100%; padding-left: 64px; font-size: 1rem; }
  .oh-l-card .oh-l-go { display: none; }
  .oh-l-head h2 { font-size: 1.5rem; }
  .oh-l-head p { font-size: 1.0625rem; }
  .oh-l-product, .oh-l-service { padding: 18px; gap: 14px; }
  .oh-l-badge { width: 52px; height: 52px; font-size: 1.25rem; }
  .oh-l-text strong { font-size: 1.25rem; }
  .oh-l-services .oh-l-go, .oh-l-products .oh-l-go { display: none; }
  .oh-l-new { padding: 20px; }
  .oh-l-new .oh-l-button { width: 100%; }
  .oh-l-box-head { padding: 14px 18px; }
}
/* The home page has no outer card (the design's sections stand on the page) */
#content:has(> .oh-landing) { background: none; border: 0; box-shadow: none; padding: 0; }
#content:has(> .oh-landing) > .oh-svc-banner { margin-top: 20px; }

/* ---------- My requests and one request (ADR-022 step B2) ---------- */
#content:has(> .oh-rq), #content:has(> .oh-rv) { background: none; border: 0; box-shadow: none; padding: 0; }
.oh-rq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 0 56px; }
.oh-rq-band {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px 40px 96px; border-radius: 20px; background: var(--oh-chrome); color: var(--oh-on-chrome);
}
.oh-rq-band-text { display: grid; gap: 8px; }
.oh-rq-band h1 { margin: 0; color: var(--oh-on-chrome); font-size: 2.25rem; line-height: 1.2; font-weight: 600; }
.oh-rq-band p { margin: 0; font-size: 1.1875rem; color: rgba(var(--oh-on-chrome-rgb), .85); }
.oh-rq-band .oh-l-eyebrow { color: rgba(var(--oh-on-chrome-rgb), .75); }
.oh-rq-new {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px;
  background: var(--oh-surface); color: var(--oh-text) !important; font-size: 1.125rem; font-weight: 600; text-decoration: none !important;
}
.oh-rq-new:hover { background: var(--oh-subtle); }
.oh-rq-new:focus-visible { outline: 2px solid var(--oh-on-chrome); outline-offset: 2px; }
.oh-rq-stats {
  margin: -84px 28px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px;
}
.oh-rq-stat {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; background: var(--oh-surface);
  border: 1px solid var(--oh-border); border-radius: 14px; box-shadow: var(--oh-shadow-lg);
  color: var(--oh-text) !important; text-decoration: none !important;
}
.oh-rq-stat:hover { border-color: var(--oh-primary-border); }
.oh-rq-stat:focus-visible { outline: 2px solid var(--oh-primary); outline-offset: 2px; }
/* The card whose requests the list shows (GK 2026-10-17: a click had no visible effect up here) */
.oh-rq-stat.active { border-color: var(--oh-primary); box-shadow: 0 0 0 1px var(--oh-primary), var(--oh-shadow-lg); }
.oh-rq-stat.active .oh-rq-stat-label { color: var(--oh-primary-text); font-weight: 600; }
/* Filter links land on the list. Wider screens keep the cards (with the chosen
   one marked) in view above it, under the pinned header; phones, where the cards
   stack, start at the list's own tabs. */
#oh-rq-list { scroll-margin-top: 300px; }
@media (max-width: 760px) { #oh-rq-list { scroll-margin-top: 12px; } }
.oh-rq-stat-label { display: flex; align-items: center; gap: 8px; font-size: 1.0625rem; font-weight: 500; color: var(--oh-text-muted); }
.oh-rq-stat strong { font-size: 2.125rem; line-height: 2.5rem; font-weight: 600; }
.oh-rq-stat > span:last-child { font-size: 1rem; color: var(--oh-text-muted); }
.oh-rq-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--oh-primary); }
.oh-rq-dot.oh-tone-approval { background: var(--oh-warning); }
.oh-rq-dot.oh-tone-done { background: var(--oh-border-strong); }

.oh-rq-card { background: var(--oh-surface); border: 1px solid var(--oh-border); border-radius: 16px; overflow: hidden; min-width: 0; }
.oh-rq-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 24px; border-bottom: 1px solid var(--oh-border);
}
.oh-rq-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--oh-subtle); overflow-x: auto; max-width: 100%; }
.oh-rq-tab {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 8px; white-space: nowrap;
  color: var(--oh-text-muted) !important; font-size: 1rem; font-weight: 500; text-decoration: none !important;
}
.oh-rq-tab span { color: var(--oh-text-muted); font-weight: 500; }
.oh-rq-tab:hover { color: var(--oh-text) !important; }
.oh-rq-tab.active { background: var(--oh-surface); color: var(--oh-text) !important; font-weight: 600; box-shadow: var(--oh-shadow); }
.oh-rq-tab:focus-visible { outline: 2px solid var(--oh-primary); outline-offset: -2px; }
.oh-rq-filter { display: flex; gap: 12px; flex-wrap: wrap; flex: 1 1 420px; justify-content: flex-end; margin: 0; }
.oh-rq-search { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 380px; margin: 0; }
.oh-rq-search i { position: absolute; left: 13px; color: var(--oh-text-muted); }
#content .oh-rq-filter input[type=search], #content .oh-rq-filter select {
  height: 42px; box-sizing: border-box; border: 1px solid var(--oh-control-border); border-radius: 8px;
  background-color: var(--oh-surface); color: var(--oh-text); font: 400 1.0625rem var(--oh-font);
}
#content .oh-rq-filter input[type=search] { width: 100%; padding: 0 12px 0 38px; }
#content .oh-rq-filter select { padding: 0 32px 0 12px; font-weight: 500; max-width: 240px; }
.oh-rq-searching { margin: 0; padding: 10px 24px; background: var(--oh-primary-soft); color: var(--oh-primary-text); font-size: 1rem; }
.oh-rq-searching a { font-weight: 600; margin-left: 6px; }

.oh-rq-scroll { overflow-x: auto; }
.oh-rq-table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.oh-rq-table th {
  text-align: left; padding: 12px 16px; background: var(--oh-subtle); color: var(--oh-text-muted);
  font-size: .875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--oh-border);
}
.oh-rq-table th:first-child, .oh-rq-table td:first-child { padding-left: 24px; }
.oh-rq-table th:last-child, .oh-rq-table td:last-child { padding-right: 24px; text-align: right; }
.oh-rq-table td { padding: 16px; border-bottom: 1px solid var(--oh-divider); color: var(--oh-text); vertical-align: middle; }
.oh-rq-table tbody tr:last-child td { border-bottom: 0; }
.oh-rq-table tbody tr:hover td { background: var(--oh-primary-faint); }
.oh-rq-subject a { display: block; color: var(--oh-text) !important; font-size: 1.125rem; font-weight: 600; }
.oh-rq-subject span { display: block; margin-top: 3px; color: var(--oh-text-muted); font-size: 1rem; }
.oh-rq-by, .oh-rq-when { white-space: nowrap; }
.oh-rq-k { display: none; }
.oh-rq-go a { color: var(--oh-text-muted) !important; display: inline-flex; padding: 6px; }
.oh-rq-pill {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; white-space: nowrap;
  font-size: .9375rem; font-weight: 600; border: 1px solid var(--oh-primary-border);
  background: var(--oh-primary-soft); color: var(--oh-primary-text);
}
.oh-rq-pill.oh-tone-progress { background: var(--oh-success-soft); color: var(--oh-success-text); border-color: var(--oh-success-border); }
.oh-rq-pill.oh-tone-approval { background: var(--oh-warning-soft); color: var(--oh-warning-text); border-color: var(--oh-warning-border); }
.oh-rq-pill.oh-tone-done { background: var(--oh-subtle); color: var(--oh-text-muted); border-color: var(--oh-border); }
.oh-rq-pill.oh-tone-prio { background: var(--oh-danger-soft); color: var(--oh-danger-text); border-color: var(--oh-danger-border); }
.oh-rq-empty { margin: 0; padding: 28px 24px; color: var(--oh-text-muted); text-align: center; }
.oh-rq-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 24px; border-top: 1px solid var(--oh-border); font-size: 1rem; color: var(--oh-text-muted);
}
.oh-rq-pages a, .oh-rq-pages b {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; margin-left: 4px;
  border-radius: 8px; border: 1px solid var(--oh-border); font-weight: 600; text-decoration: none !important;
}
.oh-rq-pages b { background: var(--oh-primary); border-color: var(--oh-primary); color: var(--oh-on-primary); }
.oh-rq-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.oh-rq-link {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; background: var(--oh-surface);
  border: 1px solid var(--oh-border); border-radius: 14px; color: var(--oh-text) !important; text-decoration: none !important;
}
.oh-rq-link:hover { border-color: var(--oh-primary-border); }
.oh-rq-link .oh-l-sicon { width: 44px; height: 44px; border-radius: 12px; }
.oh-rq-link .oh-l-text strong { font-size: 1.1875rem; }
.oh-l-sicon.oh-tone-success { background: var(--oh-success-soft); color: var(--oh-success-text); }
.oh-l-sicon.oh-tone-warning { background: var(--oh-warning-soft); color: var(--oh-warning-text); }

/* One request */
.oh-rv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 0 56px; }
.oh-rv-head {
  display: grid; gap: 16px; padding: 24px 32px 8px; background: var(--oh-surface);
  border: 1px solid var(--oh-border); border-radius: 16px;
}
.oh-rv-crumbs { font-size: 1rem; color: var(--oh-text-muted); }
.oh-rv-crumbs a { color: var(--oh-text-muted) !important; }
.oh-rv-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.oh-rv-title > div:first-child { display: grid; gap: 10px; min-width: 0; flex: 1 1 420px; }
.oh-rv-title h1 { margin: 0; font-size: 1.875rem; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
.oh-rv-meta { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--oh-text-muted); font-size: 1rem; }
.oh-rv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.oh-rv-steps { list-style: none; margin: 0; padding: 8px 0 18px; display: flex; flex-wrap: wrap; row-gap: 8px; }
.oh-rv-steps li { display: flex; align-items: center; gap: 10px; flex: 1 1 140px; min-width: 140px; padding: 6px 8px 6px 0; }
.oh-rv-mark {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; font-size: .9375rem; font-weight: 700;
  background: var(--oh-surface); color: var(--oh-text-muted); border: 2px solid var(--oh-border-strong);
}
.oh-step-done .oh-rv-mark { background: var(--oh-success); border-color: var(--oh-success); color: var(--oh-on-primary); }
.oh-step-now .oh-rv-mark { background: var(--oh-warning); border-color: var(--oh-warning); color: var(--oh-on-primary);
  box-shadow: 0 0 0 4px var(--oh-warning-soft); }
.oh-step-skipped .oh-rv-mark { border-style: dashed; }
.oh-rv-step { display: grid; line-height: 1.3; }
.oh-rv-step b { font-size: 1rem; font-weight: 500; color: var(--oh-text-muted); }
.oh-step-done .oh-rv-step b, .oh-step-now .oh-rv-step b { font-weight: 600; color: var(--oh-text); }
.oh-step-skipped .oh-rv-step b { text-decoration: line-through; }
.oh-rv-step small { font-size: .875rem; color: var(--oh-text-muted); }

.oh-rv-grid { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.oh-rv-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.oh-rv-main > #msg_error, .oh-rv-main > #msg_notice, .oh-rv-main > #msg_warning { margin: 0; }
.oh-rv-side { flex: 1 1 300px; min-width: 280px; display: flex; flex-direction: column; gap: 16px; }
.oh-rv-card { background: var(--oh-surface); border: 1px solid var(--oh-border); border-radius: 14px; min-width: 0; }
.oh-rv-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--oh-border); }
.oh-rv-card-head h2 { margin: 0; font-size: 1.25rem; }
.oh-rv-card-head span { font-size: .9375rem; color: var(--oh-text-muted); }
.oh-rv-box { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.oh-rv-box h2 { margin: 0; font-size: .9375rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--oh-text-muted); }
.oh-rv-box p { margin: 0; color: var(--oh-text-muted); font-size: 1.0625rem; }
.oh-rv-box .oh-l-button { min-height: 40px; font-size: 1rem; }
.oh-rv-dl { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 1.0625rem; align-self: stretch; }
.oh-rv-dl dt { color: var(--oh-text-muted); }
.oh-rv-dl dd { margin: 0; overflow-wrap: anywhere; }
.oh-rv-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.oh-rv-people li { display: flex; align-items: center; gap: 10px; }
.oh-rv-people li > span:last-child { display: grid; line-height: 1.3; }
.oh-rv-people small { color: var(--oh-text-muted); font-size: .9375rem; }
.oh-avatar-soft { background: var(--oh-primary-soft); color: var(--oh-primary-text); }
.oh-rv .oh-rate-cta { display: flex; }

.oh-rv-ask {
  display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding: 20px 24px;
  background: var(--oh-warning-faint); border: 1px solid var(--oh-warning-border); border-radius: 14px;
}
.oh-rv-ask .oh-l-sicon { width: 44px; height: 44px; border-radius: 12px; }
.oh-rv-ask > div:nth-child(2) { flex: 1 1 320px; display: grid; gap: 6px; min-width: 0; }
.oh-rv-ask h2 { margin: 0; font-size: 1.25rem; }
.oh-rv-ask p { margin: 0; font-size: 1.0625rem; }
.oh-rv-ask .oh-rv-ask-who { font-size: 1rem; color: var(--oh-text-muted); }
.oh-rv-ask-acts { display: flex; gap: 10px; flex-wrap: wrap; align-self: center; }
.oh-rv .oh-portal-gates { margin: 0; padding: 20px 24px; border-radius: 14px; }

/* Conversation: bubbles (include/client/templates/thread-entry.tmpl.php) */
.oh-rv-conv #ticketThread { padding: 24px; border: 0; display: grid; gap: 22px; }
.oh-rv-conv #ticketThread::before, .oh-rv-conv .thread-entry::before, .oh-rv-conv .thread-entry::after { content: none; }
.oh-rv-conv .thread-entry.oh-msg { display: flex; gap: 14px; margin: 0; }
.oh-rv-conv .oh-msg > .oh-avatar { width: 40px; height: 40px; font-size: 1rem; }
.oh-rv-conv .oh-msg-col { flex: 1; min-width: 0; display: grid; gap: 6px; }
.oh-rv-conv .thread-entry .header {
  margin: 0; padding: 0; border: 0; background: none !important; font-size: 1rem; color: var(--oh-text);
}
.oh-rv-conv .thread-entry .header::before, .oh-rv-conv .thread-entry .header::after { content: none; }
.oh-rv-conv .thread-entry .header b { font-weight: 600; }
.oh-rv-conv .thread-entry .header > span { color: var(--oh-text-muted); }
.oh-rv-conv .oh-msg-edited { margin-left: 6px; font-size: .875rem; color: var(--oh-text-muted); }
.oh-rv-conv .thread-entry .thread-body {
  padding: 14px 16px; border: 1px solid var(--oh-divider); border-radius: 0 12px 12px 12px;
  background: var(--oh-subtle); color: var(--oh-text); font-size: 1.0625rem; line-height: 1.55; overflow-wrap: anywhere;
}
.oh-rv-conv .oh-msg-team .thread-body { background: var(--oh-primary-faint); border-color: var(--oh-primary-border); }
.oh-rv-conv .thread-body .attachments {
  position: static; margin: 12px -16px -14px; padding: 8px 16px; background: rgba(var(--oh-surface-rgb), .6);
  border-top: 1px solid var(--oh-divider); border-radius: 0 0 12px 12px;
}
.oh-rv-conv .thread-event { margin: 0 0 0 54px; padding: 0; color: var(--oh-text-muted); font-size: 1rem; }
.oh-rv-conv .thread-event .type-icon { background: var(--oh-subtle); border-color: var(--oh-border); }
.oh-rv-conv .thread-event .type-icon::after { content: none; }
.oh-rv-conv .thread-event .description { width: auto; margin: 0; padding: 4px 0 0; }
.oh-rv-reply { margin: 0 24px 24px; padding: 0; border: 1px solid var(--oh-control-border); border-radius: 12px; overflow: hidden; scroll-margin-top: 96px; }
.oh-rv-reply-label { display: block; padding: 12px 16px 0; font-weight: 600; }
.oh-rv-reply-label .error { margin-left: 8px; color: var(--oh-danger-text); font-weight: 500; }
#content .oh-rv-reply textarea { width: 100%; box-sizing: border-box; border: 0; padding: 10px 16px 14px; font: 400 1.0625rem var(--oh-font); }
.oh-rv-reply .redactor-box { border: 0; margin: 0 12px; }
.oh-rv-reply .filedrop { margin: 8px 16px; }
.oh-rv-reopen { margin: 8px 16px; padding: 10px 12px; border-radius: 8px; background: var(--oh-warning-soft); color: var(--oh-warning-text); font-size: 1rem; }
.oh-rv-reply-bar {
  display: flex; justify-content: flex-end; gap: 10px; padding: 10px 12px; flex-wrap: wrap;
  background: var(--oh-subtle); border-top: 1px solid var(--oh-divider);
}
.oh-rv-reply-bar .oh-l-button { min-height: 40px; cursor: pointer; font-family: var(--oh-font); }

@media (max-width: 860px) {
  .oh-rq, .oh-rv { gap: 16px; padding: 16px 0 32px; }
  .oh-rq-band { padding: 26px 20px 76px; border-radius: 18px; }
  .oh-rq-band h1 { font-size: 1.75rem; }
  .oh-rq-band p { font-size: 1.0625rem; }
  .oh-rq-new { width: 100%; justify-content: center; min-height: 48px; box-sizing: border-box; }
  .oh-rq-stats { margin: -60px 12px 0; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
  .oh-rq-stat { padding: 14px 16px; gap: 2px; }
  .oh-rq-stat strong { font-size: 1.625rem; line-height: 2rem; }
  .oh-rq-stat > span:last-child { display: none; }
  .oh-rq-tools { padding: 14px 16px; }
  .oh-rq-filter { flex-basis: 100%; }
  .oh-rq-search { max-width: none; }
  #content .oh-rq-filter input[type=search], #content .oh-rq-filter select { height: 44px; }
  #content .oh-rq-filter select { max-width: none; flex: 1; }
  .oh-rq-filter label:not(.oh-rq-search) { flex: 1 1 100%; display: flex; }
  /* list as cards */
  .oh-rq-table thead { display: none; }
  .oh-rq-table, .oh-rq-table tbody, .oh-rq-table tr, .oh-rq-table td { display: block; }
  .oh-rq-table tr { position: relative; padding: 14px 44px 14px 16px; border-bottom: 1px solid var(--oh-divider); }
  .oh-rq-table tbody tr:last-child { border-bottom: 0; }
  .oh-rq-table td, .oh-rq-table td:first-child, .oh-rq-table td:last-child { padding: 0; border: 0; text-align: left; }
  .oh-rq-table tbody tr:hover td { background: none; }
  .oh-rq-table td + td { margin-top: 8px; }
  .oh-rq-by, .oh-rq-when { display: inline-block !important; font-size: 1rem; color: var(--oh-text-muted) !important; white-space: normal; }
  .oh-rq-when { margin-left: 12px; }
  .oh-rq-k { display: inline; }
  .oh-rq-k::after { content: ":"; }
  .oh-rq-go { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin: 0 !important; }
  .oh-rq-go a { padding: 12px; }
  .oh-rq-foot { padding: 12px 16px; }
  .oh-rq-link { padding: 16px; }

  .oh-rv-head { padding: 18px 16px 4px; }
  .oh-rv-title h1 { font-size: 1.5rem; }
  .oh-rv-actions { width: 100%; }
  .oh-rv-actions .oh-l-button { flex: 1 1 auto; }
  .oh-rv-steps { flex-direction: column; gap: 0; padding-bottom: 12px; }
  .oh-rv-steps li { min-width: 0; flex: none; padding: 4px 0; }
  .oh-rv-side { min-width: 0; flex-basis: 100%; }
  .oh-rv-ask { padding: 16px; }
  .oh-rv-ask-acts { width: 100%; }
  .oh-rv-ask-acts .oh-l-button { flex: 1; min-height: 44px; }
  .oh-rv .oh-portal-gates { padding: 14px 16px; }
  .oh-rv-card-head { padding: 14px 16px; }
  .oh-rv-conv #ticketThread { padding: 16px; }
  .oh-rv-conv .oh-msg > .oh-avatar { width: 32px; height: 32px; font-size: .875rem; }
  .oh-rv-conv .thread-event { margin-left: 0; }
  .oh-rv-reply { margin: 0 12px 16px; }
  .oh-rv-reply-bar .oh-l-button { flex: 1; min-height: 44px; }
  .oh-rv-box { padding: 16px; }
  .oh-rv-box .oh-l-button { min-height: 44px; }
  .oh-rv-dl { grid-template-columns: 110px minmax(0, 1fr); }
}
/* the approval box already carries Approve / Reject for its step */
.oh-rv-ask[data-gate="1"] ~ .oh-portal-gates li[data-gate="1"] .oh-gate-acts,
.oh-rv-ask[data-gate="2"] ~ .oh-portal-gates li[data-gate="2"] .oh-gate-acts,
.oh-rv-ask[data-gate="3"] ~ .oh-portal-gates li[data-gate="3"] .oh-gate-acts,
.oh-rv-ask[data-gate="4"] ~ .oh-portal-gates li[data-gate="4"] .oh-gate-acts { display: none; }
/* events (created, status changes) as quiet one-line notes */
.oh-rv-conv #ticketThread .thread-event { display: flex; align-items: flex-start; gap: 8px; font-size: .9375rem; line-height: 1.45; }
.oh-rv-conv .thread-event .type-icon { flex: none; margin: 0; padding: 2px 5px; font-size: .875rem; border-radius: 6px; }
.oh-rv-conv .thread-event .description { flex: 1; min-width: 0; padding: 0; }
.oh-rv-conv .thread-event img.avatar { display: none; }
.oh-rv-dl { grid-template-columns: 104px minmax(0, 1fr); }
@media (max-width: 860px) {
  .oh-rq-tabs { flex-wrap: wrap; overflow: visible; }
  .oh-rq-tab { flex: 1 1 auto; justify-content: center; min-height: 40px; }
  .oh-rq-by, .oh-rq-when { display: block !important; margin: 4px 0 0 !important; }
}

/* ---------- Service status (ADR-022 step B3): navy band, products with 30 days, issues ---------- */
#content:has(> .oh-svc) { background: none; border: 0; box-shadow: none; padding: 0; }
.oh-svc { max-width: none; gap: 24px; padding: 28px 0 56px; }
.oh-svc .oh-rq-band h1 { color: var(--oh-on-chrome); font-size: 2.125rem; line-height: 1.2; font-weight: 600; }
.oh-svc-band .oh-svc-follow .button.oh-svc-all {
  min-height: 46px; padding: 0 18px; border-radius: 8px; font-size: 1.0625rem; white-space: nowrap;
  background: transparent; border: 1px solid rgba(var(--oh-on-chrome-rgb), .5); color: var(--oh-on-chrome);
}
.oh-svc-band .oh-svc-follow .button.oh-svc-all:hover { background: rgba(var(--oh-on-chrome-rgb), .1); color: var(--oh-on-chrome); }
.oh-svc-band .oh-svc-follow .button.oh-svc-all.oh-following { background: rgba(var(--oh-on-chrome-rgb), .12); }
.oh-svc-prodcard { margin: -84px 28px 0; box-shadow: var(--oh-shadow-lg); }
.oh-svc-prodcard > h2 { margin: 0; padding: 18px 24px; border-bottom: 1px solid var(--oh-border); font-size: 1.25rem; }
.oh-svc-prodcard .oh-svc-line, .oh-svc-prodcard .oh-svc-line:first-child { padding: 18px 24px; gap: 16px; border-top: 1px solid var(--oh-divider); }
.oh-svc-prodcard .oh-svc-line:first-child { border-top: 0; }
.oh-svc-line-main b { font-size: 1.1875rem; color: var(--oh-text); }
.oh-svc-line-main small { font-size: .9375rem; color: var(--oh-text-muted); }
.oh-svc-bars { display: flex; gap: 2px; align-items: flex-end; height: 28px; flex: none; }
.oh-svc-bar { width: 5px; height: 28px; border-radius: 2px; background: var(--oh-success); }
.oh-svc-bar.oh-svc-warn { background: var(--oh-warning); }
.oh-svc-bar.oh-svc-bad { background: var(--oh-danger); }
.oh-svc-bar.oh-svc-info { background: var(--oh-primary); }
.oh-svc-legend { margin: 0; padding: 12px 24px; background: var(--oh-subtle); border-top: 1px solid var(--oh-divider); font-size: .9375rem; color: var(--oh-text-muted); }
.oh-svc-box { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.oh-svc-box > h2 { margin: 0; font-size: 1.25rem; }
.oh-rv-side .oh-svc-box > h2 { font-size: 1.125rem; }
.oh-svc-issue { display: grid; gap: 10px; }
.oh-svc-issue h3 { font-size: 1.1875rem; }
.oh-svc-issue h3 a { color: var(--oh-text) !important; }
.oh-svc-chips { margin: 0; }
.oh-svc-timeline { margin-top: 4px; }
.oh-svc-timeline li::before { background: var(--oh-border-strong); }
.oh-svc-timeline li.oh-tl-now::before { background: var(--oh-primary); }
.oh-svc-timeline li.oh-tl-done::before { background: var(--oh-success); }
.oh-svc-tl-head b { color: var(--oh-text); font-weight: 600; }
.oh-svc-plan { display: flex; gap: 14px; align-items: flex-start; }
.oh-svc-plan > span:last-child { display: grid; gap: 4px; min-width: 0; }
.oh-svc-plan a { font-weight: 600; color: var(--oh-text) !important; }
.oh-svc-plan small, .oh-svc-recent small { font-size: 1rem; color: var(--oh-text-muted); }
.oh-svc-date { flex: none; width: 52px; text-align: center; border: 1px solid var(--oh-primary-border); border-radius: 10px; overflow: hidden; }
.oh-svc-date span { display: block; padding: 2px 0; background: var(--oh-primary); color: var(--oh-on-primary); font-size: .8125rem; font-weight: 700; }
.oh-svc-date b { display: block; padding: 4px 0; font-size: 1.375rem; }
.oh-svc-recent li { display: grid; gap: 2px; padding: 10px 0; }
.oh-svc-recent li a { font-weight: 600; }
.oh-svc-issue-head .oh-svc-note { margin: 0 0 16px; }
.oh-svc-issue-head .oh-svc-window { margin: 0; }
@media (max-width: 860px) {
  .oh-svc { gap: 16px; padding: 16px 0 32px; }
  .oh-svc .oh-rq-band h1 { font-size: 1.625rem; }
  .oh-svc-band .oh-svc-follow, .oh-svc-band .oh-svc-follow .button.oh-svc-all { width: 100%; min-height: 48px; }
  .oh-svc-prodcard { margin: -60px 12px 0; }
  .oh-svc-prodcard > h2 { padding: 14px 16px; }
  .oh-svc-prodcard .oh-svc-line, .oh-svc-prodcard .oh-svc-line:first-child { padding: 16px; gap: 10px 12px; }
  .oh-svc-line-main { flex: 1 1 0; }
  .oh-svc-bars { order: 5; flex: 1 1 100%; justify-content: space-between; height: 22px; }
  .oh-svc-bar { width: auto; flex: 1; max-width: 8px; height: 22px; }
  .oh-svc-legend { padding: 12px 16px; }
  .oh-svc-box { padding: 16px; }
}
@media (max-width: 860px) {
  .oh-svc-prodcard .oh-svc-line, .oh-svc-prodcard .oh-svc-line:first-child {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px 12px;
  }
  .oh-svc-prodcard .oh-svc-line > .oh-svc-chip { grid-column: 2; justify-self: start; }
  .oh-svc-prodcard .oh-svc-line > .oh-svc-bars, .oh-svc-prodcard .oh-svc-line > .oh-svc-follow { grid-column: 1 / -1; }
  .oh-svc-prodcard .oh-svc-follow .button { width: 100%; }
}
@media (max-width: 860px) {
  .oh-svc-prodcard .oh-svc-follow, .oh-svc-band .oh-svc-follow { flex: 1 1 100%; width: 100%; }
  .oh-svc-band .oh-svc-follow .button.oh-svc-all { width: 100%; }
}
@media (max-width: 860px) { .oh-svc .oh-svc-follow .button { max-width: none; width: 100%; } }

/* ---------- Knowledge base (ADR-022 step B3): include/onehlp/kb/class.kb-page.php frame ---------- */
#content:has(> .oh-kb) { background: none; border: 0; box-shadow: none; padding: 0; }
.oh-kb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 0 56px; }
.oh-kb-band {
  display: flex; flex-direction: column; gap: 12px; padding: 40px 40px 44px; border-radius: 20px;
  background: var(--oh-chrome); color: var(--oh-on-chrome);
}
.oh-kb-band h1 { margin: 0; color: var(--oh-on-chrome); font-size: 2.125rem; line-height: 1.2; font-weight: 600; overflow-wrap: anywhere; }
.oh-kb-band > p { margin: 0; max-width: 75ch; font-size: 1.1875rem; color: rgba(var(--oh-on-chrome-rgb), .85); }
.oh-kb-crumbs { font-size: 1rem; color: rgba(var(--oh-on-chrome-rgb), .75); }
.oh-kb-crumbs a { color: var(--oh-on-chrome) !important; }
.oh-kb-search {
  position: relative; display: flex; gap: 8px; width: 100%; max-width: 680px; margin-top: 6px; padding: 6px;
  box-sizing: border-box; background: var(--oh-surface); border-radius: 12px;
}
.oh-kb-search > i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--oh-text-muted); }
#content .oh-kb-search input[type=search] {
  flex: 1; min-width: 0; height: 48px; box-sizing: border-box; padding: 0 12px 0 40px; border: 0; background: transparent;
  color: var(--oh-text); font: 400 1.125rem var(--oh-font); box-shadow: none;
}
.oh-kb-search button {
  height: 48px; padding: 0 22px; border: 0; border-radius: 8px; cursor: pointer; flex: none;
  background: var(--oh-primary); color: var(--oh-on-primary); font: 600 1.0625rem var(--oh-font); box-shadow: none; text-shadow: none;
}
.oh-kb-search button:hover { background: var(--oh-primary-hover); }
.oh-kb-section { display: grid; gap: 14px; }
.oh-kb-section > h2 { margin: 0; font-size: 1.375rem; }
.oh-kb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.oh-kb-cat {
  display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; background: var(--oh-surface);
  border: 1px solid var(--oh-border); border-radius: 14px; color: var(--oh-text) !important; text-decoration: none !important;
}
.oh-kb-cat:hover { border-color: var(--oh-primary-border); }
.oh-kb-cat:focus-visible { outline: 2px solid var(--oh-primary); outline-offset: 2px; }
.oh-kb-cat-head { display: flex; gap: 14px; align-items: center; }
.oh-kb-cat .oh-l-text strong { font-size: 1.25rem; }
.oh-kb-cat .oh-l-text > span { font-size: .9375rem; }
.oh-kb-cat-desc { font-size: 1.0625rem; color: var(--oh-text-muted); }
.oh-kb-subs { font-size: .9375rem; color: var(--oh-text-muted); }
.oh-kb-list ul { list-style: none; margin: 0; padding: 0; }
.oh-kb-list li + li { border-top: 1px solid var(--oh-divider); }
.oh-kb-list li a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px;
  color: var(--oh-text) !important; text-decoration: none !important;
}
.oh-kb-list li a:hover { background: var(--oh-subtle); }
.oh-kb-list li a > i { color: var(--oh-text-muted); }
.oh-kb-list .oh-l-text strong { font-size: 1.125rem; }
.oh-kb-list .oh-l-text > span { font-size: .9375rem; }
.oh-kb-h { text-transform: none !important; letter-spacing: 0 !important; font-size: 1.1875rem !important; color: var(--oh-text) !important; }
.oh-kb-more { font-weight: 600; }
.oh-kb-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.oh-kb-topic { width: 100%; margin: 0; }
#content .oh-kb-topic select { width: 100%; height: 44px; border-radius: 8px; border: 1px solid var(--oh-control-border);
  background-color: var(--oh-surface); color: var(--oh-text); font: 400 1.0625rem var(--oh-font); padding: 0 10px; }
.oh-kb-article { padding: 28px 32px; font-size: 1.125rem; line-height: 1.65; }
.oh-kb-article .thread-body { border: 0; padding: 0; background: none; }
@media (max-width: 860px) {
  .oh-kb { gap: 18px; padding: 16px 0 32px; }
  .oh-kb-band { padding: 26px 20px 24px; border-radius: 18px; }
  .oh-kb-band h1 { font-size: 1.625rem; }
  .oh-kb-band > p { font-size: 1.0625rem; }
  .oh-kb-search button { padding: 0 16px; }
  .oh-kb-list li a { padding: 14px 16px; }
  .oh-kb-cat { padding: 18px; }
  .oh-kb-article { padding: 18px 16px; }
}

/* ---------- Profile (ADR-022 step B3): include/client/profile.inc.php ---------- */
#content:has(> .oh-pf) { background: none; border: 0; box-shadow: none; padding: 0; }
.oh-pf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 0 56px; }
.oh-pf-head {
  display: flex; align-items: center; gap: 20px; padding: 26px 32px; background: var(--oh-surface);
  border: 1px solid var(--oh-border); border-radius: 16px;
}
.oh-pf-avatar { width: 64px; height: 64px; font-size: 1.5rem; }
.oh-pf-head h1 { margin: 0; font-size: 1.75rem; line-height: 1.25; }
.oh-pf-head p { margin: 4px 0 0; color: var(--oh-text-muted); font-size: 1.0625rem; overflow-wrap: anywhere; }
.oh-pf-grid { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.oh-pf-nav { flex: 0 1 240px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 92px; }
.oh-pf-nav a {
  padding: 10px 14px; border-radius: 8px; color: var(--oh-text) !important; font-size: 1.0625rem; font-weight: 500;
  text-decoration: none !important;
}
.oh-pf-nav a:hover { background: var(--oh-subtle); }
.oh-pf-nav a:focus-visible { outline: 2px solid var(--oh-primary); outline-offset: -2px; }
.oh-pf-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.oh-pf-main > #msg_error, .oh-pf-main > #msg_notice { margin: 0; }
.oh-pf-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }
.oh-pf-card > h2 { margin: 0; font-size: 1.25rem; }
.oh-pf-card > p { margin: 0; color: var(--oh-text-muted); font-size: 1.0625rem; }
.oh-pf-small { font-size: 1rem !important; }
/* osTicket's contact form rows, label above field */
.oh-pf-table { width: 100%; border-collapse: collapse; }
.oh-pf-table tr { display: block; padding: 6px 0; }
.oh-pf-table td { display: block; padding: 0 !important; width: auto !important; border: 0; }
.oh-pf-table td:first-child { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.oh-pf-table td > div:has(> h3), .oh-pf-table hr { display: none; }
.oh-pf-table input[type=text], .oh-pf-table input[type=email], .oh-pf-table input[type=tel], .oh-pf-table select {
  height: 44px; box-sizing: border-box; max-width: 100%; border-radius: 8px; font: 400 1.0625rem var(--oh-font);
}
.oh-pf-table input[type=text], .oh-pf-table input[type=email] { width: min(100%, 420px); }
.oh-pf-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.oh-pf-actions .oh-l-button { cursor: pointer; font-family: var(--oh-font); }
.oh-pf-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 12px; }
.oh-pf-mode {
  display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--oh-border-strong);
  border-radius: 10px; cursor: pointer; font-size: 1rem; font-weight: 500;
}
.oh-pf-mode:has(input:checked) { border: 2px solid var(--oh-primary); padding: 11px; font-weight: 600; }
.oh-pf-mode:has(input:focus-visible) { outline: 2px solid var(--oh-primary); outline-offset: 2px; }
.oh-pf-mode > span:last-child { display: flex; align-items: center; gap: 8px; }
.oh-pf-mode input { accent-color: var(--oh-primary); margin: 0; }
/* swatches show the look of each mode, so they keep fixed colours */
.oh-pf-swatch { height: 46px; border-radius: 6px; border: 1px solid var(--oh-border); }
.oh-pf-swatch-auto { background: linear-gradient(90deg, #ffffff 50%, #161b26 50%); }
.oh-pf-swatch-light { background: #f5f7fa; }
.oh-pf-swatch-dark { background: #161b26; }
.oh-pf-swatch-contrast { background: #ffffff; border: 2px solid #000000; }
/* Text size (ADR-024): the tiles preview each size, so "Aa" keeps a fixed size
   (a custom property: the px-to-rem script leaves it alone) */
.oh-pf-sub { margin: 6px 0 -4px; font-size: 1.0625rem; font-weight: 600; color: var(--oh-text); }
.oh-pf-sizes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); }
.oh-pf-aa {
  display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 6px;
  border: 1px solid var(--oh-border); background: var(--oh-subtle); color: var(--oh-text);
  font-size: var(--oh-aa); font-weight: 600; line-height: 1;
}
.oh-pf-aa-compact { --oh-aa: 16px; }
.oh-pf-aa-default { --oh-aa: 19px; }
.oh-pf-aa-comfortable { --oh-aa: 22px; }
.oh-pf-aa-accessible { --oh-aa: 25px; }
.oh-pf-aa-system { --oh-aa: 19px; border-style: dashed; }
.oh-pf .oh-pk-section { margin: 0; padding: 0; border: 0; }
.oh-pf .oh-pk-section > h2 { margin: 0 0 6px; font-size: 1.0625rem; }
.oh-pf-password { border-top: 1px solid var(--oh-divider); padding-top: 14px; }
.oh-pf-password summary { cursor: pointer; font-weight: 600; color: var(--oh-primary-text); }
.oh-pf-fields { display: grid; gap: 12px; padding-top: 12px; max-width: 420px; }
.oh-pf-fields label { display: grid; gap: 6px; font-size: 1rem; font-weight: 600; }
.oh-pf-fields input { height: 44px; box-sizing: border-box; border-radius: 8px; }
.oh-pf-fields .oh-pf-actions { justify-content: flex-start; }
.oh-pf-follows { list-style: none; margin: 0; padding: 0; }
.oh-pf-follows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid var(--oh-divider); }
@media (max-width: 860px) {
  .oh-pf { gap: 16px; padding: 16px 0 32px; }
  .oh-pf-head { padding: 18px 16px; gap: 14px; }
  .oh-pf-avatar { width: 52px; height: 52px; font-size: 1.25rem; }
  .oh-pf-head h1 { font-size: 1.5rem; }
  .oh-pf-nav { position: static; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .oh-pf-nav a { white-space: nowrap; background: var(--oh-surface); border: 1px solid var(--oh-border); }
  .oh-pf-card { padding: 16px; }
  .oh-pf-actions .oh-l-button { flex: 1; min-height: 44px; }
  .oh-pf-follows .oh-svc-follow { flex: 1 1 100%; }
  .oh-pf-follows .oh-svc-follow .button { width: 100%; max-width: none; min-height: 44px; }
}
.oh-pf-table tr:has(h3), .oh-pf-table tr:has(hr) { display: none; }
.oh-pf-table input[name$="-ext"], .oh-pf-table input[name*="ext"] { width: 90px !important; }
.oh-pf-table input[type=tel] { width: 220px; }

/* ---------- New request (ADR-022 step B3): include/client/open.inc.php ---------- */
#content:has(> .oh-nr) { background: none; border: 0; box-shadow: none; padding: 0; }
.oh-nr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 0 56px; }
.oh-nr-head { padding-bottom: 24px; gap: 8px; }
.oh-nr-head h1 { margin: 0; font-size: 1.875rem; line-height: 1.25; }
.oh-nr-head > p { margin: 0; color: var(--oh-text-muted); font-size: 1.125rem; }
.oh-nr-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.oh-nr-card > h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.3125rem; }
.oh-nr-n {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--oh-chrome); color: var(--oh-on-chrome); font-size: 1rem; font-weight: 600;
}
.oh-nr-label { margin: 0; font-size: .9375rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--oh-text-muted); }
.oh-nr .oh-about { display: grid; gap: 12px; }
.oh-nr-field { display: grid; gap: 6px; }
.oh-nr-field > label { font-size: 1rem; font-weight: 600; }
.oh-nr-field small, .oh-nr-hint { font-size: 1rem; color: var(--oh-text-muted); margin: 0; }
#content .oh-nr-field select { height: 44px; max-width: 420px; width: 100%; border-radius: 8px; font: 400 1.0625rem var(--oh-font); }
/* osTicket's form rows: label above the field; the first form's own header is the card heading */
.oh-nr-table { width: 100%; border-collapse: collapse; }
.oh-nr-table tr { display: block; padding: 6px 0; }
.oh-nr-table td { display: block; padding: 0 !important; width: auto !important; border: 0; }
.oh-nr-table tr.oh-form-head hr { display: none; }
.oh-nr-table tr.oh-form-head h3 { margin: 10px 0 2px; font-size: 1.125rem; }
#dynamic-form > tr.oh-form-head:first-child { display: none; }
.oh-nr-table label { font-size: 1rem; font-weight: 600; }
.oh-nr-table input[type=text], .oh-nr-table input[type=email], .oh-nr-table input[type=tel], .oh-nr-table select {
  height: 44px; box-sizing: border-box; max-width: 100%; border-radius: 8px; font: 400 1.0625rem var(--oh-font);
}
.oh-nr-table input[type=text], .oh-nr-table input[type=email] { width: 100%; }
.oh-nr-table .redactor-box, .oh-nr-table textarea { width: 100%; box-sizing: border-box; }
.oh-nr-buttons { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.oh-nr-buttons .oh-l-button { min-height: 48px; padding: 0 24px; cursor: pointer; font-family: var(--oh-font); }
.oh-nr-next { margin: 0; padding: 0; list-style: none; counter-reset: oh-next; display: grid; gap: 14px; }
.oh-nr-next li { counter-increment: oh-next; display: flex; gap: 12px; font-size: 1rem; line-height: 1.25rem; color: var(--oh-text); }
.oh-nr-next li::before {
  content: counter(oh-next); flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: var(--oh-primary-soft); color: var(--oh-primary-text); font-size: .875rem; font-weight: 700;
}
.oh-nr-issue {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 14px; font-size: 1rem; line-height: 1.25rem;
  background: var(--oh-warning-soft); border: 1px solid var(--oh-warning-border); color: var(--oh-warning-text);
}
.oh-nr-issue a { color: inherit !important; text-decoration: underline; }
@media (max-width: 860px) {
  .oh-nr { gap: 16px; padding: 16px 0 32px; }
  .oh-nr-head h1 { font-size: 1.5rem; }
  .oh-nr-card { padding: 16px; }
  .oh-nr-buttons .oh-l-button { flex: 1; }
}
/* theme.css paints every input in #ticketForm div white */
#ticketForm .oh-nr-buttons input.oh-l-primary { display: inline-flex; background: var(--oh-primary); }
#ticketForm .oh-nr-buttons input.oh-l-primary:hover { background: var(--oh-primary-hover); }

/* Dark: the navy chrome role sits on a near-navy page, so badges, avatars and
   step numbers take the soft primary pair instead (ADR-022 step B3) */
:root[data-theme="dark"] .oh-l-badge, :root[data-theme="dark"] .oh-avatar:not(.oh-avatar-soft), :root[data-theme="dark"] .oh-nr-n {
  background: var(--oh-primary-soft); color: var(--oh-primary-text);
}

/* Out-of-contract notice (GK 2026-10-17): white, roomy, larger type, the terms as
   a checklist; white and light blue like every notice (onehlp-notice.css) */
#ticketForm .oh-ooc {
  gap: 18px; padding: 28px 32px; border-radius: 14px;
  background: var(--oh-surface); color: var(--oh-text);
  border: 1px solid var(--oh-primary-border); border-left: 4px solid var(--oh-primary-border-strong);
}
#ticketForm .oh-ooc .oh-ooc-title { font-size: 1.5rem; line-height: 1.35; font-weight: 600; color: var(--oh-text); }
.oh-ooc-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.oh-ooc-points li { position: relative; padding-left: 44px; font-size: 1.25rem; line-height: 1.75rem; color: var(--oh-text); }
.oh-ooc-points li::before {
  content: "\f00c"; font-family: FontAwesome; font-size: .8125rem;
  position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--oh-primary-soft); color: var(--oh-primary-text);
}
#ticketForm #oh-ooc label { gap: 12px; font-size: 1.25rem; font-weight: 600; padding-top: 6px; border-top: 1px solid var(--oh-divider); padding-top: 18px; }
#ticketForm #oh-ooc label input { width: 20px !important; height: 20px; margin: 3px 0 0; accent-color: var(--oh-primary); }
#ticketForm .oh-ooc a.oh-ooc-renew { font-size: 1.125rem; color: var(--oh-primary-text); }
@media (max-width: 860px) {
  #ticketForm .oh-ooc { padding: 20px; }
  #ticketForm .oh-ooc .oh-ooc-title { font-size: 1.25rem; }
  .oh-ooc-points li { font-size: 1.125rem; }
}

/* ADR-002 typography (GK 2026-10-17): message text and the editor at portal body size, roomier lines.
   thread.css forces 14px !important on .thread-body, so this has to be !important too. */
.thread-body { font-size: 1.0625rem !important; line-height: 1.65; }
.thread-body div, .thread-body p, .thread-body ul, .thread-body ol, .thread-body table,
.thread-body dl, .thread-body blockquote, .thread-body pre { font-size: inherit; line-height: 1.65; }
.redactor-styles, .redactor-in { font-size: 1.0625rem; line-height: 1.65; }
.oh-rv-conv .thread-event { line-height: 1.6; }
/* larger type (ADR-002 typography): the side column of a request needs a little more room */
.oh-rv-side { flex-basis: 340px; min-width: 300px; }
.oh-rv-dl { grid-template-columns: 128px minmax(0, 1fr); }
@media (max-width: 860px) { .oh-rv-side { min-width: 0; } }

/* Phones: the search boxes (home, knowledge base) at the larger type left the
   field a few letters wide next to the "Search" button. The button becomes a
   square magnifier (its word stays for screen readers) and the field drops its
   own magnifier, so the hint reads in full. */
@media (max-width: 480px) {
  .oh-l-search > i, .oh-kb-search > i { display: none; }
  .oh-l-search input[type=search] { padding-left: 16px; font-size: 1.125rem; }
  #content .oh-kb-search input[type=search] { padding-left: 12px; font-size: 1.0625rem; }
  .oh-l-search button, .oh-kb-search button {
    flex: none; width: 52px; padding: 0; font-size: 0; display: grid; place-items: center;
  }
  .oh-kb-search button { width: 48px; }
  .oh-l-search button::before, .oh-kb-search button::before {
    content: "\f002"; font-family: FontAwesome; font-size: 1.25rem; font-weight: normal;
  }
}

/* Previous / Next on one request (GK 2026-10-17): through the list the customer
   came from (OneHlpPortalTickets::neighbours()), on the breadcrumb line */
.oh-rv-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.oh-rv-topline .oh-rv-crumbs { margin: 0; flex: 1 1 auto; min-width: 0; }
.oh-rv-pager { display: flex; align-items: center; gap: 8px; }
.oh-rv-pg {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid var(--oh-border-strong); border-radius: var(--oh-radius-sm); background: var(--oh-surface);
  color: var(--oh-text) !important; font-size: 1rem; font-weight: 600; text-decoration: none !important; white-space: nowrap;
}
a.oh-rv-pg:hover { background: var(--oh-subtle); border-color: var(--oh-primary-border); }
a.oh-rv-pg:focus-visible { outline: 2px solid var(--oh-primary); outline-offset: 2px; }
.oh-rv-pg[aria-disabled="true"] { color: var(--oh-text-muted) !important; opacity: .55; cursor: default; }
.oh-rv-pg i { font-size: .8125rem; }
.oh-rv-pg-pos { font-size: .9375rem; color: var(--oh-text-muted); white-space: nowrap; }
@media (max-width: 760px) {
  .oh-rv-pg { min-height: 44px; min-width: 44px; justify-content: center; padding: 0 10px; }
  .oh-rv-pg span, .oh-rv-pg-pos small { display: none; }       /* phones: arrows and "3 of 8" */
  .oh-rv-topline { column-gap: 12px; }
  .oh-rv-pager { gap: 4px; }
  .oh-rv-pg-pos { font-size: .875rem; }
}
@media (max-width: 480px) {
  .oh-rv-topline:has(.oh-rv-pager) .oh-rv-crumb-num { display: none; }   /* the number is under the title; arrows stay on this line */
}

/* Home, wider screens (GK 2026-10-17: "reduce the box sizes to fit in the page"):
   a shorter navy band and compact action boxes, icon beside the title, so the band
   and the three boxes fit a laptop window (about 790 px tall) with room to spare.
   Phones keep their own layout (max-width: 860px rules above). */
@media (min-width: 861px) {
  .oh-landing { gap: 40px; padding-top: 20px; }
  .oh-l-hero { gap: 10px; padding: 40px 40px 108px; }
  .oh-l-hero h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
  .oh-l-hero > p { font-size: 1.1875rem; }
  .oh-l-search { margin-top: 8px; }
  .oh-l-search input[type=search], .oh-l-search button { height: 54px; }
  .oh-l-search input[type=search] { font-size: 1.1875rem; }
  .oh-l-search button { font-size: 1.125rem; padding: 0 26px; }
  .oh-l-cards { margin-top: -80px; gap: 20px; }
  .oh-l-card {
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: start;
    gap: 10px 14px; min-height: 0; padding: 22px 24px;
  }
  .oh-l-card > .oh-l-icon, .oh-l-card > .oh-l-icon + strong { align-self: center; }
  .oh-l-card > * { grid-column: 1 / -1; }
  .oh-l-card > .oh-l-icon { grid-column: 1; width: 44px; height: 44px; border-radius: 12px; font-size: 1.25rem; }
  .oh-l-card > .oh-l-icon + strong { grid-column: 2; }
  .oh-l-card strong { font-size: 1.375rem; }
  .oh-l-card > span:not(.oh-l-icon):not(.oh-l-go) { font-size: 1.0625rem; line-height: 1.55; }
  .oh-l-card .oh-l-go { align-self: end; }
}

/* Password reset (pwreset.*.php): the form sits straight in the card, not in osTicket's #clientLogin box */
form#clientLogin.oh-auth-form { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; width: auto; }

/* ---- Customer Overview, the signed-in home (ADR-026). Roles only; type in rem. ---- */
.oh-l-hero .oh-ov-lead { margin: 0; font-size: 1.25rem; color: rgba(var(--oh-on-chrome-rgb), .85); }
.oh-ov-needs {
  margin: -84px 28px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px;
}
.oh-ov-need {
  display: flex; flex-direction: column; gap: 8px; padding: 24px 26px; box-sizing: border-box; min-width: 0;
  background: var(--oh-surface); border: 1px solid var(--oh-border); border-radius: 16px; box-shadow: var(--oh-shadow-lg);
}
.oh-ov-need strong { font-size: 1.25rem; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.oh-ov-kind { font-size: .9375rem; font-weight: 600; color: var(--oh-primary-text); }
.oh-ov-meta { color: var(--oh-text-muted); font-size: 1rem; }
.oh-ov-need .oh-l-button { align-self: flex-start; margin-top: auto; }
.oh-ov-need .oh-ov-meta { margin-bottom: 8px; }

.oh-ov-cols { display: grid; gap: 24px; align-items: start; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.oh-ov-main, .oh-ov-side { display: grid; gap: 24px; min-width: 0; }
.oh-ov-req .oh-l-box-head { flex-wrap: wrap; }

/* Mine / All of the company (also on My requests) */
.oh-rq-whose { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--oh-subtle); border: 1px solid var(--oh-border); max-width: 100%; }
.oh-rq-whose a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; box-sizing: border-box;
  color: var(--oh-text-muted) !important; font-size: 1rem; font-weight: 500; text-decoration: none !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.oh-rq-whose a.active { background: var(--oh-surface); color: var(--oh-text) !important; box-shadow: 0 1px 2px rgba(var(--oh-shadow-rgb), .14); }
.oh-rq-whose a:focus-visible { outline: 2px solid var(--oh-primary); outline-offset: 1px; }
.oh-rq-tools > .oh-rq-whose { flex: 0 0 auto; }
.oh-rq-tools > .oh-rq-whose + .oh-rq-tabs { margin-right: auto; }

.oh-ov-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; padding: 18px 24px 6px; }
.oh-ov-count {
  display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--oh-border); border-radius: 12px;
  color: var(--oh-text) !important; text-decoration: none !important;
}
.oh-ov-count:hover { border-color: var(--oh-primary-border); }
.oh-ov-count strong { font-size: 1.75rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.oh-ov-count span { color: var(--oh-text-muted); font-size: 1rem; }
.oh-ov-count-you { border-color: var(--oh-primary); background: var(--oh-primary-faint); }

.oh-ov-list { padding-top: 10px !important; }
.oh-ov-list li { border-top: 1px solid var(--oh-divider); }
.oh-ov-list li a { display: grid; gap: 10px; padding: 16px 24px; color: var(--oh-text) !important; text-decoration: none !important; }
.oh-ov-list li a:hover { background: var(--oh-subtle); }
.oh-ov-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.oh-ov-row strong { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.oh-ov-row.oh-ov-meta { font-size: .9375rem; }
.oh-ov-steps { display: flex; gap: 4px; }
.oh-ov-steps i { flex: 1 1 0; height: 6px; border-radius: 999px; background: var(--oh-border); }
.oh-ov-steps i.oh-ov-step-done { background: var(--oh-primary); }
.oh-ov-steps i.oh-ov-step-now { background: var(--oh-primary-border-strong); }
.oh-ov-more { margin: 0; padding: 12px 24px 18px; border-top: 1px solid var(--oh-divider); }
.oh-ov-more a { font-weight: 600; }

.oh-ov-answers li + li, .oh-ov-owned li + li { border-top: 1px solid var(--oh-divider); }
.oh-ov-answers li a { display: block; padding: 14px 24px; color: var(--oh-text) !important; text-decoration: none !important; }
.oh-ov-answers li a:hover { background: var(--oh-subtle); }
.oh-ov-answers .oh-l-text strong, .oh-ov-owned .oh-l-text strong { font-size: 1.0625rem; }
.oh-ov-answers .oh-l-text > span, .oh-ov-owned .oh-l-text > span { font-size: .9375rem; }
.oh-ov-owned li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; }
.oh-ov-owned .oh-l-button { min-height: 40px; padding: 0 14px; font-size: 1rem; }
.oh-ov-owned li.oh-own-soon .oh-l-text > span { color: var(--oh-warning-text); font-weight: 600; }
.oh-ov-ontime dl { margin: 0; padding: 16px 24px 0; display: grid; gap: 10px; }
.oh-ov-ontime dl div { display: flex; justify-content: space-between; gap: 12px; }
.oh-ov-ontime dd { margin: 0; font-weight: 600; }
.oh-ov-note { margin: 0; padding: 10px 24px 18px; color: var(--oh-text-muted); font-size: .9375rem; }

@media (max-width: 1100px) { .oh-ov-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  /* phones: the cards scroll sideways under the hero */
  .oh-ov-needs {
    margin: -44px 0 0; padding: 0 12px 6px; display: flex; overflow-x: auto; gap: 12px;
    scroll-snap-type: x mandatory; scroll-padding: 0 12px;
  }
  .oh-ov-need { flex: 0 0 min(300px, 82%); padding: 18px; scroll-snap-align: start; }
  .oh-ov-need:only-child { flex-basis: 100%; }
  .oh-ov-need strong { font-size: 1.125rem; }
  .oh-ov-counts { padding: 14px 16px 4px; gap: 10px; }
  .oh-ov-list li a, .oh-ov-answers li a, .oh-ov-owned li { padding-left: 16px; padding-right: 16px; }
  .oh-ov-more, .oh-ov-note, .oh-ov-ontime dl { padding-left: 16px; padding-right: 16px; }
  .oh-ov-whose { width: 100%; }
  .oh-ov-whose a { flex: 1 1 0; justify-content: center; min-height: 44px; }
}

/* OneHLP (ADR-028 decision 11): Follow on a knowledge base article */
.oh-kb-follow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 16px; }
.oh-kb-follow-row .oh-svc-note { margin: 0; flex: 1 1 16rem; }
@media (max-width: 760px) {
  .oh-kb-follow-row .oh-svc-follow { flex-basis: 100%; }
  .oh-kb-follow-row .oh-svc-follow .button { width: 100%; }
}

/* OneHLP (ADR-022 rule 24): a product's logo or icon in its badge tile */
.oh-mark-icon svg { width: 55%; height: 55%; }
.oh-mark-logo { background: var(--oh-surface); border: 1px solid var(--oh-border); overflow: hidden; }
.oh-mark-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10%; box-sizing: border-box; }
.oh-mark-logo .oh-logo-dark { display: none; }
:root[data-theme="dark"] .oh-l-badge.oh-mark-logo, :root[data-theme="dark"] .oh-explore-icon.oh-mark-logo { background: var(--oh-surface); color: inherit; }
:root[data-theme="dark"] .oh-mark-logo.oh-has-dark .oh-logo-light { display: none; }
:root[data-theme="dark"] .oh-mark-logo.oh-has-dark .oh-logo-dark { display: block; }
