:root {
  color-scheme: light;
  --white: #FFFFFF;
  --black: #000000;
  --gray: #ACACAC;
  --charcoal: #4A4A4A;
  --navy: #1F3A5A;
  --sand: #E7D8B8;
  --gold: #C9A56A;
  --ink: #1F3A5A;
  --muted: #4A4A4A;
  --line: rgb(31 58 90 / 18%);
  --line-strong: rgb(31 58 90 / 34%);
  --accent: #1F3A5A;
  --portal-header: #1F3A5A;
  --surface-solid: #FFFFFF;
  --surface: #FFFFFF;
  --surface-muted: #E7D8B8;
  --canvas: #FFFFFF;
  --focus: #C9A56A;
  --radius-sm: .65rem;
  --radius-md: 1rem;
  --radius-lg: 1.4rem;
  --shadow-sm: 0 .35rem 1.1rem rgb(31 58 90 / 9%);
  --shadow-md: 0 1rem 3rem rgb(31 58 90 / 14%);
  --glass-content: rgb(255 255 255 / 62%);
  --glass-raised: rgb(255 255 255 / 72%);
  --glass-blur: 1.6rem;
  --glass-saturation: 145%;
  --glass-rim: rgb(255 255 255 / 78%);
  --glass-shadow:
    0 1.3rem 3.4rem rgb(31 58 90 / 18%),
    0 .25rem .8rem rgb(0 0 0 / 8%),
    inset 0 1px 0 var(--glass-rim),
    inset 0 -1px 0 rgb(31 58 90 / 9%);
  --content-width: 76rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  background:
    radial-gradient(circle at 6% 2%, rgb(231 216 184 / 92%), transparent 30rem),
    radial-gradient(circle at 93% 9%, rgb(201 165 106 / 48%), transparent 34rem),
    radial-gradient(circle at 74% 78%, rgb(31 58 90 / 13%), transparent 28rem),
    linear-gradient(145deg, var(--white) 0%, rgb(231 216 184 / 42%) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  font-weight: 650;
  text-underline-offset: .2em;
  text-decoration-thickness: .08em;
}

a:hover {
  text-decoration-thickness: .14em;
}

p,
ul,
ol,
dl {
  margin-block: 0 1rem;
}

h1,
h2,
h3 {
  margin-block: 0 .75rem;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}

h1 {
  max-width: 24ch;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 780;
}

h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 740;
}

small,
.helptext {
  color: var(--muted);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  translate: 0 -220%;
  border: 2px solid var(--white);
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: translate .18s ease;
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.75rem;
  padding: .8rem max(1rem, calc((100% - var(--content-width)) / 2));
  border-bottom: 1px solid rgb(255 255 255 / 28%);
  background:
    linear-gradient(120deg, rgb(255 255 255 / 8%), transparent 45%),
    var(--portal-header);
  color: var(--white);
  box-shadow: 0 .6rem 2rem rgb(0 0 0 / 12%);
}

.site-header a,
.site-header .link-button {
  color: var(--white);
}

.portal-identity,
.portal-brand-identity {
  display: flex;
  align-items: center;
  min-width: 0;
}

.portal-brand-identity {
  gap: .7rem;
}

.portal-logo {
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: .8rem;
  background: rgb(255 255 255 / 94%);
  object-fit: contain;
  padding: .2rem;
  box-shadow: 0 .3rem 1rem rgb(0 0 0 / 14%);
}

.company-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: .8rem;
  text-decoration: none;
}

.company-logo {
  width: 2.9rem;
  height: auto;
  aspect-ratio: 525 / 488;
  display: block;
}

.brand {
  overflow-wrap: anywhere;
  font-weight: 760;
  letter-spacing: -.015em;
  text-decoration: none;
}

.portal-title { margin-left: 3mm; flex: 0 0 auto; font-weight: 650; white-space: nowrap; opacity: .78; }

.portal-navigation {
  grid-column: 2;
  justify-self: end;
  min-width: 0;
}

.language-selector {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: .45rem;
  margin: 0;
  color: var(--white);
  white-space: nowrap;
}

.site-header > .language-selector {
  gap: 0;
}

[dir="rtl"] .site-header > .portal-identity {
  grid-column: 3;
}

[dir="rtl"] .site-header > .language-selector {
  grid-column: 1;
}

.language-selector label {
  font-size: .875rem;
  font-weight: 650;
}

.language-selector select {
  min-height: 2.35rem;
  max-width: 9rem;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  padding: .35rem .55rem;
}

[dir="rtl"] .portal-title {
  margin-right: 3mm;
  margin-left: 0;
}

[dir="rtl"] [dir="ltr"],
[dir="rtl"] .ticket-reference,
[dir="rtl"] code,
[dir="rtl"] input[type="email"] {
  direction: ltr;
  unicode-bidi: isolate;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
}

.tenant-quota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-block: 1rem 1.5rem;
}

.tenant-quota-grid .card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quota {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .2rem .65rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.quota-over {
  border-width: 2px;
  border-style: dashed;
}

.assignment-list {
  display: grid;
  gap: .5rem;
  padding: 0;
  list-style: none;
}

.assignment-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-block: .45rem;
}

.onboarding-users {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.onboarding-user-card {
  min-inline-size: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
}

.onboarding-user-card legend {
  padding-inline: .35rem;
  font-weight: 700;
}

.onboarding-user-card input,
.onboarding-user-card select,
.stacked-form input,
.stacked-form select {
  max-inline-size: 100%;
}

.identifier-value,
.identifier-value input,
bdi {
  unicode-bidi: isolate;
}

.danger-zone {
  border-color: #b91c1c;
}

.site-header nav > a,
.site-header nav > .header-menu > summary,
.site-header nav > .activity-inbox details > summary,
.link-button {
  min-height: 2.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .55rem .8rem;
  background: transparent;
  font-size: .9rem;
  font-weight: 680;
  line-height: 1.45;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.site-header nav > a:hover,
.site-header nav > .header-menu > summary:hover,
.site-header nav > .activity-inbox details > summary:hover,
.link-button:hover {
  border-color: rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 12%);
}

.inline-form {
  display: inline;
  margin: 0;
}

.link-button {
  width: auto;
  cursor: pointer;
}

.header-menu {
  position: relative;
}

.header-menu > summary {
  display: flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  list-style: none;
}

.header-menu > summary::-webkit-details-marker {
  display: none;
}

.header-menu > summary::after {
  width: .45rem;
  height: .45rem;
  border-right: .12rem solid currentcolor;
  border-bottom: .12rem solid currentcolor;
  content: "";
  rotate: 45deg;
  transition: rotate .16s ease;
}

.header-menu[open] > summary::after {
  rotate: 225deg;
}

.header-menu-panel {
  position: absolute;
  z-index: 31;
  top: calc(100% + .65rem);
  inset-inline-end: 0;
  display: grid;
  width: min(20rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: .55rem;
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.site-header .header-menu-panel a,
.site-header .header-menu-panel .link-button {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  align-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  padding: .65rem .75rem;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 680;
  line-height: 1.35;
  text-align: start;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-header .header-menu-panel a:hover,
.site-header .header-menu-panel .link-button:hover {
  background: var(--sand);
}

.header-menu-logout {
  display: block;
  border-top: 1px solid var(--line);
  margin-top: .35rem;
  padding-top: .35rem;
}

.container {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: clamp(1.5rem, 4vw, 3.5rem) auto;
}

.container > :first-child,
[data-live-root] > :first-child,
[data-ticket-state] > :first-child,
[data-chat-state] > :first-child {
  margin-top: 0;
}

.narrow {
  max-width: 35rem;
  margin-inline: auto;
}

.card,
.table-wrap,
.ticket-meta,
.timeline > li,
.empty-state {
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
}

.card::before {
  position: absolute;
  inset: 0 0 auto;
  height: .28rem;
  background: linear-gradient(90deg, transparent 2%, rgb(255 255 255 / 92%) 24%, rgb(255 255 255 / 38%) 72%, transparent 98%);
  filter: blur(.05rem);
  content: "";
  pointer-events: none;
}

.auth-card {
  margin-top: clamp(1rem, 8vh, 5rem);
}

.auth-card::after {
  display: block;
  width: 3.5rem;
  height: .25rem;
  margin-top: 1.75rem;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.request-form-card {
  max-width: 52rem;
  margin-inline: auto;
}

.history-section {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.chat-meta {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .75rem;
  background: rgb(255 255 255 / 72%);
  color: var(--muted);
  font-size: .9rem;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.page-heading h1,
.page-heading p {
  margin-bottom: 0;
}

.button,
button:not(.link-button):not(.activity-inbox-hide),
input[type="submit"] {
  display: inline-flex;
  width: auto;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: .62rem 1.15rem;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 .35rem .9rem rgb(31 58 90 / 18%);
  cursor: pointer;
  font-weight: 720;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: box-shadow .16s ease, transform .16s ease, background-color .16s ease;
}

.button:hover,
button:not(.link-button):not(.activity-inbox-hide):hover,
input[type="submit"]:hover {
  box-shadow: 0 .55rem 1.2rem rgb(31 58 90 / 25%);
  transform: translateY(-1px);
}

.button:active,
button:not(.link-button):not(.activity-inbox-hide):active,
input[type="submit"]:active {
  box-shadow: none;
  transform: translateY(0);
}

.button-secondary,
button.button-secondary {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.button-danger,
button.button-danger {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .55;
}

form p {
  margin-block: 1rem;
}

label,
.field label {
  display: block;
  margin-bottom: .4rem;
  color: var(--navy);
  font-size: .92rem;
  font-weight: 720;
}

input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 94%);
  color: var(--black);
  padding: .72rem .8rem;
  box-shadow: inset 0 1px 2px rgb(31 58 90 / 6%);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--navy);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 .24rem rgb(201 165 106 / 38%);
  outline: 0;
}

.field {
  margin-block: 1.15rem;
}

.field [id$="_helptext"],
.helptext {
  display: block;
  margin-top: .35rem;
  font-size: .875rem;
}

.errorlist {
  margin: .35rem 0 0;
  padding-left: 1.25rem;
}

.form-errors,
.field-error,
.message {
  margin-block: 1rem;
  border: 1px solid var(--line-strong);
  border-left: .35rem solid var(--navy);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

.form-errors,
.field-error,
.message.error {
  border-left-color: var(--black);
  background: linear-gradient(90deg, rgb(231 216 184 / 72%), var(--white));
}

.message.success {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgb(201 165 106 / 24%), var(--white));
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

th,
td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--navy);
  color: var(--white);
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .055em;
  text-transform: uppercase;
}

tbody tr {
  background: rgb(255 255 255 / 86%);
  transition: background-color .14s ease;
}

tbody tr:hover {
  background: rgb(231 216 184 / 42%);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td a {
  white-space: nowrap;
}

.status {
  display: inline-flex;
  min-height: 1.85rem;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .2rem .65rem;
  background: var(--white);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .02em;
  white-space: nowrap;
}

.status::before {
  width: .45rem;
  height: .45rem;
  margin-right: .4rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-open {
  border-color: var(--navy);
}

.status-in_progress {
  border-color: var(--gold);
  background: rgb(231 216 184 / 72%);
}

.status-resolved {
  border-color: var(--gold);
  background: rgb(201 165 106 / 22%);
}

.status-closed {
  color: var(--charcoal);
}

.ticket-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-block: 0 1.5rem;
  border-radius: var(--radius-md);
  background: var(--line);
}

.ticket-meta div {
  min-width: 0;
  padding: 1rem;
  background: var(--surface-solid);
}

.ticket-meta dt {
  margin-bottom: .25rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ticket-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.retained-assignee {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
}

.timeline {
  display: grid;
  gap: .85rem;
  margin-block: 1rem;
  padding: 0;
  list-style: none;
}

.timeline > li {
  position: relative;
  margin: 0;
  overflow-wrap: anywhere;
  border-left: .3rem solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.15rem;
}

.timeline > li > :last-child {
  margin-bottom: 0;
}

.timeline-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}

.timeline time,
.eyebrow {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
}

.eyebrow {
  margin: 0 0 .35rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.5rem;
}

.action-grid .card:first-child {
  grid-column: span 2;
}

.empty-state {
  border-style: dashed;
  border-width: 2px;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 7vw, 4rem);
  color: var(--muted);
  text-align: center;
}

.ownership-held,
.ownership-other {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .3rem .7rem;
  background: rgb(231 216 184 / 62%);
  color: var(--navy);
  font-weight: 720;
}

.ownership-held::before,
.ownership-other::before {
  width: .5rem;
  height: .5rem;
  margin-right: .45rem;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.activity-inbox {
  position: relative;
}

.activity-inbox details {
  position: relative;
}

.activity-inbox summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.activity-inbox summary::-webkit-details-marker {
  display: none;
}

.activity-inbox summary::before {
  width: .5rem;
  height: .5rem;
  margin-right: .45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 .2rem rgb(201 165 106 / 22%);
  content: "";
}

.activity-inbox-count {
  display: inline-grid;
  min-width: 1.4rem;
  height: 1.4rem;
  margin-left: .35rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-size: .72rem;
  font-weight: 800;
}

.activity-inbox-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + .65rem);
  right: 0;
  width: min(26rem, calc(100vw - 2rem));
  max-height: min(31rem, calc(100vh - 6rem));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: .7rem;
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.activity-inbox-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-inbox-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: .75rem .55rem;
}

.activity-inbox-list li:last-child {
  border-bottom: 0;
}

.activity-inbox-list a {
  min-width: 0;
  text-decoration: none;
}

.activity-inbox-list a span {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
}

.activity-inbox-hide {
  width: auto;
  min-height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .32rem .55rem;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 680;
}

.activity-inbox-empty {
  margin: 0;
  padding: .75rem;
  color: var(--muted);
}

.support-chat-workspace {
  min-height: calc(100vh - 12rem);
}

.support-chat-activity-list,
.requester-chat-activity-list {
  min-height: 13rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
}

.support-chat-composer,
.requester-chat-composer {
  position: sticky;
  bottom: 1rem;
  margin-top: 0;
  box-shadow: var(--shadow-md);
}

.support-chat-composer textarea,
.requester-chat-composer textarea {
  min-height: 3.7rem;
  max-height: 14rem;
  resize: none;
  overflow-y: auto;
}

.account-management {
  display: grid;
  gap: 1rem;
}

.account-management h1 {
  margin-bottom: .35rem;
}

.account-management .errorlist {
  margin: 0;
}

.account-management .field-error {
  margin-top: .4rem;
}

.ticket-unread {
  box-shadow: inset .3rem 0 0 var(--gold);
}

.unread-cue {
  display: block;
  margin-top: .22rem;
  color: var(--navy);
  font-size: .76rem;
  font-weight: 780;
}

.unread-cue::before {
  display: inline-block;
  width: .45rem;
  height: .45rem;
  margin-right: .38rem;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.unread-ticket-hint {
  border-left: .25rem solid var(--gold);
}

:focus-visible {
  outline: .2rem solid var(--focus);
  outline-offset: .18rem;
  box-shadow: 0 0 0 .1rem var(--navy);
}

@supports ((-webkit-backdrop-filter: blur(1rem)) or (backdrop-filter: blur(1rem))) {
  :root {
    --surface: var(--glass-content);
  }

  .site-header {
    background:
      radial-gradient(circle at 15% -80%, rgb(255 255 255 / 46%), transparent 48%),
      linear-gradient(120deg, rgb(255 255 255 / 20%), transparent 52%),
      color-mix(in srgb, var(--portal-header) 82%, transparent);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    box-shadow:
      0 1rem 2.8rem rgb(0 0 0 / 18%),
      inset 0 1px 0 rgb(255 255 255 / 34%),
      inset 0 -1px 0 rgb(255 255 255 / 16%);
  }

  .card,
  .table-wrap,
  .ticket-meta,
  .timeline > li,
  .empty-state,
  .header-menu-panel,
  .activity-inbox-panel {
    background:
      radial-gradient(circle at 18% -20%, rgb(255 255 255 / 88%), transparent 42%),
      var(--glass-content);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    box-shadow: var(--glass-shadow);
  }

  .ticket-meta div {
    background: var(--glass-raised);
    box-shadow: inset 0 1px 0 var(--glass-rim);
  }

  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .activity-inbox-hide,
  .chat-meta {
    background:
      linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(255 255 255 / 56%)),
      var(--glass-raised);
    -webkit-backdrop-filter: blur(.9rem) saturate(135%);
    backdrop-filter: blur(.9rem) saturate(135%);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 90%),
      0 .35rem 1rem rgb(31 58 90 / 10%);
  }

  .button,
  button:not(.link-button):not(.activity-inbox-hide),
  input[type="submit"] {
    background:
      linear-gradient(180deg, rgb(255 255 255 / 24%), transparent 52%),
      var(--accent);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 46%),
      inset 0 -1px 0 rgb(0 0 0 / 16%),
      0 .65rem 1.4rem rgb(31 58 90 / 25%);
  }

  .button-secondary,
  button.button-secondary {
    background:
      radial-gradient(circle at 20% 0%, rgb(255 255 255 / 96%), transparent 44%),
      var(--glass-raised);
    color: var(--navy);
  }
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.security-notice {
  padding: .8rem 1rem;
  border-inline-start: .3rem solid var(--gold, #b88920);
  background: var(--sand, #f4ead7);
  color: #111827;
}

.two-factor-qr {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  margin-block: 1rem;
  border: .5rem solid #fff;
  background: #fff;
}

.manual-secret {
  display: block;
  overflow-wrap: anywhere;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  user-select: all;
}

.recovery-code-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem 1rem;
  padding: 0;
  list-style: none;
}

.recovery-code-list code {
  display: block;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  text-align: center;
  user-select: all;
}

.danger-button {
  background: #7f1d1d;
}

@media (max-width: 960px) {
  .site-header {
    align-items: start;
    gap: .65rem 1rem;
  }

  .portal-navigation nav {
    flex-wrap: wrap;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .action-grid .card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; align-items: start; position: relative; }
  .portal-identity { flex-wrap: wrap; }
  .portal-title { display: none; }

  [dir="rtl"] .site-header > .portal-identity {
    grid-column: 2;
  }

  .portal-navigation {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .portal-navigation nav {
    position: relative;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .header-menu {
    position: static;
    order: 3;
    flex-basis: 100%;
  }

  .header-menu > summary {
    justify-content: center;
  }

  .header-menu-panel {
    position: static;
    width: 100%;
    margin-top: .4rem;
  }

  .container {
    width: min(100% - 1rem, var(--content-width));
    margin-block: 1rem 1.5rem;
  }

  .card {
    padding: 1.15rem;
    border-radius: var(--radius-md);
  }

  .page-heading,
  .timeline-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading .button,
  .page-heading button {
    width: 100%;
  }

  h1 {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }

  th,
  td {
    padding: .72rem .8rem;
  }

  .activity-inbox {
    position: static;
  }

  .activity-inbox details {
    position: static;
  }

  .activity-inbox-panel {
    position: fixed;
    top: auto;
    right: .5rem;
    bottom: .5rem;
    left: .5rem;
    width: auto;
    max-height: min(70vh, 32rem);
  }

  .activity-inbox-list li {
    grid-template-columns: 1fr;
  }

  .activity-inbox-hide {
    justify-self: start;
  }

  .support-chat-composer,
  .requester-chat-composer {
    bottom: .5rem;
  }

  .recovery-code-list {
    grid-template-columns: 1fr;
  }

  .onboarding-users {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: .65rem;
  }

  .portal-logo {
    width: 2.35rem;
    height: 2.35rem;
  }

  .company-logo {
    width: 2.5rem;
    height: auto;
  }

  .brand {
    max-width: 13rem;
  }

  .site-header nav > a,
  .site-header nav > .header-menu > summary,
  .site-header nav > .activity-inbox details > summary,
  .link-button {
    padding-inline: .62rem;
    font-size: .84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .button:hover,
  button:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .portal-logo {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .site-header,
  .card,
  .onboarding-user-card,
  .table-wrap,
  .ticket-meta,
  .timeline > li,
  .activity-inbox-panel,
  .header-menu-panel,
  .empty-state {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  .security-notice,
  .manual-secret,
  .recovery-code-list code,
  .two-factor-qr {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }

  .site-header a,
  .site-header .link-button,
  th {
    color: LinkText;
  }

  .site-header .header-menu-panel a,
  .site-header .header-menu-panel .link-button {
    color: LinkText;
  }

  .status::before,
  .unread-cue::before,
  .activity-inbox summary::before {
    border: 1px solid CanvasText;
  }
}
/* Microsoft Entra ID SSO keeps an opaque, script-independent baseline. */
.auth-alternative {
  margin-block-start: 1.25rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--border, #c7c7c7);
  text-align: center;
}

.sso-form {
  max-width: 46rem;
}

.sso-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 1rem;
}

.sso-remove-form {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.sso-status dl {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr);
  gap: 0.5rem 1rem;
}

.sso-status dt {
  font-weight: 700;
}

.identifier {
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}

@media (max-width: 40rem) {
  .sso-status dl {
    grid-template-columns: 1fr;
  }
}

@media (forced-colors: active) {
  .auth-alternative {
    border-color: CanvasText;
  }
}
