@charset "UTF-8";
/* =========================================================
   DESIGN TOKENS
   Global theme for Help Desk software
========================================================= */
/* ---------------- FONT ---------------- */
/* =========================================================
   PRIMITIVE TOKENS
   Raw values are allowed only in this section.
========================================================= */
/* ---------------- NEUTRAL ---------------- */
/* ---------------- BLUE PALETTE ---------------- */
/* ---------------- SLATE PALETTE ---------------- */
/* ---------------- GREEN PALETTE ---------------- */
/* ---------------- RED PALETTE ---------------- */
/* ---------------- ORANGE / WARNING PALETTE ---------------- */
/* ---------------- PURPLE PALETTE ---------------- */
/* ---------------- CUSTOM SURFACE PALETTE ---------------- */
/* ---------------- TICKET STATUS COLORS ---------------- */
/* Open: blue */
/* Pending: yellow-orange */
/* Resolved: green */
/* Closed: ghosted neutral gray */
/* =========================================================
   SEMANTIC TOKENS
   Components must use these tokens, not primitive colors.
========================================================= */
/* ---------------- BRAND / CORE ---------------- */
/* ---------------- TEXT ---------------- */
/* ---------------- PAGE / SURFACES ---------------- */
/* ---------------- BORDERS ---------------- */
/* ---------------- BUTTONS ---------------- */
/* ---------------- STATUS COLORS ---------------- */
/* ---------------- FOCUS ---------------- */
/* ---------------- RADII ---------------- */
/* =========================================================
   APP SHELL TOKENS
   Required by sidebar, navbar, topbar, and app layout
========================================================= */
/* ---------------- LAYOUT ---------------- */
/* ---------------- APP TEXT ALIASES ---------------- */
/* ---------------- APP SURFACE ALIASES ---------------- */
/* ---------------- APP BORDER ALIASES ---------------- */
/* ---------------- APP RADIUS ALIASES ---------------- */
/* ---------------- APP FOCUS ALIASES ---------------- */
/* ---------------- APP SHADOWS ---------------- */
/* ---------------- APP GRADIENTS ---------------- */
/* ---------------- DANGER ALIASES ---------------- */
/* =========================================================
   LEGACY COMPATIBILITY ALIASES
   Keep these while older components still reference them.
========================================================= */
/* =========================================================
   SHADOWS
========================================================= */
/* =========================================================
   GRADIENTS
========================================================= */
/* =========================================================
   LOGIN LAYOUT TOKENS
========================================================= */
/* =========================================================
   TRANSITIONS
========================================================= */
/* =========================================================
   BREAKPOINTS
========================================================= */
/* ---------------- PRIORITY COLORS ----------------
   Priority uses a separate pink scale.
   Status colors should not use these tokens.
-------------------------------------------------- */
/* Readable text tones for labels on light surfaces */
/* Soft badge backgrounds */
/* Borders */
/* ---------------- MEDIA QUERIES ---------------- */
/* ---------------- ACCESSIBILITY ---------------- */
/* ---------------- RESET ---------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   TYPOGRAPHY
   Help Desk SaaS typography system
========================================================= */
html {
  font-size: 62.5%;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------------- HEADINGS ---------------- */
h1,
h2,
h3,
h4 {
  margin: 0;
  color: #0f172a;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 {
  font-size: 3.2rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.5rem;
}

/* ---------------- TEXT ---------------- */
p {
  margin: 0;
  color: #334155;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.55;
}

small {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------------- FORM / UI TEXT ---------------- */
label,
input,
button,
select,
textarea,
td,
th,
a {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  line-height: inherit;
}

input,
select,
textarea {
  color: #0f172a;
}

input::placeholder,
textarea::placeholder {
  color: #7c8ba1;
}

/* ---------------- TABLE TYPOGRAPHY ---------------- */
th {
  color: #334155;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

td {
  color: #334155;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.45;
}

/* ---------------- LINKS ---------------- */
a {
  color: inherit;
  text-decoration: none;
}

/* ---------------- SELECTION ---------------- */
::selection {
  background: rgba(37, 99, 235, 0.14);
  color: #0f172a;
}

/* ---------------- UTILITIES ---------------- */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   APP LAYOUT
========================================================= */
.app-layout {
  min-height: 100vh;
  background: radial-gradient(circle at 16% 8%, rgba(37, 99, 235, 0.1), transparent 30%), radial-gradient(circle at 90% 18%, rgba(147, 197, 253, 0.18), transparent 34%), #f8fbff;
}

.app-main {
  min-height: 100vh;
  width: calc(100% - 27.2rem);
  margin-left: 27.2rem;
  padding: calc(7.8rem + 2.6rem) 3.2rem 4rem;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 98rem) {
  .app-main {
    width: 100%;
    margin-left: 0;
    padding: calc(7.8rem + 2rem) 1.8rem 3rem;
  }
}
/* ---------------- SIDEBAR ---------------- */
.sidebar,
.sidebar * {
  box-sizing: border-box;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 27.2rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2.8rem 1.8rem 1.8rem;
  background: #ffffff;
  color: #0f2f66;
  border-right: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 1.8rem 4.8rem rgba(15, 23, 42, 0.06), 0 0.6rem 1.8rem rgba(37, 99, 235, 0.05);
  transition: transform 0.3s ease;
}
.sidebar.open {
  transform: translateX(0);
}

/* ---------------- BRAND ---------------- */
.sidebar-brand {
  flex-shrink: 0;
  margin-bottom: 3.2rem;
  padding: 0 0.4rem;
}

.sidebar-brand__link {
  width: 17rem;
  height: 5.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  color: #0f2f66;
  text-decoration: none;
}
.sidebar-brand__link:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.1);
  outline-offset: 2px;
}

.sidebar-brand__logo {
  width: 14rem;
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.35);
  transform-origin: left center;
}

/* ---------------- MENU STRUCTURE ---------------- */
.sidebar-menu {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 1.2rem;
  scrollbar-width: none;
}
.sidebar-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sidebar-menu__section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.sidebar-menu__section + .sidebar-menu__section {
  margin-top: 2.8rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}
.sidebar-menu__section ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-menu__label {
  margin: 0 0 0.45rem;
  padding: 0 1rem;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* ---------------- MENU LINKS ---------------- */
.sidebar-item,
.accordion {
  width: 100%;
  min-width: 0;
}

.sidebar-menu a,
.accordion-link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 5rem;
  padding: 1.35rem 1.25rem;
  border-radius: 1.2rem;
  color: #0f172a;
  text-decoration: none;
  overflow: hidden;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.sidebar-menu a .icon,
.accordion-link .icon {
  width: 2.15rem;
  height: 2.15rem;
  margin-right: 1.35rem;
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.sidebar-menu a span,
.accordion-link span {
  min-width: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-menu a:hover,
.accordion-link:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #0f2f66;
}
.sidebar-menu a:hover .icon,
.accordion-link:hover .icon {
  opacity: 1;
}
.sidebar-menu a:active,
.accordion-link:active {
  transform: translateY(0.1rem);
}
.sidebar-menu a:focus-visible,
.accordion-link:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.1);
  outline-offset: 2px;
}

/* ---------------- ACTIVE ITEM ---------------- */
.sidebar-item > a.active, .sidebar-item--active > a {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2), 0 0.8rem 2rem rgba(37, 99, 235, 0.08);
}
.sidebar-item > a.active::before, .sidebar-item--active > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 0.35rem;
  border-radius: 0 999rem 999rem 0;
  background: #2563eb;
}
.sidebar-item > a.active .icon, .sidebar-item--active > a .icon {
  opacity: 1;
  transform: translateX(0.1rem);
}
.sidebar-item > a.active span, .sidebar-item--active > a span {
  font-weight: 800;
}

/* ---------------- ACCORDION ---------------- */
.accordion.active > .accordion-header, .accordion--active > .accordion-header {
  background: rgba(37, 99, 235, 0.12);
  border-radius: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}
.accordion.open > .accordion-menu, .accordion--open > .accordion-menu {
  display: flex;
}
.accordion.open .accordion-arrow, .accordion--open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.2rem;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.accordion-header:hover {
  background-color: rgba(37, 99, 235, 0.12);
}

.accordion-link {
  flex: 1;
  min-width: 0;
  border-radius: 1.2rem 0 0 1.2rem;
}

.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 5rem;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 0 1.2rem 1.2rem 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.accordion-toggle:hover {
  background: rgba(37, 99, 235, 0.06);
}
.accordion-toggle:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.1);
  outline-offset: 2px;
}

.accordion-arrow {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.18s ease;
}

.accordion-toggle:hover .accordion-arrow {
  opacity: 1;
}

.accordion-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
  margin: 0.5rem 0 0;
  padding: 0 0 0 3.4rem;
  overflow-x: hidden;
  list-style: none;
}

.accordion-item {
  width: 100%;
  min-width: 0;
}
.accordion-item > a {
  min-height: 3.6rem;
  padding: 0.85rem 1rem;
  border-radius: 1.2rem;
  color: #64748b;
  font-size: 1.3rem;
  font-weight: 650;
}
.accordion-item:hover > a {
  background: rgba(37, 99, 235, 0.12);
  color: #0f2f66;
}
.accordion-item > a.active, .accordion-item--active > a {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-weight: 800;
}

/* ---------------- FOOTER ---------------- */
.sidebar-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 6.8rem;
  margin: 1.4rem -1.8rem -1.8rem;
  padding: 1.4rem 1.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.58);
}

.sidebar-footer__icon {
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 1.2rem;
  background: rgba(37, 99, 235, 0.12);
}
.sidebar-footer__icon img {
  width: 1.9rem;
  height: 1.9rem;
  display: block;
  opacity: 0.9;
}

.sidebar-footer__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sidebar-footer__text strong {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-footer__text span {
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 98rem) {
  .sidebar {
    height: 100%;
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
}
/* ---------------- MOBILE SIDEBAR BACKDROP ---------------- */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(0.2rem);
}

.sidebar-backdrop.is-visible {
  display: block;
}

body.sidebar-is-open {
  overflow: hidden;
}

/* ---------------- TOPBAR ---------------- */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}

.topbar {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.topbar__breadcrumb {
  margin: 0 0 1.4rem;
}

.topbar__breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar__breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #64748b;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.topbar__breadcrumb-link {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.18s ease;
}
.topbar__breadcrumb-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}
.topbar__breadcrumb-link:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.topbar__breadcrumb-current {
  color: #64748b;
}

.topbar__breadcrumb-separator {
  color: #334155;
  font-size: 1.6rem;
  font-weight: 700;
}

.topbar__main {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#topbar-title {
  margin: 0;
  color: #0f172a;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.topbar__subtitle {
  max-width: 72rem;
  margin: 0;
  color: #64748b;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.45;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 98rem) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }
  .topbar__breadcrumb {
    margin-bottom: 1rem;
  }
  .topbar__breadcrumb-item {
    font-size: 1.25rem;
  }
  #topbar-title {
    font-size: 2.4rem;
  }
  .topbar__subtitle {
    font-size: 1.35rem;
  }
}
/* ---------------- APP NAVBAR ---------------- */
.app-navbar,
.app-navbar * {
  box-sizing: border-box;
}

.app-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 27.2rem;
  z-index: 900;
  height: 7.8rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 0.8rem 2.4rem rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(1.4rem);
}

.app-navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  padding: 0 3rem;
}

.app-navbar__left,
.app-navbar__right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.app-navbar__left {
  flex: 1;
  gap: 1.4rem;
}

.app-navbar__right {
  flex-shrink: 0;
  gap: 1rem;
}

/* ---------------- MOBILE MENU BUTTON ---------------- */
.app-navbar__menu-button {
  display: none;
  width: 4.2rem;
  height: 4.2rem;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.2rem;
  background: #ffffff;
  cursor: pointer;
}
.app-navbar__menu-button span {
  display: block;
  width: 1.8rem;
  height: 0.2rem;
  margin: 0.25rem auto;
  border-radius: 999rem;
  background: #0f172a;
}
.app-navbar__menu-button:hover {
  background: #eff6ff;
  border-color: rgba(100, 116, 139, 0.46);
}
.app-navbar__menu-button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

/* ---------------- SEARCH ---------------- */
.app-navbar__search {
  width: min(100%, 52rem);
  height: 4.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0.7rem 0 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.2rem;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.app-navbar__search:focus-within {
  border-color: rgba(100, 116, 139, 0.46);
  background: #ffffff;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.12);
}

.app-navbar__search-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  opacity: 0.62;
}

.app-navbar__search-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 500;
}
.app-navbar__search-input::placeholder {
  color: #64748b;
}

.app-navbar__search-action {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0;
  border-radius: 999rem;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.app-navbar__search-action img {
  width: 1.7rem;
  height: 1.7rem;
  opacity: 0.58;
  transition: opacity 0.18s ease;
}
.app-navbar__search-action:hover {
  background: #eff6ff;
}
.app-navbar__search-action:hover img {
  opacity: 1;
}
.app-navbar__search-action:active {
  transform: scale(0.96);
}
.app-navbar__search-action:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

/* ---------------- ICON BUTTONS ---------------- */
.app-navbar__icon-button {
  position: relative;
  width: 4.2rem;
  height: 4.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999rem;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.app-navbar__icon-button img {
  width: 2.2rem;
  height: 2.2rem;
  opacity: 0.68;
  transition: opacity 0.18s ease;
}
.app-navbar__icon-button:hover {
  background: #eff6ff;
}
.app-navbar__icon-button:hover img {
  opacity: 1;
}
.app-navbar__icon-button:active {
  transform: scale(0.96);
}
.app-navbar__icon-button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.app-navbar__notification-dot {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #2563eb;
}

.app-navbar__divider {
  width: 1px;
  height: 2.8rem;
  margin: 0 0.4rem;
  background: rgba(148, 163, 184, 0.24);
}

/* ---------------- USER AREA ---------------- */
.app-navbar__user {
  min-width: 0;
  height: 4.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  border-radius: 999rem;
  color: #0f172a;
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.app-navbar__user:hover {
  background: #eff6ff;
}
.app-navbar__user:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.app-navbar__avatar {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 0.8rem 1.8rem rgba(37, 99, 235, 0.22);
}

.app-navbar__user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.app-navbar__user-meta strong {
  max-width: 12rem;
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-navbar__user-meta small {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-navbar__chevron {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-navbar__chevron img {
  width: 1.6rem;
  height: 1.6rem;
  opacity: 0.62;
  transition: opacity 0.18s ease;
}

.app-navbar__user:hover .app-navbar__chevron img {
  opacity: 1;
}

/* ---------------- USER DROPDOWN ---------------- */
.app-navbar__user-menu {
  position: relative;
  flex-shrink: 0;
}

.app-navbar__user {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.app-navbar__user[aria-expanded=true] {
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.app-navbar__dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  z-index: calc(900 + 20);
  width: 24rem;
  padding: 0.8rem;
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.6rem;
  background: #ffffff;
  box-shadow: 0 1.6rem 4rem rgba(15, 23, 42, 0.12), 0 0.4rem 1.2rem rgba(15, 23, 42, 0.06);
}

.app-navbar__dropdown.is-open {
  display: block;
}

.app-navbar__dropdown-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.app-navbar__dropdown-avatar {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 0.8rem 1.8rem rgba(37, 99, 235, 0.18);
}

.app-navbar__dropdown-profile-text {
  min-width: 0;
}
.app-navbar__dropdown-profile-text strong,
.app-navbar__dropdown-profile-text span {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-navbar__dropdown-profile-text strong {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}
.app-navbar__dropdown-profile-text span {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-navbar__dropdown-item {
  width: 100%;
  min-height: 4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  color: #0f172a;
  text-align: left;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.app-navbar__dropdown-item img {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  opacity: 0.72;
}
.app-navbar__dropdown-item span {
  min-width: 0;
}
.app-navbar__dropdown-item:hover {
  background: #eff6ff;
}
.app-navbar__dropdown-item:hover img {
  opacity: 1;
}
.app-navbar__dropdown-item:active {
  transform: translateY(0.1rem);
}
.app-navbar__dropdown-item:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.app-navbar__dropdown-item--danger {
  color: #b91c1c;
}
.app-navbar__dropdown-item--danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.app-navbar__dropdown-danger-icon {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: currentColor;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.app-navbar__dropdown-divider {
  height: 1px;
  margin: 0.6rem 0;
  background: rgba(148, 163, 184, 0.24);
}

.app-navbar__logout-form {
  margin: 0;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 98rem) {
  .app-navbar {
    left: 0;
  }
  .app-navbar__inner {
    padding: 0 2rem;
    gap: 1.2rem;
  }
  .app-navbar__menu-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .app-navbar__search {
    width: 100%;
  }
  .app-navbar__icon-button--optional,
  .app-navbar__divider,
  .app-navbar__user-meta,
  .app-navbar__chevron {
    display: none;
  }
}
@media (max-width: 560px) {
  .app-navbar__inner {
    padding: 0 1.4rem;
  }
  .app-navbar__search {
    max-width: none;
  }
  .app-navbar__search-action {
    display: none;
  }
  .app-navbar__avatar {
    width: 3.8rem;
    height: 3.8rem;
  }
}
/* =========================================================
   BUTTON COMPONENT
   Global Help Desk SaaS button system
========================================================= */
.btn {
  min-height: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1.35rem;
  border: 0.1rem solid transparent;
  border-radius: 1rem;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.btn:hover {
  text-decoration: none;
}
.btn:active:not(:disabled):not([aria-disabled=true]) {
  transform: translateY(0.1rem);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

/* ---------------- SIZES ---------------- */
.btn--sm {
  min-height: 3.2rem;
  padding: 0 1.1rem;
  font-size: 1.2rem;
}

.btn--md {
  min-height: 3.8rem;
  padding: 0 1.45rem;
}

.btn--lg {
  min-height: 4.4rem;
  padding: 0 1.8rem;
  font-size: 1.4rem;
}

/* ---------------- PRIMARY ---------------- */
.btn--primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0.8rem 1.8rem rgba(37, 99, 235, 0.16), inset 0 0.1rem 0 rgba(255, 255, 255, 0.14);
}
.btn--primary:hover:not(:disabled):not([aria-disabled=true]) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 1rem 2.2rem rgba(37, 99, 235, 0.2), inset 0 0.1rem 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-0.05rem);
}
.btn--primary:active:not(:disabled):not([aria-disabled=true]) {
  transform: translateY(0);
  box-shadow: 0 0.4rem 1.1rem rgba(37, 99, 235, 0.16), inset 0 0.1rem 0 rgba(0, 0, 0, 0.04);
}

/* ---------------- NEW TICKET CTA ---------------- */
.btn--new-ticket {
  min-height: 4rem;
  padding: 0 1.65rem;
  border-radius: 1rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.btn--new-ticket .btn__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
}

/* ---------------- SUBTLE / FILTER BUTTON ---------------- */
.btn--subtle {
  background: #ffffff;
  color: #2563eb;
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 0.4rem 1.2rem rgba(15, 23, 42, 0.025);
}
.btn--subtle:hover:not(:disabled):not([aria-disabled=true]) {
  background: rgba(37, 99, 235, 0.035);
  border-color: rgba(37, 99, 235, 0.28);
  color: #1d4ed8;
  box-shadow: 0 0.6rem 1.6rem rgba(37, 99, 235, 0.06);
}

/* Use this for: This Week, Worldwide, View all, View all tickets */
.btn--panel-action {
  min-height: 3.6rem;
  padding: 0 1.2rem;
  background: #ffffff;
  color: #2563eb;
  border-color: rgba(148, 163, 184, 0.24);
  border-radius: 1.1rem;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: none;
}
.btn--panel-action:hover:not(:disabled):not([aria-disabled=true]) {
  background: rgba(37, 99, 235, 0.035);
  border-color: rgba(37, 99, 235, 0.28);
  color: #1d4ed8;
}

/* ---------------- GHOST ---------------- */
.btn--ghost {
  background: transparent;
  color: #334155;
  border-color: transparent;
  box-shadow: none;
}
.btn--ghost:hover:not(:disabled):not([aria-disabled=true]) {
  background: rgba(37, 99, 235, 0.055);
  color: #2563eb;
}

/* ---------------- OUTLINE ---------------- */
.btn--outline {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.36);
  box-shadow: none;
}
.btn--outline:hover:not(:disabled):not([aria-disabled=true]) {
  background: #f8fbff;
  border-color: rgba(100, 116, 139, 0.46);
}

/* ---------------- DANGER ---------------- */
.btn--danger {
  background: #dc2626;
  color: #ffffff;
  border-color: rgba(220, 38, 38, 0.28);
  box-shadow: 0 1rem 2.2rem rgba(220, 38, 38, 0.18), inset 0 0.1rem 0 rgba(255, 255, 255, 0.18);
}
.btn--danger:hover:not(:disabled):not([aria-disabled=true]) {
  background: #b91c1c;
  border-color: rgba(220, 38, 38, 0.36);
  box-shadow: 0 1.2rem 2.6rem rgba(220, 38, 38, 0.24), inset 0 0.1rem 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-0.1rem);
}

/* =========================================================
   ICONS
========================================================= */
.btn__icon {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
  flex-shrink: 0;
}

.btn__icon--sm {
  width: 1.3rem;
  height: 1.3rem;
}

.btn__icon-mask {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
  color: inherit;
}

.btn__icon-mask--arrow-right {
  -webkit-mask: url("/assets/icons/arrow-right.svg") center/contain no-repeat;
  mask: url("/assets/icons/arrow-right.svg") center/contain no-repeat;
}

.btn__icon-mask--save {
  -webkit-mask: url("/assets/icons/save.svg") center/contain no-repeat;
  mask: url("/assets/icons/save.svg") center/contain no-repeat;
}

.btn__icon-mask--reset {
  -webkit-mask: url("/assets/icons/reset.svg") center/contain no-repeat;
  mask: url("/assets/icons/reset.svg") center/contain no-repeat;
}

.btn__icon-mask--arrow-down {
  -webkit-mask: url("/assets/icons/arrow-down.svg") center/contain no-repeat;
  mask: url("/assets/icons/arrow-down.svg") center/contain no-repeat;
}

.btn__icon-mask--pen {
  -webkit-mask: url("/assets/icons/pen.svg") center/contain no-repeat;
  mask: url("/assets/icons/pen.svg") center/contain no-repeat;
}

/* =========================================================
   BULK ACTION ICONS
========================================================= */
.btn__icon-mask--bulk-assign {
  -webkit-mask: url("/assets/icons/asignee.svg") center/contain no-repeat;
  mask: url("/assets/icons/asignee.svg") center/contain no-repeat;
}

.btn__icon-mask--bulk-status {
  -webkit-mask: url("/assets/icons/arrow-right.svg") center/contain no-repeat;
  mask: url("/assets/icons/arrow-right.svg") center/contain no-repeat;
}

.btn__icon-mask--bulk-priority {
  -webkit-mask: url("/assets/icons/up-down.svg") center/contain no-repeat;
  mask: url("/assets/icons/up-down.svg") center/contain no-repeat;
}

.btn__icon-mask--bulk-delete {
  -webkit-mask: url("/assets/icons/trash.svg") center/contain no-repeat;
  mask: url("/assets/icons/trash.svg") center/contain no-repeat;
}

/* =========================================================
   TOOLBAR / BULK ACTION BUTTONS
   Matches first generated design
========================================================= */
.btn--toolbar-action {
  min-height: 4rem;
  padding: 0 1.45rem;
  border-radius: 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.btn--toolbar-action .btn__icon-mask {
  width: 1.55rem;
  height: 1.55rem;
  color: #475569;
}

.btn--ghost-primary {
  background: #ffffff;
  color: #334155;
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.035), 0 0.8rem 1.8rem rgba(15, 23, 42, 0.025);
}
.btn--ghost-primary .btn__icon-mask {
  color: #475569;
}
.btn--ghost-primary:hover:not(:disabled):not([aria-disabled=true]) {
  background: rgba(37, 99, 235, 0.045);
  border-color: rgba(37, 99, 235, 0.3);
  color: #2563eb;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04), 0 0.9rem 2rem rgba(37, 99, 235, 0.07);
  transform: translateY(-0.05rem);
}
.btn--ghost-primary:hover:not(:disabled):not([aria-disabled=true]) .btn__icon-mask {
  color: #2563eb;
}
.btn--ghost-primary.is-active {
  background: #ffffff;
  color: #334155;
  border-color: rgba(148, 163, 184, 0.34);
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.035), 0 0.8rem 1.8rem rgba(15, 23, 42, 0.035);
}
.btn--ghost-primary.is-active .btn__icon-mask {
  color: #334155;
}

.btn--ghost-danger {
  background: #ffffff;
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.22);
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.035), 0 0.8rem 1.8rem rgba(15, 23, 42, 0.025);
}
.btn--ghost-danger .btn__icon-mask {
  color: #dc2626;
}
.btn--ghost-danger:hover:not(:disabled):not([aria-disabled=true]) {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.34);
  color: #b91c1c;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04), 0 0.9rem 2rem rgba(220, 38, 38, 0.08);
  transform: translateY(-0.05rem);
}
.btn--ghost-danger:hover:not(:disabled):not([aria-disabled=true]) .btn__icon-mask {
  color: #b91c1c;
}
.btn--ghost-danger.is-active {
  background: #ffffff;
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.035), 0 0.8rem 1.8rem rgba(220, 38, 38, 0.055);
}
.btn--ghost-danger.is-active .btn__icon-mask {
  color: #dc2626;
}
.btn--ghost-danger:focus-visible {
  box-shadow: 0 0 0 0.35rem rgba(220, 38, 38, 0.12);
}

/* Active selected-ticket toolbar */
.tickets-bulkbar.has-selection {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(239, 246, 255, 0.32)), #f8fafc;
}
.tickets-bulkbar.has-selection .btn--ghost-primary {
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.28);
}
.tickets-bulkbar.has-selection .btn--ghost-danger {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.28);
}

/* ---------------- DISABLED ---------------- */
.btn:disabled,
.btn[aria-disabled=true] {
  background: #f8fafc;
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.24);
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}
.btn:disabled .btn__icon-mask,
.btn[aria-disabled=true] .btn__icon-mask {
  color: #64748b;
}

/* =========================================================
   STATUS COMPONENT
========================================================= */
.status {
  --status-text: #334155;
  --status-background: #f8fafc;
  --status-border: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 2.6rem;
  padding: 0 1rem;
  border: 0.1rem solid var(--status-border);
  border-radius: 999rem;
  background: var(--status-background);
  color: var(--status-text);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* =========================================================
   TICKET STATUSES
========================================================= */
.status--open {
  --status-text: #3b82f6;
  --status-background: #eff6ff;
  --status-border: #3b82f6;
}

.status--pending {
  --status-text: #f97316;
  --status-background: #fff7ed;
  --status-border: #fdba74;
}

.status--resolved {
  --status-text: #16a34a;
  --status-background: #ecfdf5;
  --status-border: #22c55e;
}

.status--closed {
  --status-text: #475569;
  --status-background: #f8fafc;
  --status-border: #94a3b8;
}

/* =========================================================
   ACCOUNT / ORGANIZATION STATUSES
========================================================= */
.status--active {
  --status-text: #16a34a;
  --status-background: #ecfdf5;
  --status-border: #bbf7d0;
}

.status--inactive,
.status--disabled {
  --status-text: #b91c1c;
  --status-background: #fef2f2;
  --status-border: #fecaca;
}

.status--terminated {
  --status-text: #b91c1c;
  --status-background: #fef2f2;
  --status-border: #fecaca;
}

/* =========================================================
   ALERT STATUSES
========================================================= */
.status--warning,
.status--at-risk {
  --status-text: #c2410c;
  --status-background: #fff7ed;
  --status-border: #fed7aa;
}

.status--danger,
.status--overdue {
  --status-text: #b91c1c;
  --status-background: #fef2f2;
  --status-border: #fecaca;
}

/* =========================================================
   ROLE BADGE
========================================================= */
.status--role {
  --status-text: #1d4ed8;
  --status-background: #eff6ff;
  --status-border: #bfdbfe;
  min-height: 3rem;
  padding: 0 1rem;
  font-size: 1.3rem;
  font-weight: 750;
}

/* =========================================================
   SIZE VARIANTS
========================================================= */
.status--sm {
  min-height: 2.2rem;
  padding: 0 0.8rem;
  font-size: 1.1rem;
}

.status--lg {
  min-height: 3rem;
  padding: 0 1.2rem;
  font-size: 1.3rem;
}

/* =========================================================
   PRIORITY INDICATOR
   Dot uses priority color.
   Text remains neutral/black to avoid confusing it with status.
========================================================= */
.priority-indicator {
  --priority-color: #f9cde4;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.priority-indicator::before {
  content: "";
  flex: 0 0 0.7rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999rem;
  background: var(--priority-color);
}

/* URGENT */
.priority-indicator--urgent {
  --priority-color: #f7065d;
}

/* HIGH */
.priority-indicator--high {
  --priority-color: #f272a6;
}

/* NORMAL */
.priority-indicator--normal, .priority-indicator--medium {
  --priority-color: #f9cde4;
}
.priority-indicator--normal::before, .priority-indicator--medium::before {
  box-shadow: inset 0 0 0 0.1rem rgba(116, 69, 92, 0.18);
}

/* TEMPORARY LEGACY ALIAS */
/* =========================================================
   LIST TABLE COMPONENT
   Reusable table for dashboards, list pages, tickets, users, reports
========================================================= */
.list-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 2rem 2.2rem 2.4rem;
}

.list-table {
  width: 100%;
  min-width: var(--list-table-min-width, 72rem);
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #334155;
  font-size: 1.4rem;
}
.list-table th,
.list-table td {
  min-width: 0;
  padding: 1.5rem 1.6rem;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.list-table th {
  color: #334155;
  background: rgba(37, 99, 235, 0.055);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.list-table th:first-child {
  border-top-left-radius: 1.2rem;
}
.list-table th:last-child {
  border-top-right-radius: 1.2rem;
}
.list-table tbody tr {
  transition: background-color 160ms ease, transform 160ms ease;
}
.list-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.035);
}
.list-table tbody tr:last-child td {
  border-bottom: 0;
}
.list-table th:last-child,
.list-table td:last-child {
  width: var(--list-table-action-width, 8rem);
  text-align: right;
}

/* Wider table variant for data-heavy tables */
.list-table--wide {
  --list-table-min-width: 86rem;
}

.list-table--xl {
  --list-table-min-width: 105rem;
}

/* Auto-layout variant for tables that should size naturally */
.list-table--auto {
  table-layout: auto;
}

/* Clickable row variant */
.list-table--clickable tbody tr {
  cursor: pointer;
}

/* Main table link */
.list-table__link {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}
.list-table__link:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

/* Optional muted cell text */
.list-table__muted {
  color: #64748b;
}

/* =========================================================
   OPTIONAL COLUMN WIDTH UTILITIES
   Use only when a table needs explicit semantic widths.
========================================================= */
.list-table__col--identity {
  width: 24rem;
}

.list-table__col--short {
  width: 10rem;
}

.list-table__col--medium {
  width: 14rem;
}

.list-table__col--large {
  width: 22rem;
}

.list-table__col--date {
  width: 14rem;
}

.list-table__col--status {
  width: 10rem;
}

.list-table__col--action {
  width: 8rem;
}

/* =========================================================
   TABLE ACTION COLUMN
   Standard icon-only action column for SaaS list tables.
========================================================= */
.list-table__action-heading {
  width: var(--list-table-action-width, 8rem);
  text-align: right;
}

.list-table__action-cell {
  width: var(--list-table-action-width, 8rem);
  text-align: right;
}

.list-table__action-link {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: #64748b;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.list-table__action-link:hover {
  background: rgba(37, 99, 235, 0.07);
  color: #2563eb;
  transform: translateX(0.1rem);
}
.list-table__action-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}
.list-table__action-link svg {
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
}

/* =========================================================
   TABLE BADGES
========================================================= */
.status-badge,
.priority-badge {
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border-radius: 999rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

/* ---------------- STATUS BADGES ---------------- */
.status-badge--new {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
}

.status-badge--open {
  color: #166534;
  background: #ecfdf5;
  border: 0.1rem solid #bbf7d0;
}

.status-badge--progress {
  color: #9a3412;
  background: #fff7ed;
  border: 0.1rem solid #fed7aa;
}

.status-badge--closed {
  color: #64748b;
  background: #f1f5f9;
  border: 0.1rem solid #e2e8f0;
}

/* ---------------- PRIORITY BADGES ---------------- */
.priority-badge {
  color: #334155;
}
.priority-badge::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.7rem;
  border-radius: 999rem;
}

.priority-badge--high {
  color: #b91c1c;
}
.priority-badge--high::before {
  background: #dc2626;
}

.priority-badge--medium {
  color: #92400e;
}
.priority-badge--medium::before {
  background: #f59e0b;
}

.priority-badge--low {
  color: #64748b;
}
.priority-badge--low::before {
  background: #94a3b8;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 68rem) {
  .list-table-wrapper {
    padding: 1.6rem;
  }
  .list-table {
    --list-table-min-width: 76rem;
  }
  .list-table th,
  .list-table td {
    padding: 1.2rem;
    font-size: 1.25rem;
  }
}
.app-feedback {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding: 1.2rem 1.5rem;
  border: 0.1rem solid transparent;
  border-radius: 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
}
.app-feedback[hidden] {
  display: none;
}

/* =========================================================
   ICON
========================================================= */
.app-feedback__icon {
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999rem;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

/* =========================================================
   MESSAGE
========================================================= */
.app-feedback__message {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

/* =========================================================
   SUCCESS
========================================================= */
.app-feedback--success {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}
.app-feedback--success .app-feedback__icon {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

/* =========================================================
   ERROR
========================================================= */
.app-feedback--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
.app-feedback--error .app-feedback__icon {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

/* =========================================================
   WARNING
========================================================= */
.app-feedback--warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #f97316;
}
.app-feedback--warning .app-feedback__icon {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

/* =========================================================
   INFORMATION
========================================================= */
.app-feedback--info {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
}
.app-feedback--info .app-feedback__icon {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 620px) {
  .app-feedback {
    align-items: flex-start;
    padding: 1.2rem 1.3rem;
  }
  .app-feedback__icon {
    margin-top: 0.05rem;
  }
}
/* =========================================================
   NOTIFICATION LIST
========================================================= */
.notification-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.notification-list--compact .notification-item__main {
  min-height: 7.6rem;
  padding: 1.2rem 0.8rem 1.2rem 1.4rem;
}
.notification-list--compact .notification-item__body {
  max-width: 25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   NOTIFICATION ITEM
========================================================= */
.notification-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: stretch;
  min-width: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item:hover {
  background: #eff6ff;
}

.notification-item--unread {
  background: rgba(37, 99, 235, 0.045);
}

.notification-item--unread:hover {
  background: rgba(37, 99, 235, 0.075);
}

/* =========================================================
   MAIN CLICKABLE AREA
========================================================= */
.notification-item__main {
  width: 100%;
  min-width: 0;
  min-height: 8.4rem;
  display: grid;
  grid-template-columns: 0.8rem 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  flex: 1;
  padding: 1.4rem 0.8rem 1.4rem 1.6rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.notification-item__main:focus-visible {
  position: relative;
  z-index: 2;
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}
.notification-item__main:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* =========================================================
   UNREAD INDICATOR
========================================================= */
.notification-item__unread-dot {
  width: 0.7rem;
  height: 0.7rem;
  display: block;
  border-radius: 50%;
  background: #2563eb;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.notification-item--unread .notification-item__unread-dot {
  opacity: 1;
  transform: scale(1);
}
.notification-item--unread .notification-item__title {
  color: #0f172a;
  font-weight: 800;
}

/* =========================================================
   TYPE ICON
========================================================= */
.notification-item__icon {
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 1.2rem;
  background: rgba(37, 99, 235, 0.12);
}
.notification-item__icon img {
  width: 2rem;
  height: 2rem;
  opacity: 0.82;
}

.notification-item__icon--new-ticket,
.notification-item__icon--information {
  background: rgba(37, 99, 235, 0.12);
}

.notification-item__icon--new-message,
.notification-item__icon--software-update {
  background: #f5f3ff;
}

.notification-item__icon--internal-note,
.notification-item__icon--maintenance {
  background: #fff7ed;
}

.notification-item__icon--service-interruption {
  background: #fef2f2;
}

/* =========================================================
   CONTENT
========================================================= */
.notification-item__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.notification-item__title {
  display: block;
  min-width: 0;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-item__body {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* =========================================================
   TIMESTAMP
========================================================= */
.notification-item__time {
  align-self: start;
  flex-shrink: 0;
  padding-top: 0.15rem;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

/* =========================================================
   DISMISS BUTTON
========================================================= */
.notification-item__dismiss {
  width: 3.4rem;
  min-width: 3.4rem;
  min-height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border: 0;
  border-left: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font: inherit;
  cursor: pointer;
  opacity: 0.6;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.notification-item__dismiss span {
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
}
.notification-item__dismiss:hover {
  border-left-color: rgba(148, 163, 184, 0.24);
  background: #fef2f2;
  color: #b91c1c;
  opacity: 1;
}
.notification-item__dismiss:focus-visible {
  position: relative;
  z-index: 2;
  opacity: 1;
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}
.notification-item__dismiss:disabled {
  cursor: wait;
  opacity: 0.4;
}

/* =========================================================
   LOADING STATE
========================================================= */
.notification-list__loading {
  display: flex;
  flex-direction: column;
}

.notification-list__skeleton {
  min-height: 7.6rem;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.notification-list__skeleton:last-child {
  border-bottom: 0;
}

.notification-list__skeleton-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.2rem;
  background: linear-gradient(90deg, #f8fbff 25%, #eff6ff 50%, #f8fbff 75%);
  background-size: 200% 100%;
  animation: notification-skeleton-loading 1.3s infinite;
}

.notification-list__skeleton-content {
  width: min(100%, 25rem);
  height: 3.6rem;
  border-radius: 0.8rem;
  background: linear-gradient(90deg, #f8fbff 25%, #eff6ff 50%, #f8fbff 75%);
  background-size: 200% 100%;
  animation: notification-skeleton-loading 1.3s infinite;
}

@keyframes notification-skeleton-loading {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
/* =========================================================
   EMPTY AND ERROR STATES
========================================================= */
.notification-list__empty,
.notification-list__error {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.8rem 2rem;
  text-align: center;
}
.notification-list__empty p,
.notification-list__error p {
  margin: 0;
  color: #64748b;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.5;
}

.notification-list__empty img {
  width: 3rem;
  height: 3rem;
  opacity: 0.35;
}

.notification-list__error p {
  color: #b91c1c;
}

.notification-list__retry {
  min-height: 3.6rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999rem;
  background: #ffffff;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.notification-list__retry:hover {
  border-color: rgba(100, 116, 139, 0.46);
  background: #eff6ff;
}
.notification-list__retry:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 560px) {
  .notification-item__main {
    grid-template-columns: 0.7rem 3.8rem minmax(0, 1fr);
    gap: 1rem;
    padding-left: 1.2rem;
  }
  .notification-item__icon {
    width: 3.8rem;
    height: 3.8rem;
  }
  .notification-item__time {
    grid-column: 3;
    margin-top: -0.2rem;
  }
  .notification-item__dismiss {
    width: 3.2rem;
    min-width: 3.2rem;
  }
}
/* =========================================================
   NOTIFICATION DROPDOWN
========================================================= */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 1.1rem);
  right: 0;
  z-index: calc(900 + 30);
  width: min(40rem, 100vw - 2rem);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 2rem 5rem rgba(15, 23, 42, 0.15), 0 0.6rem 1.8rem rgba(15, 23, 42, 0.07);
  transform-origin: top right;
  animation: notification-dropdown-open 0.18s ease;
}

.notification-dropdown[hidden] {
  display: none !important;
}

.notification-dropdown.is-open {
  display: block;
}

@keyframes notification-dropdown-open {
  from {
    opacity: 0;
    transform: translateY(-0.5rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* =========================================================
   HEADER
========================================================= */
.notification-dropdown__header {
  min-height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.4rem 1.4rem 1.4rem 1.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
}

.notification-dropdown__heading {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.notification-dropdown__title {
  margin: 0;
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
}

.notification-dropdown__summary {
  margin: 0;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 650;
  white-space: nowrap;
}

.notification-dropdown__summary span {
  color: #2563eb;
  font-weight: 800;
}

.notification-dropdown__close {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0;
  border-radius: 999rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.notification-dropdown__close span {
  font-size: 2rem;
  line-height: 1;
}
.notification-dropdown__close:hover {
  background: #eff6ff;
  color: #0f172a;
}
.notification-dropdown__close:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

/* =========================================================
   LIST AREA
========================================================= */
.notification-dropdown__list {
  max-height: 38rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.46) transparent;
}

/* =========================================================
   FOOTER
========================================================= */
.notification-dropdown__footer {
  min-height: 5.2rem;
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  background: #f8fbff;
}

.notification-dropdown__footer-action {
  width: 100%;
  min-height: 5.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 1.6rem;
  border: 0;
  background: transparent;
  color: #2563eb;
  text-decoration: none;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.notification-dropdown__footer-action img {
  width: 1.6rem;
  height: 1.6rem;
  opacity: 0.75;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.notification-dropdown__footer-action:hover {
  background: rgba(37, 99, 235, 0.12);
}
.notification-dropdown__footer-action:hover img {
  opacity: 1;
  transform: translateX(0.2rem);
}
.notification-dropdown__footer-action:focus-visible {
  position: relative;
  z-index: 2;
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}
.notification-dropdown__footer-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 760px) {
  .notification-dropdown {
    position: fixed;
    top: calc(7.8rem + 0.8rem);
    right: 1.2rem;
    left: 1.2rem;
    width: auto;
    max-height: calc(100vh - 7.8rem - 2rem);
  }
  .notification-dropdown__list {
    max-height: calc(100vh - 7.8rem - 14rem);
  }
}
@media (max-width: 420px) {
  .notification-dropdown {
    right: 0.8rem;
    left: 0.8rem;
    border-radius: 1.5rem;
  }
  .notification-dropdown__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
  .notification-dropdown__header {
    min-height: 7rem;
  }
}
/* =========================================================
   NOTIFICATION COMPOSE MODAL
========================================================= */
.notification-compose-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 160ms ease, visibility 160ms ease;
}
.notification-compose-modal[hidden] {
  display: none;
}
.notification-compose-modal.is-open {
  visibility: visible;
  opacity: 1;
}

/* =========================================================
   BACKDROP
========================================================= */
.notification-compose-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(2px);
  cursor: default;
}

/* =========================================================
   DIALOG
========================================================= */
.notification-compose-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(92vw, 820px);
  max-height: min(90vh, 780px);
  overflow: hidden;
  background: #ffffff;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.6rem;
  box-shadow: 0 2rem 6rem rgba(15, 23, 42, 0.24), 0 0.4rem 1.4rem rgba(15, 23, 42, 0.08);
  transform: translateY(0.75rem) scale(0.985);
  transition: transform 160ms ease;
}

.notification-compose-modal.is-open .notification-compose-modal__dialog {
  transform: translateY(0) scale(1);
}

/* =========================================================
   HEADER
========================================================= */
.notification-compose-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 2rem 2.4rem 1.8rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}

.notification-compose-modal__heading {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  min-width: 0;
}
.notification-compose-modal__heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.35;
}
.notification-compose-modal__heading p {
  max-width: 54rem;
  margin: 0.45rem 0 0;
  color: #64748b;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.55;
}

.notification-compose-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 1rem;
}
.notification-compose-modal__icon img {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
}

.notification-compose-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 0.8rem;
  font: inherit;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.notification-compose-modal__close:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
}
.notification-compose-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}
.notification-compose-modal__close:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* =========================================================
   FORM
========================================================= */
.notification-compose-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  padding: 2rem 2.4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notification-compose-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.notification-compose-form__field--disabled {
  opacity: 0.58;
}

.notification-compose-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

/* =========================================================
   LABELS AND HELP TEXT
========================================================= */
.notification-compose-form__label {
  color: #334155;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}
.notification-compose-form__label span {
  color: #b91c1c;
}

.notification-compose-form__field-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.notification-compose-form__field-meta small {
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}

.notification-compose-form__counter {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
}

.notification-compose-form__field > small {
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}

/* =========================================================
   CONTROLS
========================================================= */
.notification-compose-form__input,
.notification-compose-form__textarea,
.notification-compose-form__select {
  width: 100%;
  padding: 1.15rem 1.3rem;
  color: #0f172a;
  background: #ffffff;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 0.9rem;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1.5;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.notification-compose-form__input::placeholder,
.notification-compose-form__textarea::placeholder,
.notification-compose-form__select::placeholder {
  color: #7c8ba1;
}
.notification-compose-form__input:hover:not(:disabled),
.notification-compose-form__textarea:hover:not(:disabled),
.notification-compose-form__select:hover:not(:disabled) {
  border-color: rgba(100, 116, 139, 0.46);
}
.notification-compose-form__input:focus,
.notification-compose-form__textarea:focus,
.notification-compose-form__select:focus {
  border-color: rgba(37, 99, 235, 0.62);
  outline: none;
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}
.notification-compose-form__input:disabled,
.notification-compose-form__textarea:disabled,
.notification-compose-form__select:disabled {
  color: #64748b;
  background: #f8fbff;
  cursor: not-allowed;
}

.notification-compose-form__input,
.notification-compose-form__select {
  min-height: 4.6rem;
}

.notification-compose-form__textarea {
  min-height: 15rem;
  resize: vertical;
}

.notification-compose-form__select {
  appearance: auto;
}

.notification-compose-form__control--invalid {
  border-color: #b91c1c;
}
.notification-compose-form__control--invalid:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 0.3rem rgba(185, 28, 28, 0.13);
}

/* =========================================================
   VALIDATION AND FEEDBACK
========================================================= */
.notification-compose-form__error {
  margin: 0;
  color: #b91c1c;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.notification-compose-form__error[hidden] {
  display: none;
}

.notification-compose-form__feedback {
  margin: 0;
  padding: 1.1rem 1.3rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 0.1rem solid rgba(185, 28, 28, 0.22);
  border-radius: 0.9rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
}

.notification-compose-form__feedback[hidden] {
  display: none;
}

/* =========================================================
   ACTIONS
========================================================= */
.notification-compose-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin: 0.5rem -2.4rem -2rem;
  padding: 1.5rem 2.4rem;
  background: #f8fbff;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
}

.notification-compose-form__actions .btn {
  min-width: 13rem;
  min-height: 4.4rem;
}

.notification-compose-form__submit-label,
.notification-compose-form__submit-loading {
  align-items: center;
  justify-content: center;
}

.notification-compose-form__submit-label {
  display: inline-flex;
}

.notification-compose-form__submit-loading {
  display: inline-flex;
}

.notification-compose-form__submit-label[hidden],
.notification-compose-form__submit-loading[hidden] {
  display: none;
}

#notificationComposeSubmitButton[data-loading=true] {
  cursor: wait;
}

/* =========================================================
   BODY SCROLL LOCK
========================================================= */
body.notification-compose-is-open {
  overflow: hidden;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .notification-compose-modal__dialog {
    width: min(94vw, 760px);
  }
}
@media (max-width: 640px) {
  .notification-compose-modal {
    align-items: flex-end;
    padding: 0;
  }
  .notification-compose-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 1rem);
    border-radius: 1.6rem 1.6rem 0 0;
    transform: translateY(1.5rem);
  }
  .notification-compose-modal.is-open .notification-compose-modal__dialog {
    transform: translateY(0);
  }
  .notification-compose-modal__header {
    padding: 1.6rem 1.4rem 1.4rem;
  }
  .notification-compose-modal__heading {
    gap: 1rem;
  }
  .notification-compose-modal__heading h2 {
    font-size: 1.6rem;
  }
  .notification-compose-modal__heading p {
    font-size: 1.15rem;
  }
  .notification-compose-modal__icon {
    width: 3.6rem;
    height: 3.6rem;
  }
  .notification-compose-form {
    gap: 1.5rem;
    padding: 1.6rem 1.4rem;
  }
  .notification-compose-form__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .notification-compose-form__textarea {
    min-height: 13rem;
  }
  .notification-compose-form__actions {
    position: sticky;
    bottom: -1.6rem;
    z-index: 2;
    margin: 0 -1.4rem -1.6rem;
    padding: 1.4rem;
  }
  .notification-compose-form__actions .btn {
    flex: 1;
    min-width: 0;
  }
  .notification-compose-form__field-meta {
    gap: 0.5rem;
  }
}
/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .notification-compose-modal,
  .notification-compose-modal__dialog,
  .notification-compose-modal__close,
  .notification-compose-form__input,
  .notification-compose-form__textarea,
  .notification-compose-form__select {
    transition: none;
  }
}
/* =========================================================
   NOTICE VIEW MODAL
========================================================= */
body.notice-view-is-open {
  overflow: hidden;
}

.notice-view-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.notice-view-modal[hidden] {
  display: none !important;
}

/* =========================================================
   BACKDROP
========================================================= */
.notice-view-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(0.35rem);
}

/* =========================================================
   DIALOG
========================================================= */
.notice-view-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 60rem);
  max-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 3rem 9rem rgba(15, 23, 42, 0.24);
}

/* =========================================================
   HEADER
========================================================= */
.notice-view-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 2.6rem 2.2rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
}

.notice-view-modal__heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.notice-view-modal__heading-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}
.notice-view-modal__heading-content h2 {
  margin: 0;
  color: #0f172a;
  font-size: 2.1rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* =========================================================
   HEADER ICON
========================================================= */
.notice-view-modal__icon {
  flex: 0 0 5rem;
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border-radius: 1.6rem;
  background: rgba(37, 99, 235, 0.12);
}
.notice-view-modal__icon img {
  width: 2.3rem;
  height: 2.3rem;
}

/* =========================================================
   NOTICE TYPE
========================================================= */
.notice-view-modal__type {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999rem;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

/* =========================================================
   CLOSE ICON
========================================================= */
.notice-view-modal__close {
  flex: 0 0 4.2rem;
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.2rem;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.notice-view-modal__close svg {
  width: 2rem;
  height: 2rem;
}
.notice-view-modal__close:hover {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}
.notice-view-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

/* =========================================================
   TYPE VARIANTS
========================================================= */
.notice-view-modal[data-notice-type=maintenance] .notice-view-modal__icon,
.notice-view-modal[data-notice-type=maintenance] .notice-view-modal__type {
  background: #fff7ed;
  color: #c2410c;
}

.notice-view-modal[data-notice-type=service-interruption] .notice-view-modal__icon,
.notice-view-modal[data-notice-type=service-interruption] .notice-view-modal__type {
  background: #fef2f2;
  color: #b91c1c;
}

.notice-view-modal[data-notice-type=software-update] .notice-view-modal__icon,
.notice-view-modal[data-notice-type=software-update] .notice-view-modal__type {
  background: #eff6ff;
  color: #2563eb;
}

/* =========================================================
   BODY
========================================================= */
.notice-view-modal__body {
  min-height: 0;
  padding: 2.6rem;
  overflow-y: auto;
}

/* =========================================================
   MESSAGE CARD
========================================================= */
.notice-view-modal__message-card {
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
  padding: 1.8rem 1.9rem;
  border: 0.1rem solid rgba(37, 99, 235, 0.2);
  border-radius: 1.2rem;
  background: rgba(37, 99, 235, 0.12);
}

.notice-view-modal__message-icon {
  flex: 0 0 3.8rem;
  width: 3.8rem;
  height: 3.8rem;
  display: grid;
  place-items: center;
  border-radius: 1.2rem;
  background: #ffffff;
  color: #2563eb;
}
.notice-view-modal__message-icon svg {
  width: 2rem;
  height: 2rem;
}

.notice-view-modal__message {
  margin: 0;
  padding-top: 0.65rem;
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* =========================================================
   FOOTER
========================================================= */
.notice-view-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.5rem 2.6rem;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: #f8fbff;
}

/* =========================================================
   METADATA
========================================================= */
.notice-view-modal__metadata {
  min-width: 0;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
}

.notice-view-modal__metadata-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: #ffffff;
}
.notice-view-modal__metadata-row[hidden] {
  display: none;
}

.notice-view-modal__metadata-icon {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}
.notice-view-modal__metadata-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.notice-view-modal__metadata-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.notice-view-modal__metadata-content dt {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}
.notice-view-modal__metadata-content dd {
  margin: 0;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* =========================================================
   STATUS
========================================================= */
.notice-view-modal__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
  font-size: 1.1rem;
  font-weight: 750;
}
.notice-view-modal__status::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  flex-shrink: 0;
  border-radius: 50%;
}

.notice-view-modal__status--active {
  color: #166534;
}
.notice-view-modal__status--active::before {
  background: #166534;
}

.notice-view-modal__status--inactive {
  color: #b91c1c;
}
.notice-view-modal__status--inactive::before {
  background: #b91c1c;
}

/* =========================================================
   FOOTER BUTTON
========================================================= */
.notice-view-modal__footer-action {
  flex-shrink: 0;
  min-width: 8.4rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 640px) {
  .notice-view-modal {
    align-items: end;
    padding: 1rem;
  }
  .notice-view-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 2rem);
    border-radius: 1.2rem;
  }
  .notice-view-modal__header,
  .notice-view-modal__body,
  .notice-view-modal__footer {
    padding-right: 1.6rem;
    padding-left: 1.6rem;
  }
  .notice-view-modal__header {
    padding-top: 1.8rem;
    padding-bottom: 1.6rem;
  }
  .notice-view-modal__heading {
    align-items: flex-start;
  }
  .notice-view-modal__icon {
    flex-basis: 4.4rem;
    width: 4.4rem;
    height: 4.4rem;
  }
  .notice-view-modal__heading-content h2 {
    font-size: 1.8rem;
  }
  .notice-view-modal__body {
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
  }
  .notice-view-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }
  .notice-view-modal__metadata {
    width: 100%;
    flex-direction: column;
  }
  .notice-view-modal__metadata-row {
    width: 100%;
  }
  .notice-view-modal__footer-action {
    width: 100%;
  }
}
/* =========================================================
   GLOBAL NAVBAR SEARCH
========================================================= */
.global-search {
  position: relative;
  z-index: 1;
  min-width: 0;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  /*
   * Apply the focus state to the complete search control,
   * not to the input inside it.
   */
}
.global-search:focus-within {
  border-color: rgba(37, 99, 235, 0.65);
  background: #ffffff;
  box-shadow: 0 0 0 0.3rem rgba(37, 99, 235, 0.12);
}
.global-search[aria-busy=true] {
  cursor: wait;
}
.global-search[aria-busy=true] .app-navbar__search-input {
  cursor: wait;
}

/* =========================================================
   SEARCH INPUT OVERRIDES
========================================================= */
.global-search .app-navbar__search-input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  /*
   * Prevent the browser from drawing the rectangular
   * focus outline inside the navbar search component.
   */
}
.global-search .app-navbar__search-input:focus, .global-search .app-navbar__search-input:focus-visible {
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
}

/* =========================================================
   SEARCH ACTION
========================================================= */
.global-search .app-navbar__search-action {
  flex: 0 0 4rem;
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  margin-right: 0.35rem;
  border: 0.1rem solid transparent;
  border-radius: 1rem;
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.global-search .app-navbar__search-action img {
  width: 1.55rem;
  height: 1.55rem;
  opacity: 0.72;
  transition: opacity 160ms ease, transform 160ms ease;
}
.global-search .app-navbar__search-action:hover {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.12);
}
.global-search .app-navbar__search-action:hover img {
  opacity: 1;
  transform: translateX(0.15rem);
}
.global-search .app-navbar__search-action:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 0.3rem rgba(37, 99, 235, 0.1);
}
.global-search .app-navbar__search-action:active {
  transform: scale(0.96);
}
.global-search .app-navbar__search-action:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* =========================================================
   OPEN STATE
========================================================= */
.global-search--open {
  z-index: 1750;
  border-color: rgba(37, 99, 235, 0.65);
  background: #ffffff;
  box-shadow: 0 0 0 0.3rem rgba(37, 99, 235, 0.12);
}

/* =========================================================
   DROPDOWN
========================================================= */
.global-search__dropdown {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 0;
  z-index: 1750;
  width: min(60rem, 100vw - 2rem);
  max-height: min(72vh, 58rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 2.6rem 7rem rgba(15, 23, 42, 0.22);
  transform-origin: top left;
  animation: global-search-dropdown-in 0.16s ease-out;
}
.global-search__dropdown[hidden] {
  display: none !important;
}

/* =========================================================
   STATUS MESSAGE
========================================================= */
.global-search__status {
  padding: 1.8rem 2rem;
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.5;
}
.global-search__status[hidden] {
  display: none !important;
}
.global-search__status[data-status=loading] {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #334155;
}
.global-search__status[data-status=loading]::before {
  content: "";
  flex: 0 0 1.9rem;
  width: 1.9rem;
  height: 1.9rem;
  border: 0.2rem solid rgba(37, 99, 235, 0.2);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: global-search-spin 0.75s linear infinite;
}
.global-search__status[data-status=hint] {
  color: #64748b;
}
.global-search__status[data-status=empty] {
  color: #334155;
}
.global-search__status[data-status=error] {
  background: #fef2f2;
  color: #b91c1c;
}

/* =========================================================
   RESULTS CONTAINER
========================================================= */
.global-search__results {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.35) transparent;
}
.global-search__results:empty {
  display: none;
}
.global-search__results::-webkit-scrollbar {
  width: 0.8rem;
}
.global-search__results::-webkit-scrollbar-track {
  background: transparent;
}
.global-search__results::-webkit-scrollbar-thumb {
  border: 0.2rem solid transparent;
  border-radius: 999rem;
  background: rgba(100, 116, 139, 0.32);
  background-clip: padding-box;
}

/* =========================================================
   RESULT GROUP
========================================================= */
.global-search__group {
  padding: 0.9rem;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.global-search__group:first-child {
  border-top: 0;
}

.global-search__group-title {
  margin: 0;
  padding: 0.8rem 1rem;
  color: #64748b;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.065em;
}

.global-search__group-results {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* =========================================================
   INDIVIDUAL RESULT
========================================================= */
.global-search__result {
  min-width: 0;
  min-height: 6.2rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.3rem;
  padding: 1rem 1.2rem;
  border: 0.1rem solid transparent;
  border-radius: 1.2rem;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.global-search__result:hover, .global-search__result.global-search__result--active {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 0.4rem 1.2rem rgba(37, 99, 235, 0.07);
  transform: translateX(0.15rem);
}
.global-search__result:hover .global-search__result-arrow, .global-search__result.global-search__result--active .global-search__result-arrow {
  border-color: rgba(37, 99, 235, 0.2);
  background: #ffffff;
  color: #2563eb;
  transform: translateX(0.15rem);
}
.global-search__result:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

/* =========================================================
   RESULT TYPE MARKER
========================================================= */
.global-search__result-marker {
  flex: 0 0 4.2rem;
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  border-radius: 1.2rem;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

/* =========================================================
   RESULT CONTENT
========================================================= */
.global-search__result-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.global-search__result-title {
  overflow: hidden;
  color: #0f172a;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search__result-subtitle {
  overflow: hidden;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   RESULT OPEN BUTTON
========================================================= */
.global-search__result-arrow {
  flex: 0 0 3.4rem;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: #f8fbff;
  color: #334155;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

/* =========================================================
   KEYBOARD INSTRUCTIONS
========================================================= */
.global-search__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  padding: 1.2rem 1.5rem;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: #f8fbff;
  color: #334155;
  font-size: 1rem;
  font-weight: 700;
}
.global-search__footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.global-search__footer kbd {
  min-width: 2.6rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.65rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-bottom-width: 0.2rem;
  border-radius: 0.65rem;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 0.2rem 0.4rem rgba(15, 23, 42, 0.06);
}

/* =========================================================
   SEARCH ACTION LOADING STATE
========================================================= */
.app-navbar__search-action--loading {
  cursor: wait;
}
.app-navbar__search-action--loading img {
  animation: global-search-spin 0.75s linear infinite;
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes global-search-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-0.6rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes global-search-spin {
  to {
    transform: rotate(360deg);
  }
}
/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media (max-width: 880px) {
  .global-search__dropdown {
    width: min(54rem, 100vw - 3.2rem);
  }
}
/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media (max-width: 640px) {
  .global-search__dropdown {
    position: fixed;
    top: 7.2rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    max-height: calc(100vh - 8.2rem);
    transform-origin: top center;
  }
  .global-search__footer {
    display: none;
  }
  .global-search__group {
    padding: 0.7rem;
  }
  .global-search__result {
    min-height: 6rem;
    padding: 1rem;
  }
  .global-search__result-marker {
    flex-basis: 3.8rem;
    width: 3.8rem;
    height: 3.8rem;
  }
  .global-search__result-arrow {
    flex-basis: 3.2rem;
    width: 3.2rem;
    height: 3.2rem;
  }
}
/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .global-search__dropdown,
  .global-search__status::before,
  .app-navbar__search-action--loading img {
    animation: none;
  }
  .global-search__result,
  .global-search__result-arrow,
  .app-navbar__search-action {
    transition: none;
  }
}
/* =========================================================
   CHANGE PASSWORD MODAL
========================================================= */
html.change-password-modal-is-open {
  overflow: hidden;
}

.change-password-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.change-password-modal[hidden] {
  display: none;
}

/* =========================================================
   BACKDROP
========================================================= */
.change-password-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(0.3rem);
}

/* =========================================================
   DIALOG
========================================================= */
.change-password-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 56rem);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 2.6rem 8rem rgba(15, 23, 42, 0.3);
  scrollbar-width: thin;
}

/* =========================================================
   HEADER
========================================================= */
.change-password-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.4rem 2.4rem 2rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}

.change-password-modal__heading {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  min-width: 0;
}

.change-password-modal__icon {
  flex: 0 0 4.6rem;
  width: 4.6rem;
  height: 4.6rem;
  display: grid;
  place-items: center;
  border-radius: 1.3rem;
  background: rgba(37, 99, 235, 0.09);
  color: #2563eb;
}
.change-password-modal__icon svg {
  width: 2.3rem;
  height: 2.3rem;
}

.change-password-modal__heading-content {
  min-width: 0;
}
.change-password-modal__heading-content h2 {
  margin: 0;
  color: #0f172a;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.change-password-modal__heading-content p {
  max-width: 40rem;
  margin: 0.65rem 0 0;
  color: #64748b;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
}

.change-password-modal__close {
  flex: 0 0 3.8rem;
  width: 3.8rem;
  height: 3.8rem;
  display: grid;
  place-items: center;
  margin-top: -0.4rem;
  margin-right: -0.4rem;
  border: 0;
  border-radius: 999rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.change-password-modal__close svg {
  width: 2rem;
  height: 2rem;
}
.change-password-modal__close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}
.change-password-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

/* =========================================================
   FORM
========================================================= */
.change-password-modal__form {
  display: grid;
  gap: 1.7rem;
  padding: 2.2rem 2.4rem 2.4rem;
}

/* =========================================================
   GENERAL FEEDBACK
========================================================= */
.change-password-modal__feedback {
  padding: 1.2rem 1.4rem;
  border: 0.1rem solid #fecdca;
  border-radius: 1rem;
  background: #fff6f5;
  color: #912018;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.45;
}
.change-password-modal__feedback[hidden] {
  display: none;
}

/* =========================================================
   FORM FIELDS
========================================================= */
.change-password-modal__field {
  display: grid;
  gap: 0.75rem;
}
.change-password-modal__field label {
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.3;
}

.change-password-modal__input-wrapper {
  position: relative;
}

.change-password-modal__input-wrapper input {
  width: 100%;
  min-height: 4.7rem;
  padding: 0 5rem 0 1.4rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 550;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.change-password-modal__input-wrapper input::placeholder {
  color: #64748b;
  opacity: 0.8;
}
.change-password-modal__input-wrapper input:hover {
  border-color: rgba(37, 99, 235, 0.38);
}
.change-password-modal__input-wrapper input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}
.change-password-modal__input-wrapper input[aria-invalid=true] {
  border-color: #d92d20;
  background: #fffafa;
  box-shadow: 0 0 0 0.3rem rgba(217, 45, 32, 0.1);
}
.change-password-modal__input-wrapper input:disabled {
  background: rgba(15, 23, 42, 0.035);
  cursor: not-allowed;
  opacity: 0.75;
}

/* =========================================================
   PASSWORD VISIBILITY BUTTON
========================================================= */
.change-password-modal__visibility {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, background-color 160ms ease;
}
.change-password-modal__visibility svg {
  width: 1.9rem;
  height: 1.9rem;
}
.change-password-modal__visibility:hover {
  background: rgba(15, 23, 42, 0.055);
  color: #2563eb;
}
.change-password-modal__visibility:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.3rem rgba(37, 99, 235, 0.1);
}
.change-password-modal__visibility[aria-pressed=true] {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

/* =========================================================
   FIELD ERRORS
========================================================= */
.change-password-modal__error {
  margin: 0;
  color: #b42318;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.4;
}
.change-password-modal__error[hidden] {
  display: none;
}

/* =========================================================
   PASSWORD REQUIREMENTS
========================================================= */
.change-password-modal__requirements {
  padding: 1.4rem 1.5rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.025);
}
.change-password-modal__requirements h3 {
  margin: 0 0 1rem;
  color: #334155;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}
.change-password-modal__requirements ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.change-password-modal__requirements li {
  position: relative;
  min-height: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}
.change-password-modal__requirements li::before {
  content: "";
  flex: 0 0 1.65rem;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.05rem;
  border: 0.15rem solid rgba(148, 163, 184, 0.24);
  border-radius: 999rem;
  background: #ffffff;
}
.change-password-modal__requirements li::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  width: 0.65rem;
  height: 0.35rem;
  border-left: 0.15rem solid transparent;
  border-bottom: 0.15rem solid transparent;
  transform: rotate(-45deg);
}
.change-password-modal__requirements li.is-valid {
  color: #166534;
}
.change-password-modal__requirements li.is-valid::before {
  border-color: #16a34a;
  background: #16a34a;
}
.change-password-modal__requirements li.is-valid::after {
  border-color: #ffffff;
}
.change-password-modal__requirements li.is-invalid {
  color: #b42318;
}
.change-password-modal__requirements li.is-invalid::before {
  border-color: #d92d20;
  background: #fff6f5;
}

/* =========================================================
   ACTIONS
========================================================= */
.change-password-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.3rem;
  padding-top: 1.9rem;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.change-password-modal__footer .btn {
  min-width: 13.5rem;
}
.change-password-modal__footer .btn svg {
  width: 1.8rem;
  height: 1.8rem;
}

#changePasswordSubmitButton:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 620px) {
  .change-password-modal {
    align-items: end;
    padding: 1rem;
  }
  .change-password-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 1rem);
    border-radius: 1.8rem 1.8rem 0 0;
  }
  .change-password-modal__header {
    padding: 2rem 1.8rem 1.7rem;
  }
  .change-password-modal__form {
    padding: 1.8rem 1.8rem 2rem;
  }
  .change-password-modal__requirements ul {
    grid-template-columns: 1fr;
  }
  .change-password-modal__footer {
    display: grid;
    grid-template-columns: 1fr;
  }
  .change-password-modal__footer .btn {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 420px) {
  .change-password-modal {
    padding: 0;
  }
  .change-password-modal__dialog {
    max-height: 100vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }
  .change-password-modal__icon {
    flex-basis: 4.2rem;
    width: 4.2rem;
    height: 4.2rem;
  }
  .change-password-modal__heading-content h2 {
    font-size: 1.8rem;
  }
  .change-password-modal__heading-content p {
    font-size: 1.15rem;
  }
}
/* =========================================================
   USER PASSWORD MODAL

   Shared by:
   - self-service password change;
   - administrator password reset.
========================================================= */
html.user-password-modal-is-open {
  overflow: hidden;
}

.user-password-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.user-password-modal[hidden] {
  display: none;
}

/* =========================================================
   BACKDROP
========================================================= */
.user-password-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(0.3rem);
}

/* =========================================================
   DIALOG
========================================================= */
.user-password-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 56rem);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 2.6rem 8rem rgba(15, 23, 42, 0.3);
  scrollbar-width: thin;
}

/* =========================================================
   HEADER
========================================================= */
.user-password-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.4rem 2.4rem 2rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}

.user-password-modal__heading {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  min-width: 0;
}

.user-password-modal__icon {
  flex: 0 0 4.6rem;
  width: 4.6rem;
  height: 4.6rem;
  display: grid;
  place-items: center;
  border-radius: 1.3rem;
  background: rgba(37, 99, 235, 0.09);
  color: #2563eb;
}
.user-password-modal__icon svg {
  width: 2.3rem;
  height: 2.3rem;
}

.user-password-modal__heading-content {
  min-width: 0;
}
.user-password-modal__heading-content h2 {
  margin: 0;
  color: #0f172a;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.user-password-modal__heading-content p {
  max-width: 41rem;
  margin: 0.65rem 0 0;
  color: #64748b;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
}
.user-password-modal__heading-content strong {
  color: #334155;
  font-weight: 750;
}

.user-password-modal__close {
  flex: 0 0 3.8rem;
  width: 3.8rem;
  height: 3.8rem;
  display: grid;
  place-items: center;
  margin-top: -0.4rem;
  margin-right: -0.4rem;
  border: 0;
  border-radius: 999rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.user-password-modal__close svg {
  width: 2rem;
  height: 2rem;
}
.user-password-modal__close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}
.user-password-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

/* =========================================================
   FORM
========================================================= */
.user-password-modal__form {
  display: grid;
  gap: 1.7rem;
  padding: 2.2rem 2.4rem 2.4rem;
}

/* =========================================================
   GENERAL FEEDBACK
========================================================= */
.user-password-modal__feedback {
  padding: 1.2rem 1.4rem;
  border: 0.1rem solid #fecdca;
  border-radius: 1rem;
  background: #fff6f5;
  color: #912018;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.45;
}
.user-password-modal__feedback[hidden] {
  display: none;
}

/* =========================================================
   FORM FIELDS
========================================================= */
.user-password-modal__field {
  display: grid;
  gap: 0.75rem;
}
.user-password-modal__field label {
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.3;
}

.user-password-modal__input-wrapper {
  position: relative;
}

.user-password-modal__input-wrapper input {
  width: 100%;
  min-height: 4.7rem;
  padding: 0 5rem 0 1.4rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 550;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.user-password-modal__input-wrapper input::placeholder {
  color: #64748b;
  opacity: 0.8;
}
.user-password-modal__input-wrapper input:hover {
  border-color: rgba(37, 99, 235, 0.38);
}
.user-password-modal__input-wrapper input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}
.user-password-modal__input-wrapper input[aria-invalid=true] {
  border-color: #d92d20;
  background: #fffafa;
  box-shadow: 0 0 0 0.3rem rgba(217, 45, 32, 0.1);
}
.user-password-modal__input-wrapper input:disabled {
  background: rgba(15, 23, 42, 0.035);
  cursor: not-allowed;
  opacity: 0.75;
}

/* =========================================================
   PASSWORD VISIBILITY BUTTON
========================================================= */
.user-password-modal__visibility {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, background-color 160ms ease;
}
.user-password-modal__visibility svg {
  width: 1.9rem;
  height: 1.9rem;
}
.user-password-modal__visibility:hover {
  background: rgba(15, 23, 42, 0.055);
  color: #2563eb;
}
.user-password-modal__visibility:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.3rem rgba(37, 99, 235, 0.1);
}
.user-password-modal__visibility[aria-pressed=true] {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

/* =========================================================
   FIELD ERRORS
========================================================= */
.user-password-modal__error {
  margin: 0;
  color: #b42318;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.4;
}
.user-password-modal__error[hidden] {
  display: none;
}

/* =========================================================
   PASSWORD REQUIREMENTS
========================================================= */
.user-password-modal__requirements {
  padding: 1.4rem 1.5rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.025);
}
.user-password-modal__requirements h3 {
  margin: 0 0 1rem;
  color: #334155;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}
.user-password-modal__requirements ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.user-password-modal__requirements li {
  position: relative;
  min-height: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}
.user-password-modal__requirements li::before {
  content: "";
  flex: 0 0 1.65rem;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.05rem;
  border: 0.15rem solid rgba(148, 163, 184, 0.24);
  border-radius: 999rem;
  background: #ffffff;
}
.user-password-modal__requirements li::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  width: 0.65rem;
  height: 0.35rem;
  border-left: 0.15rem solid transparent;
  border-bottom: 0.15rem solid transparent;
  transform: rotate(-45deg);
}
.user-password-modal__requirements li.is-valid {
  color: #166534;
}
.user-password-modal__requirements li.is-valid::before {
  border-color: #16a34a;
  background: #16a34a;
}
.user-password-modal__requirements li.is-valid::after {
  border-color: #ffffff;
}
.user-password-modal__requirements li.is-invalid {
  color: #b42318;
}
.user-password-modal__requirements li.is-invalid::before {
  border-color: #d92d20;
  background: #fff6f5;
}

/* =========================================================
   ADMINISTRATOR RESET NOTICE
========================================================= */
.user-password-modal__admin-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  border: 0.1rem solid rgba(37, 99, 235, 0.2);
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.045);
  color: #334155;
}
.user-password-modal__admin-notice svg {
  width: 2rem;
  height: 2rem;
  margin-top: 0.05rem;
  color: #2563eb;
}
.user-password-modal__admin-notice p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
}

/* =========================================================
   ACTIONS
========================================================= */
.user-password-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.3rem;
  padding-top: 1.9rem;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.user-password-modal__footer .btn {
  min-width: 13.5rem;
}
.user-password-modal__footer .btn svg {
  width: 1.8rem;
  height: 1.8rem;
}

#userPasswordSubmitButton:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 620px) {
  .user-password-modal {
    align-items: end;
    padding: 1rem;
  }
  .user-password-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 1rem);
    border-radius: 1.8rem 1.8rem 0 0;
  }
  .user-password-modal__header {
    padding: 2rem 1.8rem 1.7rem;
  }
  .user-password-modal__form {
    padding: 1.8rem 1.8rem 2rem;
  }
  .user-password-modal__requirements ul {
    grid-template-columns: 1fr;
  }
  .user-password-modal__footer {
    display: grid;
    grid-template-columns: 1fr;
  }
  .user-password-modal__footer .btn {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 420px) {
  .user-password-modal {
    padding: 0;
  }
  .user-password-modal__dialog {
    max-height: 100vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }
  .user-password-modal__icon {
    flex-basis: 4.2rem;
    width: 4.2rem;
    height: 4.2rem;
  }
  .user-password-modal__heading-content h2 {
    font-size: 1.8rem;
  }
  .user-password-modal__heading-content p {
    font-size: 1.15rem;
  }
}
/* =========================================================
   HELP DESK DASHBOARD
========================================================= */
.helpdesk-app-body {
  min-height: 100vh;
  background: radial-gradient(circle at 18% 8%, rgba(37, 99, 235, 0.08), transparent 28%), radial-gradient(circle at 88% 24%, rgba(147, 197, 253, 0.12), transparent 34%), #f8fbff;
  color: #0f172a;
}

.dashboard-layout {
  min-height: 100vh;
}

.dashboard-page {
  position: relative;
  isolation: isolate;
}
.dashboard-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(37, 99, 235, 0.026) 0.1rem, transparent 0.1rem), linear-gradient(90deg, rgba(37, 99, 235, 0.026) 0.1rem, transparent 0.1rem);
  background-size: 5.2rem 5.2rem;
  mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.24), transparent 62%);
}

.dashboard-page__header {
  margin-bottom: 2.4rem;
}

/* =========================================================
   KPI CARDS
========================================================= */
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.dashboard-kpi-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 12.4rem;
  padding: 2rem;
  overflow: hidden;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 2.2rem;
  background: #ffffff;
  box-shadow: 0 0.6rem 1.8rem rgba(15, 23, 42, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.dashboard-kpi-card:hover {
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow: 0 1rem 2.4rem rgba(15, 23, 42, 0.045);
  transform: translateY(-0.1rem);
}

.dashboard-kpi-card::after {
  content: none;
}

.dashboard-kpi-card__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 5.4rem;
  width: 5.4rem;
  height: 5.4rem;
  display: grid;
  place-items: center;
  border-radius: 1.5rem;
  box-shadow: none;
}

.dashboard-kpi-card__icon--blue {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.dashboard-kpi-card__icon--green {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
}

.dashboard-kpi-card__icon--orange {
  color: #f97316;
  background: rgba(249, 115, 22, 0.09);
}

.dashboard-kpi-card__icon--purple {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.09);
}

.dashboard-kpi-card__icon--closed {
  color: #475569;
  background: #f8fafc;
}

.dashboard-kpi-card__icon-mask {
  width: 3.6rem;
  height: 3.6rem;
  display: block;
  background-color: currentColor;
}

.dashboard-kpi-card__icon-mask--open {
  -webkit-mask: url("/assets/icons/open-ticket.svg") center/contain no-repeat;
  mask: url("/assets/icons/open-ticket.svg") center/contain no-repeat;
}

.dashboard-kpi-card__icon-mask--new {
  -webkit-mask: url("/assets/icons/new-ticket.svg") center/contain no-repeat;
  mask: url("/assets/icons/new-ticket.svg") center/contain no-repeat;
}

.dashboard-kpi-card__icon-mask--pending {
  -webkit-mask: url("/assets/icons/pending.svg") center/contain no-repeat;
  mask: url("/assets/icons/pending.svg") center/contain no-repeat;
}

.dashboard-kpi-card__icon-mask--resolved {
  -webkit-mask: url("/assets/icons/circle-check.svg") center/contain no-repeat;
  mask: url("/assets/icons/circle-check.svg") center/contain no-repeat;
}

.dashboard-kpi-card__icon-mask--closed {
  -webkit-mask: url("/assets/icons/closed-ticket.svg") center/contain no-repeat;
  mask: url("/assets/icons/closed-ticket.svg") center/contain no-repeat;
}

.dashboard-kpi-card__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.dashboard-kpi-card__label {
  margin: 0 0 0.6rem;
  color: #334155;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.2;
}

.dashboard-kpi-card__value {
  display: block;
  color: #0f172a;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.dashboard-kpi-card__trend--positive span {
  color: #16a34a;
}

.dashboard-kpi-card__trend--negative span {
  color: #dc2626;
}

/* =========================================================
   PANELS
========================================================= */
.dashboard-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(32rem, 0.95fr) minmax(32rem, 0.95fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-panel {
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 2.2rem;
  background: #ffffff;
  box-shadow: 0 0.8rem 2.4rem rgba(15, 23, 42, 0.035);
  overflow: hidden;
}

.dashboard-panel--status,
.dashboard-panel--sla {
  display: flex;
  flex-direction: column;
}

.dashboard-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 2.2rem 2.2rem 0;
}
.dashboard-panel__header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.dashboard-panel__header p {
  margin: 0.6rem 0 0;
  color: #64748b;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.45;
}

.dashboard-panel__header--inline {
  align-items: center;
}

/* =========================================================
   TICKET STATUS DISTRIBUTION
========================================================= */
.ticket-status-summary {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(24rem, 1.1fr);
  align-items: center;
  align-content: center;
  gap: 2.2rem;
  padding: 2.2rem 2.2rem 2.4rem;
}

@media (min-width: 1281px) {
  .dashboard-panel--status .ticket-status-summary {
    min-height: 28rem;
  }
}
.ticket-status-chart {
  --status-open-end: 25%;
  --status-pending-end: 50%;
  --status-resolved-end: 75%;
  position: relative;
  width: min(21rem, 100%);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  margin-inline: auto;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #3b82f6 0 var(--status-open-end), #f97316 var(--status-open-end) var(--status-pending-end), #16a34a var(--status-pending-end) var(--status-resolved-end), #94a3b8 var(--status-resolved-end) 100%);
  box-shadow: 0 0.8rem 2.2rem rgba(15, 23, 42, 0.06);
}

.ticket-status-chart--empty {
  background: #e2e8f0;
}

.ticket-status-chart::before {
  content: "";
  position: absolute;
  inset: 1.8rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 0.1rem rgba(148, 163, 184, 0.24);
}

.ticket-status-chart > span,
.ticket-status-chart > small {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.ticket-status-chart > span {
  color: #0f172a;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ticket-status-chart > small {
  color: #64748b;
  font-size: 1.3rem;
  font-weight: 650;
  line-height: 1.2;
}

.ticket-status-legend {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticket-status-legend--boxed li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.6rem;
  padding: 1rem 1.2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.2rem;
  background: rgba(37, 99, 235, 0.018);
  color: #334155;
  font-size: 1.35rem;
  line-height: 1.2;
}

.ticket-status-legend strong {
  min-width: 0;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-status-legend em {
  color: #0f172a;
  font-style: normal;
  font-weight: 800;
}

.ticket-status-legend small {
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 700;
}

.ticket-status-legend__dot {
  width: 1rem;
  height: 1rem;
  border-radius: 999rem;
}

.ticket-status-legend__dot--open {
  background: #3b82f6;
}

.ticket-status-legend__dot--pending {
  background: #f97316;
}

.ticket-status-legend__dot--resolved {
  background: #16a34a;
}

.ticket-status-legend__dot--closed {
  background: #94a3b8;
}

/* =========================================================
   OPERATIONAL OVERVIEW PANEL
========================================================= */
.sla-risk {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 1.5rem;
  padding: 2.2rem 2.2rem 2.4rem;
}

@media (min-width: 1281px) {
  .dashboard-panel--status .ticket-status-summary,
  .dashboard-panel--sla .sla-risk {
    min-height: 28rem;
  }
}
.sla-risk__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 0.1rem solid rgba(37, 99, 235, 0.16);
  border-radius: 1.2rem;
  background: rgba(37, 99, 235, 0.025);
}

.sla-risk__metric {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  min-height: 7rem;
  padding: 1.2rem 0.8rem;
  border-right: 0.1rem solid rgba(37, 99, 235, 0.14);
}
.sla-risk__metric:last-child {
  border-right: 0;
}
.sla-risk__metric strong {
  color: #2563eb;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.sla-risk__metric span {
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.sla-risk__section-title {
  color: #334155;
  font-size: 1.25rem;
  font-weight: 800;
}

.sla-risk__list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sla-risk__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 5.4rem;
  padding: 1rem 1.2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.2rem;
  background: #ffffff;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.sla-risk__item:hover {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.018);
}

.sla-risk__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 0.1rem solid rgba(37, 99, 235, 0.2);
  border-radius: 999rem;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.sla-risk__icon--danger,
.sla-risk__icon--warning {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.sla-risk__body {
  min-width: 0;
}
.sla-risk__body strong,
.sla-risk__body small {
  display: block;
}
.sla-risk__body strong {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}
.sla-risk__body small {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 600;
}

.sla-risk__badge {
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 0.1rem solid rgba(37, 99, 235, 0.22);
  border-radius: 999rem;
  background: rgba(37, 99, 235, 0.07);
  color: #1d4ed8;
  font-size: 1.2rem;
  font-weight: 800;
}

.sla-risk__badge--warning,
.sla-risk__badge--danger {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.07);
  color: #1d4ed8;
}

/* =========================================================
   PRIORITY BREAKDOWN PANEL
========================================================= */
.priority-breakdown {
  display: grid;
  gap: 1.7rem;
  padding: 2rem 2.2rem 2.4rem;
}

.priority-breakdown__item {
  display: grid;
  gap: 0.8rem;
}

.priority-breakdown__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
}
.priority-breakdown__top strong {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
}
.priority-breakdown__top strong small {
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 700;
}

.priority-breakdown__label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.priority-breakdown__dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999rem;
}

.priority-breakdown__dot--high {
  background: #dc2626;
}

.priority-breakdown__track {
  height: 0.8rem;
  overflow: hidden;
  border-radius: 999rem;
  background: #f1f5f9;
}

.priority-breakdown__bar {
  display: block;
  width: var(--priority-value, 0%);
  height: 100%;
  border-radius: inherit;
}

.priority-breakdown__bar--high {
  background: #dc2626;
}

.priority-breakdown__item p {
  margin: 0;
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 600;
}

.priority-breakdown__dot--urgent {
  background: #f7065d;
}

.priority-breakdown__dot--high {
  background: #f272a6;
}

.priority-breakdown__dot--normal {
  background: #f9cde4;
  box-shadow: inset 0 0 0 0.1rem rgba(249, 205, 228, 0.9);
}

.priority-breakdown__bar--urgent {
  background: #f7065d;
}

.priority-breakdown__bar--high {
  background: #f272a6;
}

.priority-breakdown__bar--normal {
  background: #f9cde4;
}

/* =========================================================
   LATEST TICKETS PANEL
========================================================= */
.dashboard-panel--tickets {
  overflow: hidden;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1280px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-panel--status {
    grid-column: 1/-1;
  }
}
@media (max-width: 980px) {
  .dashboard-analytics-grid {
    grid-template-columns: 1fr;
  }
  .ticket-status-summary {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-panel__header,
  .dashboard-panel__header--inline {
    align-items: flex-start;
    flex-direction: column;
  }
  .ticket-status-chart {
    width: min(19rem, 100%);
  }
  .priority-breakdown__row {
    grid-template-columns: 1fr auto;
  }
  .priority-breakdown__track {
    grid-column: 1/-1;
  }
}
/* =========================================================
   CLIENT SUPPORT DASHBOARD
========================================================= */
.client-dashboard-page {
  padding-bottom: 3rem;
}

/* =========================================================
   PAGE HEADER
========================================================= */
.client-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  margin-bottom: 2.2rem;
}

.client-dashboard-hero__content {
  min-width: 0;
}
.client-dashboard-hero__content h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.6rem, 2.2vw, 3.4rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.client-dashboard-hero__content > p:last-child {
  margin: 0.7rem 0 0;
  color: #64748b;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.5;
}

.client-dashboard-hero__eyebrow {
  margin: 0 0 0.7rem;
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1;
}

.client-dashboard-hero__action {
  flex-shrink: 0;
  min-height: 4.4rem;
  padding-inline: 1.8rem;
}

/* =========================================================
   CLIENT KPI CARDS
========================================================= */
.client-dashboard-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.client-dashboard-kpi-card {
  min-height: 11.4rem;
  padding: 1.6rem 1.8rem;
  align-items: center;
  gap: 1.5rem;
}

/*
 * Vertically centre the SVG container relative to the
 * complete KPI card, not only the title and value.
 */
.client-dashboard-kpi-card .dashboard-kpi-card__icon {
  align-self: center;
  flex: 0 0 5rem;
  width: 5rem;
  height: 5rem;
  border-radius: 1.4rem;
}

.client-dashboard-kpi-card .dashboard-kpi-card__icon-mask {
  width: 3.1rem;
  height: 3.1rem;
}

.client-dashboard-kpi-card .dashboard-kpi-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.client-dashboard-kpi-card .dashboard-kpi-card__label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 0.35rem;
  color: #334155;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}
.client-dashboard-kpi-card .dashboard-kpi-card__label small {
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.2;
}

.client-dashboard-kpi-card .dashboard-kpi-card__value {
  color: #0f172a;
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.client-dashboard-icon-mask--quota {
  -webkit-mask: url("/assets/icons/calendar.svg") center/contain no-repeat;
  mask: url("/assets/icons/calendar.svg") center/contain no-repeat;
}

/* =========================================================
   MAIN CONTENT LAYOUT
========================================================= */
.client-dashboard-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(31rem, 36rem);
  align-items: start;
  gap: 2rem;
}

.client-dashboard-panel {
  min-width: 0;
}

.client-dashboard-sidebar {
  display: grid;
  gap: 2rem;
}

/* =========================================================
   RECENT REQUESTS TABLE
========================================================= */
.client-dashboard-table-wrapper {
  padding-top: 1.7rem;
}

.client-dashboard-table {
  min-width: 72rem;
}
.client-dashboard-table th:last-child,
.client-dashboard-table td:last-child {
  width: 6.4rem;
  padding-right: 1.8rem;
  padding-left: 1rem;
  text-align: center;
}

.client-ticket-summary {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.client-ticket-summary__icon {
  flex: 0 0 4.4rem;
  width: 4.4rem;
  height: 4.4rem;
  display: grid;
  place-items: center;
  border-radius: 1.2rem;
}
.client-ticket-summary__icon > span {
  width: 2.1rem;
  height: 2.1rem;
  display: block;
  background-color: currentColor;
  -webkit-mask: url("/assets/icons/open-ticket.svg") center/contain no-repeat;
  mask: url("/assets/icons/open-ticket.svg") center/contain no-repeat;
}

.client-ticket-summary__icon--blue {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.09);
}

.client-ticket-summary__icon--orange {
  color: #f97316;
  background: rgba(249, 115, 22, 0.09);
}

.client-ticket-summary__icon--green {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.09);
}

.client-ticket-summary__icon--purple {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.09);
}

.client-ticket-summary__content {
  min-width: 0;
}

.client-ticket-summary__subject,
.client-ticket-summary__id {
  display: block;
}

.client-ticket-summary__subject {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}
.client-ticket-summary__subject:hover {
  color: #2563eb;
}
.client-ticket-summary__subject:focus-visible {
  outline: none;
  border-radius: 0.3rem;
  box-shadow: 0 0 0 0.3rem rgba(37, 99, 235, 0.1);
}

.client-ticket-summary__id {
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1;
}

.client-dashboard-table__action-cell {
  width: 6.4rem;
  padding-right: 1.8rem;
  padding-left: 1rem;
  text-align: center;
}

.client-dashboard-table__action {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-grid;
  place-items: center;
  margin-inline: auto;
  border-radius: 1rem;
  color: #475569;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.client-dashboard-table__action .btn__icon-mask {
  width: 1.4rem;
  height: 1.4rem;
}
.client-dashboard-table__action:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.07);
}
.client-dashboard-table__action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

/* =========================================================
   QUICK ACTIONS
========================================================= */
.client-dashboard-actions {
  display: grid;
  gap: 1rem;
  padding: 2rem 2.2rem 2.4rem;
}

.client-dashboard-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 6.4rem;
  padding: 0.9rem 1.2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.2rem;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.client-dashboard-action:hover {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.025);
  box-shadow: 0 0.8rem 1.8rem rgba(15, 23, 42, 0.035);
  transform: translateY(-0.05rem);
}
.client-dashboard-action:hover .client-dashboard-action__arrow {
  color: #2563eb;
  transform: translateX(0.2rem);
}
.client-dashboard-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

.client-dashboard-action__icon {
  flex: 0 0 4.2rem;
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  border-radius: 1.2rem;
}
.client-dashboard-action__icon > span:not(.client-dashboard-action__help-glyph) {
  width: 2rem;
  height: 2rem;
  display: block;
  background-color: currentColor;
}

.client-dashboard-action__icon--blue {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.09);
}

.client-dashboard-action__icon--green {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.09);
}

.client-dashboard-action__icon--purple {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.09);
}

.client-dashboard-action__mask--new {
  -webkit-mask: url("/assets/icons/new-ticket.svg") center/contain no-repeat;
  mask: url("/assets/icons/new-ticket.svg") center/contain no-repeat;
}

.client-dashboard-action__mask--tickets {
  -webkit-mask: url("/assets/icons/open-ticket.svg") center/contain no-repeat;
  mask: url("/assets/icons/open-ticket.svg") center/contain no-repeat;
}

/*
 * Uses a text glyph instead of a missing help.svg file.
 */
.client-dashboard-action__help-glyph {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 0.2rem solid currentColor;
  border-radius: 999rem;
  font-size: 1.3rem;
  font-weight: 850;
  line-height: 1;
}

.client-dashboard-action__content {
  min-width: 0;
}
.client-dashboard-action__content strong,
.client-dashboard-action__content small {
  display: block;
}
.client-dashboard-action__content strong {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}
.client-dashboard-action__content small {
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 550;
  line-height: 1.35;
}

.client-dashboard-action__arrow {
  color: #64748b;
  transition: color 160ms ease, transform 160ms ease;
}

/* =========================================================
   DISABLED QUICK ACTION
========================================================= */
.client-dashboard-action--disabled {
  width: 100%;
  appearance: none;
  text-align: left;
  font: inherit;
  cursor: not-allowed;
  opacity: 0.68;
}
.client-dashboard-action--disabled .client-dashboard-action__icon {
  background: #f1f5f9;
  color: #64748b;
}
.client-dashboard-action--disabled .client-dashboard-action__content strong,
.client-dashboard-action--disabled .client-dashboard-action__content small {
  color: #64748b;
}
.client-dashboard-action--disabled .client-dashboard-action__arrow {
  color: #94a3b8;
}
.client-dashboard-action--disabled:hover {
  border-color: rgba(148, 163, 184, 0.24);
  background: #ffffff;
  box-shadow: none;
  transform: none;
}
.client-dashboard-action--disabled:hover .client-dashboard-action__arrow {
  color: #94a3b8;
  transform: none;
}

/* =========================================================
   ANNUAL QUOTA
========================================================= */
.client-dashboard-quota__status {
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 0.1rem solid #bbf7d0;
  border-radius: 999rem;
  background: #ecfdf5;
  color: #166534;
  font-size: 1.15rem;
  font-weight: 800;
}

.client-dashboard-quota__body {
  padding: 2rem 2.2rem 2.4rem;
}

.client-dashboard-quota__usage {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  color: #334155;
  font-size: 1.2rem;
  font-weight: 600;
}
.client-dashboard-quota__usage > strong {
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 850;
  line-height: 1;
}

.client-dashboard-quota__progress {
  width: 100%;
  height: 0.9rem;
  overflow: hidden;
  border-radius: 999rem;
  background: #f1f5f9;
}

.client-dashboard-quota__bar {
  display: block;
  width: var(--quota-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
  transition: width 300ms ease;
}

.client-dashboard-quota__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1.2rem;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}
.client-dashboard-quota__meta span:last-child {
  text-align: right;
}
.client-dashboard-quota__meta strong {
  color: #334155;
  font-weight: 800;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */
.sr-only {
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  padding: 0;
  margin: -0.1rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1280px) {
  .client-dashboard-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .client-dashboard-content {
    grid-template-columns: minmax(0, 1fr) 32rem;
  }
}
@media (max-width: 1120px) {
  .client-dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .client-dashboard-content {
    grid-template-columns: 1fr;
  }
  .client-dashboard-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .client-dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .client-dashboard-hero__action {
    width: 100%;
  }
  .client-dashboard-sidebar {
    grid-template-columns: 1fr;
  }
  .client-dashboard-quota__meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .client-dashboard-quota__meta span:last-child {
    text-align: left;
  }
}
@media (max-width: 680px) {
  .client-dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }
  .client-dashboard-kpi-card {
    min-height: 10.8rem;
  }
  .client-dashboard-table-wrapper {
    padding: 1.5rem;
  }
  .client-dashboard-table {
    min-width: 68rem;
  }
}
/* =========================================================
   TICKETS PAGE
========================================================= */
.tickets-layout {
  min-height: 100vh;
}

.tickets-page {
  position: relative;
  isolation: isolate;
}
.tickets-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(37, 99, 235, 0.022) 0.1rem, transparent 0.1rem), linear-gradient(90deg, rgba(37, 99, 235, 0.022) 0.1rem, transparent 0.1rem);
  background-size: 5.2rem 5.2rem;
  mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.18), transparent 64%);
}

.tickets-page__header {
  margin-bottom: 1.8rem;
}

/* =========================================================
   TOP ACTION BAR
   Status chips + New Ticket outside the main panel
========================================================= */
.tickets-page__actionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}

.tickets-status-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.tickets-status-chip {
  min-height: 4.2rem;
  min-width: 11rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1.3rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03), 0 0.6rem 1.4rem rgba(15, 23, 42, 0.018);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.tickets-status-chip strong {
  margin-left: auto;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 850;
}
.tickets-status-chip:hover {
  border-color: rgba(37, 99, 235, 0.26);
  background: rgba(37, 99, 235, 0.035);
  color: #2563eb;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.035), 0 0.8rem 1.8rem rgba(37, 99, 235, 0.045);
}
.tickets-status-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

.tickets-status-chip--active {
  border-color: rgba(37, 99, 235, 0.42);
  background: rgba(37, 99, 235, 0.055);
  color: #2563eb;
}

.tickets-status-chip__label {
  white-space: nowrap;
}

.tickets-status-chip__dot {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  border-radius: 999rem;
}

.tickets-status-chip__dot--all {
  background: #2563eb;
}

.tickets-status-chip__dot--open {
  background: #3b82f6;
}

.tickets-status-chip__dot--resolved {
  background: #16a34a;
}

.tickets-status-chip__dot--pending {
  background: #f97316;
}

.tickets-status-chip__dot--closed {
  background: #475569;
}

/* =========================================================
   MAIN PANEL
========================================================= */
.tickets-panel {
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.6rem;
  background: #ffffff;
  box-shadow: 0 0.8rem 2.4rem rgba(15, 23, 42, 0.035), 0 0.2rem 0.6rem rgba(15, 23, 42, 0.02);
  overflow: hidden;
}

/* Keep this only for backward compatibility */
.tickets-panel__header,
.tickets-panel__summarybar {
  display: none;
}

/* =========================================================
   TOOLBAR / FILTERS
========================================================= */
.tickets-toolbar {
  display: grid;
  grid-template-columns: minmax(34rem, 1fr) auto;
  align-items: end;
  gap: 1.4rem;
  padding: 1.8rem 2.2rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: rgba(37, 99, 235, 0.012);
}

.tickets-search {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}
.tickets-search::before {
  content: "Search";
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.2;
  visibility: hidden;
}
.tickets-search input {
  width: 100%;
  min-height: 4.2rem;
  padding: 0 1.4rem 0 4.2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 500;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
}
.tickets-search input::placeholder {
  color: #7c8ba1;
}
.tickets-search input:hover {
  border-color: rgba(100, 116, 139, 0.46);
}
.tickets-search input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}

.tickets-search__icon {
  position: absolute;
  left: 1.4rem;
  bottom: 1.3rem;
  width: 1.6rem;
  height: 1.6rem;
  background: #64748b;
  -webkit-mask: url("/assets/icons/search.svg") center/contain no-repeat;
  mask: url("/assets/icons/search.svg") center/contain no-repeat;
}

.tickets-filter-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.tickets-filter {
  min-width: 13.8rem;
  display: grid;
  gap: 0.25rem;
}
.tickets-filter span {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 750;
}
.tickets-filter select {
  min-height: 4.2rem;
  width: 100%;
  padding: 0 3.6rem 0 1.2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: linear-gradient(45deg, transparent 50%, #64748b 50%) calc(100% - 1.8rem) 50%/0.55rem 0.55rem no-repeat, linear-gradient(135deg, #64748b 50%, transparent 50%) calc(100% - 1.45rem) 50%/0.55rem 0.55rem no-repeat, #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
}
.tickets-filter select:hover {
  border-color: rgba(100, 116, 139, 0.46);
}
.tickets-filter select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}

/* =========================================================
   BULK BAR
========================================================= */
.tickets-bulkbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.2rem 2.2rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: #f8fafc;
}

.tickets-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #334155;
  font-size: 1.3rem;
  font-weight: 700;
}
.tickets-checkbox input {
  width: 1.6rem;
  height: 1.6rem;
  accent-color: #2563eb;
}

.tickets-bulkbar__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.tickets-bulkbar.has-selection {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(239, 246, 255, 0.36)), #f8fafc;
}

/* =========================================================
   TABLE EXTENSIONS
   Base table comes from components/_table.scss
========================================================= */
.tickets-table-wrapper {
  padding: 1.4rem 2.2rem 2.4rem;
}

.tickets-table {
  min-width: 118rem;
}
.tickets-table th,
.tickets-table td {
  vertical-align: middle;
}
.tickets-table input[type=checkbox] {
  width: 1.6rem;
  height: 1.6rem;
  accent-color: #2563eb;
}
.tickets-table tbody tr {
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.tickets-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.022);
}
.tickets-table tbody tr.is-selected {
  background: rgba(37, 99, 235, 0.045);
}

.tickets-table__check {
  width: 4.8rem;
}

.tickets-table__actions {
  width: 7rem;
  text-align: right;
}

.tickets-assignee {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #334155;
  font-weight: 700;
}
.tickets-assignee span {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 999rem;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.1rem;
  font-weight: 800;
}

.tickets-row-action {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}
.tickets-row-action:hover {
  background: rgba(37, 99, 235, 0.055);
  color: #2563eb;
}
.tickets-row-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

/* =========================================================
   EMPTY TABLE STATE
========================================================= */
.tickets-table td.tickets-table__empty {
  height: 12rem;
  padding: 3rem 2rem;
  text-align: center;
  vertical-align: middle;
}

.tickets-table__empty strong {
  display: block;
  width: 100%;
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
}

/* =========================================================
   PAGINATION
========================================================= */
.tickets-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.6rem;
  padding: 1.6rem 2.2rem 2.2rem;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.tickets-pagination p {
  margin: 0;
  color: #64748b;
  font-size: 1.3rem;
  font-weight: 600;
}
.tickets-pagination p strong {
  color: #334155;
  font-weight: 800;
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.pagination__button,
.pagination__ellipsis {
  min-width: 3.4rem;
  height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  color: #334155;
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
}

.pagination__button {
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
}
.pagination__button:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.04);
  color: #2563eb;
}

.pagination__button--active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}
.pagination__button--active:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.pagination__button--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pagination__ellipsis {
  color: #64748b;
}

.tickets-page-size {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #64748b;
  font-size: 1.25rem;
  font-weight: 700;
}
.tickets-page-size select {
  min-height: 3.6rem;
  padding: 0 3.2rem 0 1rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 0.9rem;
  background: linear-gradient(45deg, transparent 50%, #64748b 50%) calc(100% - 1.6rem) 50%/0.5rem 0.5rem no-repeat, linear-gradient(135deg, #64748b 50%, transparent 50%) calc(100% - 1.3rem) 50%/0.5rem 0.5rem no-repeat, #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  appearance: none;
}

/* =========================================================
   CLOSED TICKETS ARCHIVE VIEW
========================================================= */
.tickets-table-view[hidden] {
  display: none !important;
}

.tickets-table-view--closed {
  animation: tickets-archive-enter 0.18s ease;
}

@keyframes tickets-archive-enter {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1280px) {
  .tickets-page__actionbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .tickets-toolbar {
    grid-template-columns: 1fr;
  }
  .tickets-filter-group {
    justify-content: flex-start;
  }
}
@media (max-width: 780px) {
  .tickets-bulkbar,
  .tickets-pagination {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .tickets-filter-group {
    display: grid;
    grid-template-columns: 1fr;
  }
  .tickets-filter {
    min-width: 0;
  }
  .tickets-page-size {
    justify-content: flex-start;
  }
}
/* =========================================================
   CLIENT TICKETS PAGE
========================================================= */
.client-tickets-page {
  position: relative;
  isolation: isolate;
  padding-bottom: 3rem;
}
.client-tickets-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(37, 99, 235, 0.022) 0.1rem, transparent 0.1rem), linear-gradient(90deg, rgba(37, 99, 235, 0.022) 0.1rem, transparent 0.1rem);
  background-size: 5.2rem 5.2rem;
  -webkit-mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.18), transparent 64%);
  mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.18), transparent 64%);
}

/* =========================================================
   SHARED PAGE HEADER
========================================================= */
.client-tickets-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  margin-bottom: 1.8rem;
}

.client-tickets-page__topbar {
  flex: 1;
  min-width: 0;
}

.client-tickets-page__header-action {
  flex-shrink: 0;
  min-height: 4.4rem;
  padding-inline: 1.8rem;
}

/* =========================================================
   TICKET PANELS
========================================================= */
.client-ticket-panel {
  min-width: 0;
  overflow: hidden;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 2.2rem;
  background: #ffffff;
  box-shadow: 0 0.8rem 2.4rem rgba(15, 23, 42, 0.035), 0 0.2rem 0.6rem rgba(15, 23, 42, 0.02);
}

.client-ticket-panel + .client-ticket-panel {
  margin-top: 1.8rem;
}

.client-ticket-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.2rem 1.6rem;
}

.client-ticket-panel__title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.client-ticket-panel__title h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.client-ticket-count {
  min-width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.8rem;
  border-radius: 999rem;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1;
}

/* =========================================================
   TOOLBAR
========================================================= */
.client-ticket-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
}

/* =========================================================
   SEARCH
========================================================= */
.client-ticket-search {
  position: relative;
  width: 24rem;
  min-width: 20rem;
  display: flex;
  align-items: center;
}

.client-ticket-search__icon {
  position: absolute;
  left: 1.35rem;
  z-index: 1;
  width: 1.25rem;
  height: 1.25rem;
  border: 0.17rem solid #64748b;
  border-radius: 50%;
  pointer-events: none;
}
.client-ticket-search__icon::after {
  content: "";
  position: absolute;
  right: -0.52rem;
  bottom: -0.28rem;
  width: 0.62rem;
  height: 0.17rem;
  border-radius: 999rem;
  background: #64748b;
  transform: rotate(45deg);
}

.client-ticket-search input {
  width: 100%;
  height: 4rem;
  padding: 0 1.4rem 0 4rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 550;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.client-ticket-search input::placeholder {
  color: #64748b;
}
.client-ticket-search input:hover {
  border-color: rgba(100, 116, 139, 0.46);
}
.client-ticket-search input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}

/* =========================================================
   STATUS FILTER TABS
========================================================= */
.client-ticket-tabs {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
}

.client-ticket-tab {
  min-height: 3.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.3rem;
  border: 0;
  border-right: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.client-ticket-tab:last-child {
  border-right: 0;
}
.client-ticket-tab:hover {
  background: rgba(37, 99, 235, 0.04);
  color: #2563eb;
}
.client-ticket-tab:focus-visible {
  position: relative;
  z-index: 1;
  outline: none;
  box-shadow: inset 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
}

.client-ticket-tab--active {
  background: rgba(37, 99, 235, 0.075);
  color: #2563eb;
  box-shadow: inset 0 -0.2rem 0 #2563eb;
}

/* =========================================================
   CLIENT TICKET TABLE
========================================================= */
.client-ticket-table-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 0 2.2rem 2.2rem;
}

.client-ticket-table {
  width: 100%;
  min-width: 72rem;
  border-collapse: separate;
  border-spacing: 0;
  color: #334155;
  font-size: 1.3rem;
}
.client-ticket-table th,
.client-ticket-table td {
  padding: 1.35rem 1.5rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.client-ticket-table th {
  background: rgba(37, 99, 235, 0.055);
  color: #334155;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.client-ticket-table th:first-child {
  border-top-left-radius: 1.2rem;
}
.client-ticket-table th:last-child {
  border-top-right-radius: 1.2rem;
}
.client-ticket-table tbody tr {
  transition: background-color 160ms ease;
}
.client-ticket-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.028);
}
.client-ticket-table tbody tr:last-child td {
  border-bottom: 0;
}
.client-ticket-table th:first-child,
.client-ticket-table td:first-child {
  width: 40%;
}
.client-ticket-table th:nth-child(2),
.client-ticket-table td:nth-child(2) {
  width: 20%;
}
.client-ticket-table th:nth-child(3),
.client-ticket-table td:nth-child(3) {
  width: 17%;
}
.client-ticket-table th:nth-child(4),
.client-ticket-table td:nth-child(4) {
  width: 17%;
}
.client-ticket-table th:last-child,
.client-ticket-table td:last-child {
  width: 7rem;
  text-align: right;
}

.client-ticket-table__action-heading {
  text-align: right;
}

.client-ticket-table__action-cell {
  padding-right: 1.2rem;
}

/* =========================================================
   EMPTY TABLE STATES
========================================================= */
.client-ticket-table td.client-ticket-table__empty {
  padding: 3.2rem 2rem;
  text-align: center;
}

.client-ticket-table__empty strong {
  display: block;
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
}

/* =========================================================
   TICKET SUBJECT
========================================================= */
.client-ticket-subject {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.client-ticket-subject__icon {
  flex: 0 0 4rem;
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 1.1rem;
}
.client-ticket-subject__icon > span {
  width: 2rem;
  height: 2rem;
  display: block;
  background-color: currentColor;
}

.client-ticket-subject__icon--blue {
  background: rgba(37, 99, 235, 0.09);
  color: #2563eb;
}

.client-ticket-subject__icon--orange {
  background: rgba(249, 115, 22, 0.09);
  color: #f97316;
}

.client-ticket-subject__icon--green {
  background: rgba(22, 163, 74, 0.09);
  color: #16a34a;
}

.client-ticket-subject__icon--purple {
  background: rgba(124, 58, 237, 0.09);
  color: #7c3aed;
}

.client-ticket-subject__mask--ticket {
  -webkit-mask: url("/assets/icons/open-ticket.svg") center/contain no-repeat;
  mask: url("/assets/icons/open-ticket.svg") center/contain no-repeat;
}

.client-ticket-subject__mask--waiting,
.client-ticket-subject__mask--progress {
  -webkit-mask: url("/assets/icons/pending.svg") center/contain no-repeat;
  mask: url("/assets/icons/pending.svg") center/contain no-repeat;
}

.client-ticket-subject__mask--resolved {
  -webkit-mask: url("/assets/icons/closed-ticket.svg") center/contain no-repeat;
  mask: url("/assets/icons/closed-ticket.svg") center/contain no-repeat;
}

.client-ticket-subject__content {
  min-width: 0;
}

.client-ticket-subject__link,
.client-ticket-subject__id {
  display: block;
}

.client-ticket-subject__link {
  max-width: 100%;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease;
}
.client-ticket-subject__link:hover {
  color: #2563eb;
}
.client-ticket-subject__link:focus-visible {
  outline: none;
  border-radius: 0.3rem;
  box-shadow: 0 0 0 0.3rem rgba(37, 99, 235, 0.1);
}

.client-ticket-subject__id {
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1;
}

/* =========================================================
   STATUS BADGES
========================================================= */
.client-ticket-category,
.client-ticket-updated {
  color: #334155;
  font-size: 1.25rem;
  font-weight: 550;
}

/* =========================================================
   ROW ACTION
========================================================= */
.client-ticket-row-action {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-grid;
  place-items: center;
  border-radius: 1rem;
  color: #475569;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.client-ticket-row-action .btn__icon-mask {
  width: 1.4rem;
  height: 1.4rem;
}
.client-ticket-row-action:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  transform: translateX(0.15rem);
}
.client-ticket-row-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

/* =========================================================
   CLOSED TICKETS PANEL
========================================================= */
.client-ticket-panel--closed {
  display: block;
}

.client-ticket-closed-summary {
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.8rem 2.2rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 160ms ease;
}
.client-ticket-closed-summary::-webkit-details-marker {
  display: none;
}
.client-ticket-closed-summary:hover {
  background: rgba(37, 99, 235, 0.018);
}
.client-ticket-closed-summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 0.3rem rgba(37, 99, 235, 0.1);
}

.client-ticket-closed-summary__title {
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.client-ticket-closed-summary__control {
  min-height: 3.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 1.2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: #ffffff;
  color: #2563eb;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.client-ticket-closed-summary__chevron {
  width: 0.8rem;
  height: 0.8rem;
  border-right: 0.18rem solid currentColor;
  border-bottom: 0.18rem solid currentColor;
  transform: rotate(45deg) translateY(-0.15rem);
  transition: transform 160ms ease;
}

.client-ticket-panel--closed[open] .client-ticket-closed-summary {
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.client-ticket-panel--closed[open] .client-ticket-closed-summary__chevron {
  transform: rotate(225deg);
}
.client-ticket-panel--closed[open] .client-ticket-table-wrapper {
  padding-top: 1.6rem;
}

/* =========================================================
   RESPONSIVE — MEDIUM DESKTOP
========================================================= */
@media (max-width: 1180px) {
  .client-ticket-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }
  .client-ticket-toolbar {
    width: 100%;
    justify-content: space-between;
  }
  .client-ticket-search {
    flex: 1;
    width: auto;
  }
}
/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media (max-width: 880px) {
  .client-tickets-page__header {
    align-items: flex-start;
    flex-direction: column;
  }
  .client-tickets-page__header-action {
    align-self: flex-start;
  }
  .client-ticket-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .client-ticket-search {
    width: 100%;
    min-width: 0;
  }
  .client-ticket-tabs {
    width: 100%;
    overflow-x: auto;
  }
  .client-ticket-tab {
    flex: 1 0 auto;
  }
}
/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media (max-width: 680px) {
  .client-tickets-page__header {
    gap: 1.6rem;
  }
  .client-tickets-page__header-action {
    width: 100%;
  }
  .client-ticket-panel__header {
    padding: 1.6rem;
  }
  .client-ticket-table-wrapper {
    padding: 0 1.6rem 1.6rem;
  }
  .client-ticket-panel--closed[open] .client-ticket-table-wrapper {
    padding-top: 1.4rem;
  }
  .client-ticket-closed-summary {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.6rem;
  }
  .client-ticket-closed-summary__control {
    width: 100%;
    justify-content: space-between;
  }
  .client-ticket-table {
    min-width: 68rem;
  }
}
/* =========================================================
   CLIENT TICKET DETAIL PAGE
========================================================= */
.ticket-detail-page {
  position: relative;
  isolation: isolate;
  padding-bottom: 3rem;
}

.ticket-detail-layout {
  min-height: 100vh;
}

/* =========================================================
   SHARED PAGE HEADER
========================================================= */
.ticket-detail-page__header {
  margin-bottom: 1.8rem;
}

.ticket-detail-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
}

.ticket-detail-header__content {
  flex: 1 1 auto;
  min-width: 0;
}

.ticket-detail-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* =========================================================
   HEADER MORE BUTTON
========================================================= */
.ticket-header-more-button {
  flex: 0 0 4.2rem;
  width: 4.2rem;
  height: 4.2rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.ticket-header-more-button svg {
  width: 1.9rem;
  height: 1.9rem;
}
.ticket-header-more-button:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.045);
  color: #2563eb;
}
.ticket-header-more-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

.ticket-detail-header__button-icon {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
}

/* =========================================================
   MAIN CONTENT
========================================================= */
.ticket-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(30rem, 34rem);
  align-items: start;
  gap: 2rem;
}

/* =========================================================
   CONVERSATION PANEL
========================================================= */
.ticket-conversation {
  min-width: 0;
  height: clamp(52rem, 100vh - 24rem, 68rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 2.2rem;
  background: #ffffff;
  box-shadow: 0 0.8rem 2.4rem rgba(15, 23, 42, 0.035);
}

.ticket-conversation__header {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.8rem 2.2rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}

.ticket-conversation__heading {
  min-width: 0;
}
.ticket-conversation__heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.ticket-conversation__heading .ticket-detail-header__metadata {
  margin-top: 0.55rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

.ticket-conversation__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =========================================================
   CONVERSATION TABS
========================================================= */
.ticket-content-tabs {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  min-height: 5.8rem;
  padding: 0 2rem;
  overflow-x: auto;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
}

.ticket-content-tabs__button {
  position: relative;
  min-height: 5.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.ticket-content-tabs__button::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 0;
  left: 1rem;
  height: 0.2rem;
  border-radius: 999rem 999rem 0 0;
  background: transparent;
}
.ticket-content-tabs__button svg {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
}
.ticket-content-tabs__button:hover {
  background: rgba(37, 99, 235, 0.035);
  color: #2563eb;
}
.ticket-content-tabs__button:focus-visible {
  outline: none;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
}
.ticket-content-tabs__button.is-active {
  color: #2563eb;
}
.ticket-content-tabs__button.is-active::after {
  background: #2563eb;
}

.ticket-content-tabs__button[hidden] {
  display: none !important;
}

.ticket-content-tabs__count {
  min-width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.65rem;
  border-radius: 999rem;
  background: rgba(37, 99, 235, 0.09);
  color: #2563eb;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}

.ticket-tab-panel {
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ticket-tab-panel[hidden] {
  display: none !important;
}

/* =========================================================
   INTERNAL NOTE EDITOR
========================================================= */
.ticket-note-editor {
  min-height: 44rem;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.ticket-note-editor__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 2rem 2.2rem 1.6rem;
}
.ticket-note-editor__body label {
  color: #334155;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.2;
}
.ticket-note-editor__body textarea {
  width: 100%;
  min-height: 30rem;
  flex: 1;
  resize: vertical;
  padding: 1.4rem 1.5rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.65;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.ticket-note-editor__body textarea::placeholder {
  color: #64748b;
}
.ticket-note-editor__body textarea:hover {
  border-color: rgba(100, 116, 139, 0.46);
}
.ticket-note-editor__body textarea:focus {
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}

.ticket-note-editor__footer {
  min-height: 7.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.4rem 2.2rem;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: rgba(37, 99, 235, 0.015);
}

.ticket-note-editor__status {
  margin: 0;
  color: #166534;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.ticket-note-editor__status[hidden] {
  display: none !important;
}

.ticket-note-editor__status[data-status-type=error] {
  color: #dc2626;
}

.ticket-note-editor__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-left: auto;
}
.ticket-note-editor__actions .btn {
  min-height: 4rem;
}
.ticket-note-editor__actions .btn svg {
  width: 1.55rem;
  height: 1.55rem;
}

/* =========================================================
   ACTIVITY LOG
========================================================= */
.ticket-activity-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 1.2rem 2.2rem 1.8rem;
  list-style: none;
}

.ticket-activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  align-items: start;
  gap: 1.2rem;
  padding: 1.2rem 0;
}
.ticket-activity-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4.8rem;
  bottom: -0.2rem;
  left: 1.75rem;
  width: 0.1rem;
  background: rgba(148, 163, 184, 0.24);
}

.ticket-activity-item__icon {
  position: relative;
  z-index: 1;
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border: 0.1rem solid rgba(37, 99, 235, 0.16);
  border-radius: 999rem;
  background: rgba(37, 99, 235, 0.07);
  color: #2563eb;
}
.ticket-activity-item__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.ticket-activity-item__content {
  min-width: 0;
  padding-top: 0.25rem;
}
.ticket-activity-item__content p {
  margin: 0;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.45;
}
.ticket-activity-item__content time {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 1rem;
  font-weight: 600;
}

.ticket-conversation__messages {
  min-height: 0;
  flex: 1;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2rem 2.2rem 1.8rem;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.012), transparent 32%);
}

.ticket-conversation__messages::-webkit-scrollbar {
  width: 0.8rem;
}

.ticket-conversation__messages::-webkit-scrollbar-track {
  background: transparent;
}

.ticket-conversation__messages::-webkit-scrollbar-thumb {
  border-radius: 999rem;
  background: rgba(15, 23, 42, 0.16);
}

.ticket-conversation__messages::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.24);
}

/* =========================================================
   CHAT MESSAGES
========================================================= */
.ticket-message {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.ticket-message--client {
  flex-direction: row-reverse;
}

.ticket-message__avatar {
  flex: 0 0 4rem;
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 999rem;
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1;
}

.ticket-message__avatar--client {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 0.5rem 1.2rem rgba(37, 99, 235, 0.2);
}

.ticket-message__avatar--support {
  border: 0.1rem solid #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}

.ticket-message__content {
  max-width: min(66%, 61rem);
  min-width: 0;
}

.ticket-message__bubble {
  position: relative;
  padding: 1.2rem 1.4rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.4rem;
}
.ticket-message__bubble p {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
}

.ticket-message--support .ticket-message__bubble {
  border-bottom-left-radius: 0.45rem;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.045), rgba(22, 163, 74, 0.012)), #ffffff;
}

.ticket-message--client .ticket-message__bubble {
  border-color: rgba(37, 99, 235, 0.2);
  border-bottom-right-radius: 0.45rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.085), rgba(37, 99, 235, 0.035)), #ffffff;
}

.ticket-message__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 0.5rem;
}
.ticket-message__header strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-message__header time {
  flex-shrink: 0;
  color: #64748b;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.ticket-message__author {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ticket-message__role {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  border-radius: 999rem;
  background: rgba(37, 99, 235, 0.07);
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1;
}

.ticket-message--support .ticket-message__role {
  background: #ecfdf5;
  color: #166534;
}

/* =========================================================
   MESSAGE ATTACHMENT
========================================================= */
.ticket-message-attachment {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 0.1rem solid rgba(37, 99, 235, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.65);
  color: #0f172a;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.ticket-message-attachment:hover {
  border-color: rgba(37, 99, 235, 0.32);
  background: #ffffff;
}
.ticket-message-attachment:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

.ticket-message-attachment__icon {
  flex: 0 0 3.6rem;
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: rgba(37, 99, 235, 0.09);
  color: #2563eb;
}
.ticket-message-attachment__icon svg {
  width: 1.8rem;
  height: 1.8rem;
}

.ticket-message-attachment__content {
  min-width: 0;
}
.ticket-message-attachment__content strong,
.ticket-message-attachment__content small {
  display: block;
}
.ticket-message-attachment__content strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-message-attachment__content small {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
}

/* =========================================================
   SIMPLE REPLY COMPOSER
========================================================= */
.ticket-reply-composer {
  margin: 0 2.2rem 1.8rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1.3rem;
  background: #ffffff;
  box-shadow: 0 0.5rem 1.6rem rgba(15, 23, 42, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.ticket-reply-composer:focus-within {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}
.ticket-reply-composer textarea {
  width: 100%;
  min-height: 7.2rem;
  resize: vertical;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
}
.ticket-reply-composer textarea::placeholder {
  color: #64748b;
}

.ticket-reply-composer__body {
  padding: 1.3rem;
}

.ticket-reply-composer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-top: 1.1rem;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
}

.ticket-reply-composer__attachment-area {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ticket-reply-composer__attachment-area small {
  flex-shrink: 0;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.ticket-reply-composer__attachment-input {
  min-width: 0;
  max-width: 32rem;
  color: #334155;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.ticket-reply-composer__attachment-input::file-selector-button {
  min-height: 3.6rem;
  margin-right: 1rem;
  padding: 0 1.2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.045);
  color: #2563eb;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.ticket-reply-composer__attachment-input:hover::file-selector-button {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
}
.ticket-reply-composer__attachment-input:focus-visible {
  outline: none;
  border-radius: 1rem;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

.ticket-reply-composer__send-icon {
  width: 1.6rem;
  height: 1.6rem;
}

/* =========================================================
   TICKET MANAGEMENT PANEL
========================================================= */
.ticket-management-panel {
  min-width: 0;
}

.ticket-management-panel__body {
  display: grid;
  gap: 0;
  padding: 0 1.6rem;
}

.ticket-management-row {
  min-height: 5.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.ticket-management-row:last-child {
  border-bottom: 0;
}

.ticket-management-row__content {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ticket-management-row__label {
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
}

.ticket-management-row__button {
  min-height: 3.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 0.1rem solid rgba(37, 99, 235, 0.18);
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.055);
  color: #2563eb;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.ticket-management-row__button:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}
.ticket-management-row__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

/* =========================================================
   TICKET MANAGEMENT BADGES
========================================================= */
.ticket-management-badge {
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 0.95rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 999rem;
  background: rgba(15, 23, 42, 0.035);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.ticket-management-badge--open {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
}

.ticket-management-badge--pending {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.ticket-management-badge--resolved {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}

.ticket-management-badge--closed {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

.ticket-management-badge-dot {
  flex: 0 0 0.75rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999rem;
  background: #64748b;
}

.ticket-management-badge-dot--low {
  background: #22c55e;
}

.ticket-management-badge-dot--normal {
  background: #3b82f6;
}

.ticket-management-badge-dot--high {
  background: #f97316;
}

.ticket-management-badge-dot--urgent {
  background: #dc2626;
}

/* =========================================================
   INFORMATION SIDEBAR
========================================================= */
.ticket-detail-sidebar {
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 1.6rem;
}

.ticket-sidebar-card {
  overflow: hidden;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 0.6rem 1.8rem rgba(15, 23, 42, 0.03);
}

.ticket-sidebar-card__header {
  min-height: 6.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.6rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.ticket-sidebar-card__header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.ticket-sidebar-card__icon {
  flex: 0 0 3.4rem;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 1.25rem;
  font-weight: 850;
}
.ticket-sidebar-card__icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.ticket-sidebar-card__icon--actions {
  background: rgba(249, 115, 22, 0.08);
  color: #f97316;
}

/* =========================================================
   TICKET DETAILS
========================================================= */
.ticket-details-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 1.6rem;
}

.ticket-details-list__row {
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.ticket-details-list__row:last-child {
  border-bottom: 0;
}
.ticket-details-list__row dt,
.ticket-details-list__row dd {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}
.ticket-details-list__row dt {
  color: #64748b;
  font-weight: 600;
}
.ticket-details-list__row dd {
  color: #0f172a;
  font-weight: 750;
  text-align: right;
}

.ticket-detail-status {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border: 0.1rem solid #bbf7d0;
  border-radius: 999rem;
  background: #ecfdf5;
  color: #166534;
  font-size: 1.05rem;
  font-weight: 800;
}

.ticket-details-user {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

/* =========================================================
   ATTACHMENTS
========================================================= */
.ticket-attachment-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 1.6rem;
  list-style: none;
}

.ticket-attachment-list__item {
  min-width: 0;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.ticket-attachment-list__item:last-child {
  border-bottom: 0;
}

.ticket-attachment-list__name {
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #2563eb;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease, padding-left 160ms ease;
}
.ticket-attachment-list__name:hover {
  padding-left: 0.25rem;
  color: #1d4ed8;
}
.ticket-attachment-list__name:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 0.3rem rgba(37, 99, 235, 0.1);
}

.ticket-management-message {
  margin: 0;
  padding: 1.2rem 1.6rem;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.4;
}

.ticket-management-message[hidden] {
  display: none !important;
}

/* =========================================================
   TICKET MANAGEMENT PANEL
========================================================= */
.ticket-management-panel {
  min-width: 0;
}

.ticket-management-panel__body {
  display: grid;
  gap: 0;
  padding: 0 1.6rem;
}

.ticket-management-row {
  min-height: 5.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.ticket-management-row:last-child {
  border-bottom: 0;
}

.ticket-management-row__content {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ticket-management-row__label {
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
}

.ticket-management-row__button {
  min-height: 3.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 0.1rem solid rgba(37, 99, 235, 0.18);
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.055);
  color: #2563eb;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.ticket-management-row__button:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}
.ticket-management-row__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

/* =========================================================
   TICKET MANAGEMENT BADGES
========================================================= */
.ticket-management-badge {
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 0.95rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 999rem;
  background: rgba(15, 23, 42, 0.035);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.ticket-management-badge--open {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
}

.ticket-management-badge--pending {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.ticket-management-badge--resolved {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}

.ticket-management-badge--closed {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

.ticket-management-badge-dot {
  flex: 0 0 0.75rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999rem;
  background: #64748b;
}

.ticket-management-badge-dot--normal {
  background: #f9cde4;
  box-shadow: inset 0 0 0 0.1rem rgba(116, 69, 92, 0.18);
}

.ticket-management-badge-dot--high {
  background: #f272a6;
}

.ticket-management-badge-dot--urgent {
  background: #f7065d;
}

/* =========================================================
   TICKET CHANGE MODALS
========================================================= */
.ticket-change-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.ticket-change-modal[hidden] {
  display: none !important;
}

.ticket-change-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(0.35rem);
  cursor: default;
}

.ticket-change-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(50rem, 100%);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 2.2rem;
  background: #ffffff;
  box-shadow: 0 2.4rem 6rem rgba(15, 23, 42, 0.24);
}

.ticket-change-modal__header {
  min-height: 7.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.4rem;
  padding: 1.8rem 2rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.ticket-change-modal__header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.ticket-change-modal__header p {
  margin: 0.45rem 0 0;
  color: #64748b;
  font-size: 1.12rem;
  font-weight: 550;
  line-height: 1.45;
}

.ticket-change-modal__close {
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.ticket-change-modal__close svg {
  width: 1.65rem;
  height: 1.65rem;
}
.ticket-change-modal__close:hover {
  background: rgba(37, 99, 235, 0.06);
  color: #2563eb;
}
.ticket-change-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

.ticket-change-modal__body {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
}

.ticket-change-modal__current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.ticket-change-modal__current > span {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 650;
}

.ticket-change-modal__field {
  display: grid;
  gap: 0.65rem;
}
.ticket-change-modal__field > span {
  color: #334155;
  font-size: 1.1rem;
  font-weight: 800;
}
.ticket-change-modal__field select {
  width: 100%;
  min-height: 4.4rem;
  padding: 0 1.2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 650;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.ticket-change-modal__field select:hover {
  border-color: rgba(100, 116, 139, 0.46);
}
.ticket-change-modal__field select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}

.ticket-change-modal__help {
  margin: -0.4rem 0 0;
  color: #64748b;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.ticket-change-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: rgba(37, 99, 235, 0.018);
}

.ticket-change-modal__footer .btn {
  min-height: 4rem;
}

.ticket-change-modal__footer .btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.ticket-change-modal-is-open {
  overflow: hidden;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */
.sr-only {
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  padding: 0;
  margin: -0.1rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   EMPTY CONVERSATION
========================================================= */
.ticket-conversation-empty {
  min-height: 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.7rem;
  padding: 3rem 2rem;
  text-align: center;
}
.ticket-conversation-empty strong {
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 800;
}
.ticket-conversation-empty p {
  margin: 0;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.5;
}

.ticket-conversation-empty__icon {
  width: 4.8rem;
  height: 4.8rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  border-radius: 999rem;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}
.ticket-conversation-empty__icon svg {
  width: 2.2rem;
  height: 2.2rem;
}

/* =========================================================
   INTERNAL NOTES
========================================================= */
.ticket-message--internal {
  align-items: flex-start;
}
.ticket-message--internal .ticket-message__bubble {
  border-color: #fde68a;
  border-bottom-left-radius: 0.45rem;
  background: #fffbeb;
}

.ticket-message__avatar--internal {
  border: 0.1rem solid #fde68a;
  background: #fef3c7;
  color: #92400e;
}

.ticket-message__role--internal {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.ticket-message__text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ticket-message__edited {
  display: block;
  margin-top: 0.7rem;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

/* =========================================================
   MESSAGE FORM
========================================================= */
.ticket-message-form-errors {
  margin: 0 2.2rem 1.4rem;
  padding: 1.2rem 1.4rem;
  border: 0.1rem solid #fecaca;
  border-radius: 1rem;
  background: #fef2f2;
  color: #b91c1c;
}
.ticket-message-form-errors strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}
.ticket-message-form-errors p {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.ticket-reply-composer__visibility {
  display: grid;
  grid-template-columns: auto minmax(14rem, 20rem);
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.ticket-reply-composer__visibility label {
  color: #334155;
  font-size: 1rem;
  font-weight: 750;
}
.ticket-reply-composer__visibility select {
  min-height: 3.8rem;
  padding: 0 1rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
}
.ticket-reply-composer__visibility select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}

.ticket-reply-composer__error {
  margin: 0.7rem 0 0;
  color: #b91c1c;
  font-size: 1rem;
  font-weight: 700;
}

.ticket-reply-composer__attachment-area {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.ticket-reply-composer__attachment-error {
  width: 100%;
  margin: 0;
  color: #b91c1c;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.ticket-reply-composer__attachment-error[hidden] {
  display: none !important;
}

.ticket-detail-navigation {
  padding: 1.4rem;
}
.ticket-detail-navigation .btn {
  width: 100%;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1180px) {
  .ticket-detail-content {
    grid-template-columns: minmax(0, 1fr) 29rem;
  }
  .ticket-message__content {
    max-width: 74%;
  }
}
@media (max-width: 980px) {
  .ticket-detail-content {
    grid-template-columns: 1fr;
  }
  .ticket-detail-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ticket-sidebar-card:first-child {
    grid-column: 1/-1;
  }
  .ticket-conversation {
    height: clamp(48rem, 100vh - 18rem, 62rem);
  }
}
@media (max-width: 760px) {
  .ticket-detail-header {
    align-items: stretch;
    flex-direction: column;
    gap: 1.6rem;
  }
  .ticket-detail-header__actions {
    width: 100%;
  }
  .ticket-detail-header__actions > .btn {
    flex: 1;
  }
  .ticket-content-tabs {
    padding-inline: 1.2rem;
  }
  .ticket-message__content {
    max-width: 82%;
  }
  .ticket-detail-sidebar {
    grid-template-columns: 1fr;
  }
  .ticket-sidebar-card:first-child {
    grid-column: auto;
  }
  .ticket-reply-composer__footer {
    align-items: stretch;
    flex-direction: column;
  }
  .ticket-reply-composer__footer .btn {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .ticket-detail-header__actions {
    display: grid;
    grid-template-columns: auto 4.2rem;
    gap: 1rem;
  }
  .ticket-detail-header__actions > .btn {
    grid-column: 1/-1;
    width: 100%;
  }
  .ticket-content-tabs {
    gap: 0;
    padding-inline: 0.6rem;
  }
  .ticket-content-tabs__button {
    flex: 1 0 auto;
    min-height: 5.2rem;
    padding-inline: 1rem;
  }
  .ticket-content-tabs__button span:not(.ticket-content-tabs__count) {
    display: none;
  }
  .ticket-content-tabs__button svg {
    width: 1.85rem;
    height: 1.85rem;
  }
  .ticket-activity-list {
    padding-inline: 1.3rem;
  }
  .ticket-note-editor {
    min-height: 40rem;
  }
  .ticket-note-editor__body {
    padding: 1.5rem 1.3rem;
  }
  .ticket-note-editor__body textarea {
    min-height: 25rem;
  }
  .ticket-note-editor__footer {
    align-items: stretch;
    flex-direction: column;
    padding: 1.3rem;
  }
  .ticket-note-editor__actions {
    width: 100%;
    margin-left: 0;
  }
  .ticket-note-editor__actions .btn {
    flex: 1;
  }
  .ticket-conversation__header {
    min-height: auto;
    padding: 1.6rem;
  }
  .ticket-conversation__messages {
    padding: 1.6rem 1.3rem;
  }
  .ticket-message {
    gap: 0.7rem;
  }
  .ticket-message__avatar {
    flex-basis: 3.4rem;
    width: 3.4rem;
    height: 3.4rem;
    font-size: 1.05rem;
  }
  .ticket-message__content {
    max-width: calc(100% - 4.1rem);
  }
  .ticket-message__bubble {
    padding: 1.1rem 1.2rem;
  }
  .ticket-message__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
  .ticket-message__author {
    flex-wrap: wrap;
  }
  .ticket-reply-composer {
    margin: 0 1.3rem 1.3rem;
  }
  .ticket-reply-composer__attachment-area {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }
  .ticket-reply-composer__attachment-area small {
    white-space: normal;
  }
  .ticket-reply-composer__attachment-input {
    width: 100%;
    max-width: none;
  }
  .ticket-management-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.8rem;
    padding: 1.2rem 0;
  }
  .ticket-management-row__content {
    justify-content: space-between;
  }
  .ticket-management-row__button {
    width: 100%;
  }
  .ticket-change-modal {
    padding: 1rem;
  }
  .ticket-change-modal__dialog {
    max-height: calc(100vh - 2rem);
  }
  .ticket-change-modal__header {
    padding: 1.5rem;
  }
  .ticket-change-modal__body {
    padding: 1.5rem;
  }
  .ticket-change-modal__current {
    align-items: flex-start;
    flex-direction: column;
  }
  .ticket-change-modal__footer {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 1.3rem 1.5rem;
  }
  .ticket-change-modal__footer .btn {
    width: 100%;
  }
  .ticket-modal {
    padding: 1rem;
  }
  .ticket-modal__dialog {
    max-height: calc(100vh - 2rem);
  }
  .ticket-modal__header {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1.5rem;
  }
  .ticket-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  .ticket-modal__header > div {
    padding-right: 3.6rem;
  }
  .ticket-modal__body {
    padding: 1.5rem;
  }
  .ticket-modal-field__help {
    align-items: flex-start;
    flex-direction: column;
  }
  .ticket-modal__footer {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 1.3rem 1.5rem;
  }
  .ticket-modal__footer .btn,
  .ticket-modal__confirm {
    width: 100%;
  }
  .ticket-management-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.8rem;
    padding: 1.2rem 0;
  }
  .ticket-management-row__content {
    justify-content: space-between;
  }
  .ticket-management-row__button {
    width: 100%;
  }
  .ticket-conversation {
    height: clamp(44rem, 100vh - 14rem, 58rem);
  }
}
/* =========================================================
   USER PROFILE PAGE
========================================================= */
.user-profile-layout {
  min-height: 100vh;
}

.user-profile-page {
  position: relative;
  isolation: isolate;
  padding-bottom: 3rem;
}

.user-profile-page__header {
  margin-bottom: 1.8rem;
}

/* =========================================================
   PROFILE HERO
========================================================= */
.user-profile-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
  margin-bottom: 2rem;
  padding: 2rem 2.4rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 0.8rem 2.4rem rgba(15, 23, 42, 0.035);
}

.user-profile-hero__avatar {
  flex: 0 0 8.4rem;
  width: 8.4rem;
  height: 8.4rem;
  display: grid;
  place-items: center;
  border-radius: 999rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb 58%, #1d4ed8);
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 1.2rem 2.8rem rgba(37, 99, 235, 0.2);
}

.user-profile-hero__identity {
  min-width: 0;
  flex: 1 1 auto;
}
.user-profile-hero__identity h1 {
  margin: 0;
  color: #0f172a;
  font-size: 3rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.user-profile-hero__metadata {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.65rem;
  color: #64748b;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.45;
}
.user-profile-hero__metadata svg {
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
}

.user-profile-hero__separator {
  color: #64748b;
}

.user-profile-status {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0 1.2rem;
  border: 0.1rem solid transparent;
  border-radius: 999rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}
.user-profile-status__dot {
  flex: 0 0 0.75rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999rem;
}
.user-profile-status__label {
  width: auto;
  height: auto;
  white-space: nowrap;
}

.user-profile-status--active {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}
.user-profile-status--active .user-profile-status__dot {
  background: #16a34a;
}

.user-profile-status--disabled {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
.user-profile-status--disabled .user-profile-status__dot {
  background: #dc2626;
}

.user-profile-hero__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.user-profile-hero__actions .btn {
  min-height: 4.6rem;
  font-size: 1.2rem;
}
.user-profile-hero__actions .btn svg {
  width: 1.7rem;
  height: 1.7rem;
}

.user-profile-more-button {
  min-height: 4.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.5rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 750;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.user-profile-more-button svg {
  width: 1.8rem;
  height: 1.8rem;
}
.user-profile-more-button:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.035);
  color: #2563eb;
}
.user-profile-more-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

/* =========================================================
   PROFILE GRID
========================================================= */
.user-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(34rem, 1.15fr);
  align-items: stretch;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* =========================================================
   PROFILE CARDS
========================================================= */
.user-profile-card {
  min-width: 0;
  overflow: hidden;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 0.7rem 2rem rgba(15, 23, 42, 0.03);
}

.user-profile-card__header {
  min-height: 7.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.8rem;
}
.user-profile-card__header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.3;
}

.user-profile-card__icon {
  flex: 0 0 3.8rem;
  width: 3.8rem;
  height: 3.8rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}
.user-profile-card__icon svg {
  width: 1.9rem;
  height: 1.9rem;
}

/* =========================================================
   INFORMATION ROWS
========================================================= */
.user-profile-details {
  display: grid;
  margin: 0;
  padding: 0 1.8rem 1.4rem;
}

.user-profile-details__row {
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: minmax(12rem, 0.95fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1.4rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.user-profile-details__row:last-child {
  border-bottom: 0;
}
.user-profile-details__row dt,
.user-profile-details__row dd {
  min-width: 0;
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.45;
}
.user-profile-details__row dt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #64748b;
  font-weight: 600;
}
.user-profile-details__row dt svg {
  flex: 0 0 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
}
.user-profile-details__row dd {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-weight: 650;
}
.user-profile-details__row a {
  color: #2563eb;
  text-decoration: none;
  transition: color 160ms ease;
}
.user-profile-details__row a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.user-profile-details__row a:focus-visible {
  outline: none;
  border-radius: 0.3rem;
  box-shadow: 0 0 0 0.3rem rgba(37, 99, 235, 0.1);
}

.user-profile-role-badge {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  border: 0.1rem solid #bfdbfe;
  border-radius: 999rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.user-profile-form {
  display: block;
  min-width: 0;
}

.user-profile-inline-view[hidden],
.user-profile-inline-edit[hidden],
#userViewActions[hidden],
#userEditActions[hidden] {
  display: none;
}

.user-profile-inline-view {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.user-profile-inline-edit {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 0.55rem;
}
.user-profile-inline-edit input,
.user-profile-inline-edit select {
  width: 100%;
  min-width: 0;
  height: 4.2rem;
  padding: 0 1.2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  outline: none;
  background-color: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.3;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.user-profile-inline-edit input:hover,
.user-profile-inline-edit select:hover {
  border-color: rgba(100, 116, 139, 0.46);
}
.user-profile-inline-edit input:focus,
.user-profile-inline-edit select:focus {
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}
.user-profile-inline-edit input::placeholder {
  color: #7c8ba1;
  font-weight: 550;
}
.user-profile-inline-edit select {
  cursor: pointer;
}
.user-profile-inline-edit .user-profile-inline-control--invalid {
  border-color: #dc2626;
  background-color: rgba(220, 38, 38, 0.018);
  box-shadow: 0 0 0 0.3rem rgba(220, 38, 38, 0.07);
}

.user-profile-inline-error {
  margin: 0;
  color: #b91c1c;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.user-profile-details__row--invalid {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.04), transparent);
}

.user-profile-form.is-editing .user-profile-details__row {
  min-height: 6.4rem;
}
.user-profile-form.is-editing .user-profile-details__row:has(.user-profile-inline-edit) {
  padding-block: 0.8rem;
}
.user-profile-form.is-editing .user-profile-details__row dt label {
  color: #334155;
  font-size: 1.25rem;
  font-weight: 650;
  cursor: pointer;
}

/* =========================================================
   TICKET SUMMARY
========================================================= */
.user-profile-card--tickets {
  display: flex;
  flex-direction: column;
}

.user-ticket-summary {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 1.8rem 1.8rem;
}

.user-ticket-summary__item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  padding: 1.8rem 1.4rem;
}
.user-ticket-summary__item:nth-child(odd) {
  border-right: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.user-ticket-summary__item:nth-child(-n+2) {
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}

.user-ticket-summary__icon {
  flex: 0 0 5.5rem;
  width: 5.5rem;
  height: 5.5rem;
  display: grid;
  place-items: center;
  border-radius: 1.3rem;
}
.user-ticket-summary__icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.user-ticket-summary__icon--open {
  background: rgba(37, 99, 235, 0.09);
  color: #2563eb;
}

.user-ticket-summary__icon--pending {
  border: 0.1rem solid #fed7aa;
  background: #fff7ed;
  color: #f97316;
}

.user-ticket-summary__icon--closed {
  border: 0.1rem solid #bbf7d0;
  background: #ecfdf5;
  color: #16a34a;
}

.user-ticket-summary__icon--total {
  border: 0.1rem solid #ddd6fe;
  background: #f5f3ff;
  color: #7c3aed;
}

.user-ticket-summary__content {
  min-width: 0;
}
.user-ticket-summary__content strong,
.user-ticket-summary__content > span,
.user-ticket-summary__content a {
  display: block;
}
.user-ticket-summary__content strong {
  color: #0f172a;
  font-size: 2.8rem;
  font-weight: 850;
  line-height: 1;
}
.user-ticket-summary__content > span {
  margin-top: 0.55rem;
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 650;
}

/* =========================================================
   ACCOUNT AND SECURITY
========================================================= */
.user-profile-security-card {
  margin-bottom: 2rem;
}

.user-profile-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  padding: 0 1.8rem 1.5rem;
}

.user-profile-security-list {
  display: grid;
  min-width: 0;
  margin: 0;
}

.user-profile-security-list__row {
  min-height: 5.7rem;
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 1.6rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.user-profile-security-list__row:last-child {
  border-bottom: 0;
}
.user-profile-security-list__row dt,
.user-profile-security-list__row dd {
  min-width: 0;
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.45;
}
.user-profile-security-list__row dt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #64748b;
  font-weight: 600;
}
.user-profile-security-list__row dt svg {
  flex: 0 0 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
}
.user-profile-security-list__row dd {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-weight: 650;
}

.user-profile-account-status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: auto;
  font-size: 1.3rem;
  white-space: nowrap;
}

.user-profile-account-status__dot {
  flex: 0 0 0.9rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999rem;
}

.user-profile-account-status--active {
  color: #166534;
}
.user-profile-account-status--active .user-profile-account-status__dot {
  background: #16a34a;
}

.user-profile-account-status--disabled {
  color: #b91c1c;
}
.user-profile-account-status--disabled .user-profile-account-status__dot {
  background: #dc2626;
}

.user-profile-account-status__label {
  width: auto;
  height: auto;
  white-space: nowrap;
}

.user-profile-account-status--active {
  color: #166534;
}
.user-profile-account-status--active .user-profile-account-status__dot {
  background: #16a34a;
}

.user-profile-account-status--disabled {
  color: #b91c1c;
}
.user-profile-account-status--disabled .user-profile-account-status__dot {
  background: #dc2626;
}

.user-profile-password {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.user-profile-inline-action {
  min-height: 3.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  border: 0.1rem solid rgba(37, 99, 235, 0.28);
  border-radius: 1rem;
  background: #ffffff;
  color: #2563eb;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.user-profile-inline-action:hover {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.055);
  color: #1d4ed8;
}
.user-profile-inline-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1250px) {
  .user-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .user-profile-card--tickets {
    grid-column: 1/-1;
  }
  .user-ticket-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .user-ticket-summary__item {
    border-right: 0.1rem solid rgba(148, 163, 184, 0.24);
    border-bottom: 0;
  }
  .user-ticket-summary__item:nth-child(odd), .user-ticket-summary__item:nth-child(-n+2) {
    border-bottom: 0;
  }
  .user-ticket-summary__item:last-child {
    border-right: 0;
  }
}
@media (max-width: 980px) {
  .user-profile-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .user-profile-hero__actions {
    width: 100%;
    padding-left: 10.4rem;
  }
  .user-profile-security-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 760px) {
  .user-profile-hero {
    align-items: center;
  }
  .user-profile-hero__avatar {
    flex-basis: 7rem;
    width: 7rem;
    height: 7rem;
    font-size: 2.3rem;
  }
  .user-profile-hero__identity h1 {
    font-size: 2.5rem;
  }
  .user-profile-hero__metadata {
    font-size: 1.25rem;
  }
  .user-profile-hero__actions {
    padding-left: 0;
  }
  .user-profile-hero__actions .btn {
    flex: 1;
  }
  .user-profile-more-button {
    flex: 0 0 4.6rem;
  }
  .user-profile-grid {
    grid-template-columns: 1fr;
  }
  .user-profile-card--tickets {
    grid-column: auto;
  }
  .user-profile-card__header h2 {
    font-size: 1.45rem;
  }
  .user-profile-details__row dt,
  .user-profile-details__row dd,
  .user-profile-security-list__row dt,
  .user-profile-security-list__row dd {
    font-size: 1.2rem;
  }
  .user-ticket-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .user-ticket-summary__item:nth-child(odd) {
    border-right: 0.1rem solid rgba(148, 163, 184, 0.24);
  }
  .user-ticket-summary__item:nth-child(even) {
    border-right: 0;
  }
  .user-ticket-summary__item:nth-child(-n+2) {
    border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
  }
}
@media (max-width: 560px) {
  .user-profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.4rem;
    padding: 1.6rem;
  }
  .user-profile-hero__avatar {
    flex-basis: 5.8rem;
    width: 5.8rem;
    height: 5.8rem;
    font-size: 1.9rem;
  }
  .user-profile-hero__identity h1 {
    font-size: 2.2rem;
  }
  .user-profile-hero__metadata {
    font-size: 1.2rem;
  }
  .user-profile-status {
    font-size: 1.1rem;
  }
  .user-profile-hero__actions {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr;
  }
  .user-profile-hero__actions .btn {
    width: 100%;
  }
  .user-profile-action-menu {
    width: 100%;
  }
  .user-profile-more-button {
    width: 100%;
  }
  .user-profile-card__header {
    min-height: 6.4rem;
    padding: 1.2rem 1.3rem;
  }
  .user-profile-card__header h2 {
    font-size: 1.4rem;
  }
  .user-profile-card__icon {
    flex-basis: 3.5rem;
    width: 3.5rem;
    height: 3.5rem;
  }
  .user-profile-details {
    padding-inline: 1.3rem;
  }
  .user-profile-details__row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.1rem 0;
  }
  .user-profile-details__row dt,
  .user-profile-details__row dd {
    font-size: 1.15rem;
  }
  .user-profile-details__row dd {
    padding-left: 2.55rem;
  }
  .user-ticket-summary {
    padding-inline: 1.3rem;
  }
  .user-ticket-summary__item {
    grid-template-columns: 1fr;
    padding: 1.4rem 1rem;
  }
  .user-ticket-summary__icon {
    width: 4.6rem;
    height: 4.6rem;
    flex-basis: 4.6rem;
  }
  .user-ticket-summary__icon svg {
    width: 2.2rem;
    height: 2.2rem;
  }
  .user-ticket-summary__content strong {
    font-size: 2.5rem;
  }
  .user-ticket-summary__content > span {
    font-size: 1.2rem;
  }
  .user-ticket-summary__content a {
    font-size: 1.1rem;
  }
  .user-profile-security-grid {
    padding-inline: 1.3rem;
  }
  .user-profile-security-list__row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 1.1rem 0;
  }
  .user-profile-security-list__row dt,
  .user-profile-security-list__row dd {
    font-size: 1.15rem;
  }
  .user-profile-security-list__row dd {
    padding-left: 2.55rem;
  }
  .user-profile-password {
    align-items: flex-start;
    flex-direction: column;
  }
  .user-profile-inline-action {
    font-size: 1.05rem;
  }
}
/* =========================================================
   USER ACTION MENU
========================================================= */
.user-profile-action-menu {
  position: relative;
  flex: 0 0 auto;
}

.user-profile-more-button {
  width: 4.6rem;
  min-width: 4.6rem;
  padding: 0;
  gap: 0;
}
.user-profile-more-button svg {
  width: 2rem;
  height: 2rem;
}

.user-profile-action-menu__panel {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  z-index: 30;
  width: 19rem;
  padding: 0.6rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 1.6rem 4rem rgba(15, 23, 42, 0.16);
}
.user-profile-action-menu__panel[hidden] {
  display: none;
}

.user-profile-action-menu__item {
  width: 100%;
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.user-profile-action-menu__item svg {
  width: 1.8rem;
  height: 1.8rem;
}
.user-profile-action-menu__item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.3rem rgba(37, 99, 235, 0.1);
}

.user-profile-action-menu__item--danger {
  color: #b42318;
}
.user-profile-action-menu__item--danger:hover, .user-profile-action-menu__item--danger:focus-visible {
  background: #fff1f0;
  color: #912018;
}

/* =========================================================
   DELETE USER MODAL
========================================================= */
html.user-delete-modal-is-open {
  overflow: hidden;
}

.user-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.user-delete-modal[hidden] {
  display: none;
}

.user-delete-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(0.25rem);
}

.user-delete-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 52rem);
  padding: 2.4rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 2.4rem 7rem rgba(15, 23, 42, 0.26);
}

.user-delete-modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 3.8rem;
  height: 3.8rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999rem;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.user-delete-modal__close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}
.user-delete-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}

.user-delete-modal__warning {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.6rem;
  border-radius: 999rem;
  background: #fee4e2;
  color: #b42318;
  font-size: 2.2rem;
  font-weight: 900;
}

.user-delete-modal__content h2 {
  margin: 0;
  color: #0f172a;
  font-size: 2.2rem;
  font-weight: 850;
  line-height: 1.2;
}
.user-delete-modal__content p {
  margin: 1rem 0 0;
  color: #64748b;
  font-size: 1.3rem;
  line-height: 1.55;
}
.user-delete-modal__content p strong {
  color: #0f172a;
}

.user-delete-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2.2rem;
}

.user-delete-modal__confirm {
  border: 0.1rem solid #b42318;
  background: #b42318;
  color: #ffffff;
}
.user-delete-modal__confirm:hover {
  border-color: #912018;
  background: #912018;
}
.user-delete-modal__confirm:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(180, 35, 24, 0.2);
}
.user-delete-modal__confirm:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 560px) {
  .user-profile-action-menu {
    width: auto;
  }
  .user-profile-more-button {
    width: 4.6rem;
  }
  .user-profile-action-menu__panel {
    right: 0;
    width: min(19rem, 100vw - 4rem);
  }
  .user-delete-modal {
    align-items: end;
    padding: 1rem;
  }
  .user-delete-modal__panel {
    width: 100%;
    padding: 2rem;
    border-radius: 1.8rem 1.8rem 0 0;
  }
  .user-delete-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .user-delete-modal__actions .btn {
    width: 100%;
  }
}
/* =========================================================
   CLIENTS PAGE
========================================================= */
.clients-page {
  position: relative;
  isolation: isolate;
  padding-bottom: 3rem;
}
.clients-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(37, 99, 235, 0.022) 0.1rem, transparent 0.1rem), linear-gradient(90deg, rgba(37, 99, 235, 0.022) 0.1rem, transparent 0.1rem);
  background-size: 5.2rem 5.2rem;
  -webkit-mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.18), transparent 64%);
  mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.18), transparent 64%);
}

/* =========================================================
   PAGE HEADER
========================================================= */
.clients-page__header {
  margin-bottom: 1.8rem;
}

/* =========================================================
   MAIN PANEL
========================================================= */
.clients-panel {
  min-width: 0;
  overflow: hidden;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 2.2rem;
  background: #ffffff;
  box-shadow: 0 0.8rem 2.4rem rgba(15, 23, 42, 0.035), 0 0.2rem 0.6rem rgba(15, 23, 42, 0.02);
}

.clients-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.2rem 1.6rem;
}

.clients-panel__heading {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.clients-panel__heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.clients-panel__count {
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border-radius: 999rem;
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

/* =========================================================
   TOOLBAR
========================================================= */
.clients-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
}

.clients-toolbar__add {
  flex: 0 0 auto;
  min-height: 4rem;
  padding-inline: 1.5rem;
  border-radius: 1rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.clients-toolbar__add-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
}

/* =========================================================
   SEARCH
========================================================= */
.clients-search {
  position: relative;
  width: 27rem;
  min-width: 20rem;
  display: flex;
  align-items: center;
}

.clients-search__icon {
  position: absolute;
  left: 1.35rem;
  z-index: 1;
  width: 1.25rem;
  height: 1.25rem;
  border: 0.17rem solid #64748b;
  border-radius: 50%;
  pointer-events: none;
}
.clients-search__icon::after {
  content: "";
  position: absolute;
  right: -0.52rem;
  bottom: -0.28rem;
  width: 0.62rem;
  height: 0.17rem;
  border-radius: 999rem;
  background: #64748b;
  transform: rotate(45deg);
}

.clients-search input {
  width: 100%;
  height: 4rem;
  padding: 0 1.4rem 0 4rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 550;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.clients-search input::placeholder {
  color: #64748b;
}
.clients-search input:hover {
  border-color: rgba(100, 116, 139, 0.46);
}
.clients-search input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}

/* =========================================================
   STATUS FILTER
========================================================= */
.clients-filter {
  position: relative;
  min-width: 14rem;
  display: flex;
  align-items: center;
}

.clients-filter__label {
  position: absolute;
  left: 1.2rem;
  top: 0.55rem;
  z-index: 1;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.clients-filter select {
  width: 100%;
  height: 4rem;
  padding: 1.35rem 3.4rem 0.35rem 1.2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background-color: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.clients-filter select:hover {
  border-color: rgba(100, 116, 139, 0.46);
}
.clients-filter select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}

/* =========================================================
   TABLE
========================================================= */
.clients-table-wrapper {
  padding-top: 0;
}

.clients-table {
  --list-table-min-width: 105rem;
}

.clients-table__row {
  outline: none;
}
.clients-table__row:focus-visible {
  background: rgba(37, 99, 235, 0.045);
  box-shadow: inset 0 0 0 0.2rem rgba(37, 99, 235, 0.26);
}

/* =========================================================
   CLIENT IDENTITY
========================================================= */
.clients-table__client {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.clients-table__avatar {
  flex: 0 0 4rem;
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.1rem;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.02em;
}

.clients-table__avatar--blue {
  background: rgba(37, 99, 235, 0.09);
  color: #2563eb;
}

.clients-table__avatar--green {
  background: rgba(22, 163, 74, 0.09);
  color: #166534;
}

.clients-table__avatar--orange {
  background: #fff7ed;
  color: #c2410c;
}

.clients-table__avatar--purple {
  background: #f5f3ff;
  color: #6d28d9;
}

.clients-table__avatar--red {
  background: #fef2f2;
  color: #b91c1c;
}

.clients-table__avatar--cyan {
  background: rgba(96, 165, 250, 0.12);
  color: #1d4ed8;
}

.clients-table__avatar--slate {
  background: #f1f5f9;
  color: #475569;
}

.clients-table__identity {
  min-width: 0;
}

.clients-table__name,
.clients-table__meta {
  display: block;
}

.clients-table__name {
  max-width: 24rem;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease;
}
.clients-table__name:hover {
  color: #2563eb;
}
.clients-table__name:focus-visible {
  outline: none;
  border-radius: 0.3rem;
  box-shadow: 0 0 0 0.3rem rgba(37, 99, 235, 0.1);
}

.clients-table__meta {
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

/* =========================================================
   TABLE VALUES
========================================================= */
.clients-table__value {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 700;
}

.clients-table__remaining {
  color: #2563eb;
  font-size: 1.35rem;
  font-weight: 850;
}

.clients-table__date span,
.clients-table__date small {
  display: block;
}
.clients-table__date span {
  color: #334155;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.25;
}
.clients-table__date small {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1.2;
}

/* =========================================================
   PANEL FOOTER
========================================================= */
.clients-panel__footer {
  min-height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 2.2rem;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
}

.clients-panel__result-text {
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 600;
}

.clients-pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.clients-pagination__button {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 0.9rem;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.clients-pagination__button:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.28);
  color: #2563eb;
}
.clients-pagination__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.1);
}
.clients-pagination__button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.7;
}

.clients-pagination__button--active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}
.clients-pagination__button--active:hover {
  background: #1d4ed8;
  color: #ffffff;
}

/* =========================================================
   USERS TABLE
========================================================= */
.users-table {
  --list-table-min-width: 105rem;
}

/* =========================================================
   USERS PAGE FEEDBACK
========================================================= */
.users-feedback {
  min-height: 5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding: 1.2rem 1.5rem;
  border: 0.1rem solid transparent;
  border-radius: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.users-feedback p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
}
.users-feedback > span {
  flex: 0 0 2.7rem;
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 999rem;
  font-size: 1.4rem;
  font-weight: 900;
}
.users-feedback.is-hiding {
  opacity: 0;
  transform: translateY(-0.8rem);
  pointer-events: none;
}

.users-feedback--success {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}
.users-feedback--success > span {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.users-feedback--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
.users-feedback--error > span {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

/* =========================================================
   RESPONSIVE — MEDIUM DESKTOP
========================================================= */
@media (max-width: 1180px) {
  .clients-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }
  .clients-toolbar {
    width: 100%;
    justify-content: space-between;
  }
  .clients-search {
    flex: 1;
    width: auto;
  }
}
/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media (max-width: 880px) {
  .clients-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .clients-search,
  .clients-filter {
    width: 100%;
    min-width: 0;
  }
}
/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media (max-width: 680px) {
  .clients-panel__header {
    padding: 1.6rem;
  }
  .clients-table-wrapper {
    padding: 0 1.6rem 1.6rem;
  }
  .clients-panel__footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.6rem;
  }
  .clients-pagination {
    width: 100%;
    justify-content: flex-end;
  }
}
/* =========================================================
   CLIENT PROFILE PAGE
========================================================= */
.client-profile-layout {
  min-height: 100vh;
}

.client-profile-page {
  position: relative;
  isolation: isolate;
  padding-bottom: 3rem;
}

.client-profile-page__header {
  margin-bottom: 1.8rem;
}

.client-profile-form {
  display: block;
  min-width: 0;
}

/* =========================================================
   CLIENT HERO
========================================================= */
.client-profile-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
  margin-bottom: 2rem;
  padding: 2rem 2.4rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 0.8rem 2.4rem rgba(15, 23, 42, 0.035);
}

.client-profile-hero__avatar {
  flex: 0 0 8.4rem;
  width: 8.4rem;
  height: 8.4rem;
  display: grid;
  place-items: center;
  border-radius: 999rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb 58%, #1d4ed8);
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 1.2rem 2.8rem rgba(37, 99, 235, 0.2);
}

.client-profile-hero__identity {
  min-width: 0;
  flex: 1 1 auto;
}

.client-profile-hero__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.client-profile-hero__title h1 {
  margin: 0;
  color: #0f172a;
  font-size: 3rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.client-profile-hero__metadata {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
  color: #64748b;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.45;
}

.client-profile-hero__metadata-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.client-profile-hero__metadata-item svg {
  flex: 0 0 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
}

.client-profile-hero__separator {
  color: #94a3b8;
}

.client-profile-hero__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.client-profile-hero__actions .btn {
  min-height: 4.6rem;
  font-size: 1.2rem;
}

.client-profile-button-icon {
  width: 1.7rem;
  height: 1.7rem;
}

.client-profile-more-icon {
  width: 1.8rem;
  height: 1.8rem;
}

.client-profile-more-button {
  padding-inline: 1.5rem;
}

#clientEditActions .btn {
  min-width: 13rem;
}

#saveClientButton:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* =========================================================
   HIDDEN ELEMENTS
========================================================= */
.client-profile-inline-view[hidden],
.client-profile-inline-edit[hidden],
#clientViewActions[hidden],
#clientEditActions[hidden],
.client-profile-validation-summary[hidden] {
  display: none;
}

/* =========================================================
   VALIDATION SUMMARY
========================================================= */
.client-profile-validation-summary {
  margin-bottom: 2rem;
  padding: 1.5rem 1.8rem;
  border: 0.1rem solid #fecaca;
  border-radius: 1.2rem;
  background: #fef2f2;
  color: #b91c1c;
}
.client-profile-validation-summary strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.4;
}
.client-profile-validation-summary p {
  margin: 0.35rem 0 0;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
}

/* =========================================================
   PROFILE GRID
========================================================= */
.client-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 2rem;
}

/* =========================================================
   PROFILE CARDS
========================================================= */
.client-profile-card {
  min-width: 0;
  overflow: hidden;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 0.7rem 2rem rgba(15, 23, 42, 0.03);
}

.client-profile-card__header {
  min-height: 7.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.8rem;
}
.client-profile-card__header h2 {
  min-width: 0;
  margin: 0;
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.3;
}

.client-profile-card__icon {
  flex: 0 0 3.8rem;
  width: 3.8rem;
  height: 3.8rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}
.client-profile-card__icon svg {
  width: 1.9rem;
  height: 1.9rem;
}

/* =========================================================
   INFORMATION ROWS
========================================================= */
.client-profile-details {
  display: grid;
  margin: 0;
  padding: 0 1.8rem 1.4rem;
}

.client-profile-details__row {
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: minmax(13rem, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 1.4rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
  transition: background-color 160ms ease, min-height 160ms ease;
}
.client-profile-details__row:last-child {
  border-bottom: 0;
}
.client-profile-details__row dt,
.client-profile-details__row dd {
  min-width: 0;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
}
.client-profile-details__row dt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #64748b;
  font-weight: 600;
}
.client-profile-details__row dt span,
.client-profile-details__row dt label {
  color: inherit;
  font: inherit;
}
.client-profile-details__row dt label {
  cursor: default;
}
.client-profile-details__row dt svg {
  flex: 0 0 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
}
.client-profile-details__row dd {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-weight: 700;
}

.client-profile-details__row dd.client-profile-details__remaining {
  color: #2563eb;
  font-size: 1.4rem;
  font-weight: 850;
}

.client-profile-details__row--invalid {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.04), transparent);
}

/* =========================================================
   INLINE VIEW VALUES
========================================================= */
.client-profile-inline-view {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* =========================================================
   INLINE EDIT CONTROLS
========================================================= */
.client-profile-inline-edit {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 0.55rem;
}
.client-profile-inline-edit input,
.client-profile-inline-edit select {
  width: 100%;
  min-width: 0;
  height: 4.2rem;
  padding: 0 1.2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.3;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.client-profile-inline-edit input::placeholder,
.client-profile-inline-edit select::placeholder {
  color: #7c8ba1;
  font-weight: 550;
}
.client-profile-inline-edit input:hover,
.client-profile-inline-edit select:hover {
  border-color: rgba(100, 116, 139, 0.46);
}
.client-profile-inline-edit input:focus,
.client-profile-inline-edit select:focus {
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}
.client-profile-inline-edit select {
  appearance: auto;
  cursor: pointer;
}
.client-profile-inline-edit input.client-profile-inline-control--invalid,
.client-profile-inline-edit select.client-profile-inline-control--invalid {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.018);
  box-shadow: 0 0 0 0.3rem rgba(220, 38, 38, 0.07);
}

.client-profile-inline-error {
  margin: 0;
  color: #b91c1c;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

/* =========================================================
   EDIT MODE
========================================================= */
.client-profile-form.is-editing .client-profile-details__row {
  min-height: 6.4rem;
}
.client-profile-form.is-editing .client-profile-details__row:has(.client-profile-inline-edit) {
  padding-block: 0.8rem;
}
.client-profile-form.is-editing .client-profile-details__row dt label {
  color: #334155;
  font-size: 1.25rem;
  font-weight: 650;
  cursor: pointer;
}

/* =========================================================
   RESPONSIVE — DESKTOP
========================================================= */
@media (max-width: 1250px) {
  .client-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .client-profile-card:last-child {
    grid-column: 1/-1;
  }
  .client-profile-card:last-child .client-profile-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }
  .client-profile-card:last-child .client-profile-details__row:nth-last-child(2) {
    border-bottom: 0;
  }
  .client-profile-form.is-editing .client-profile-card:last-child .client-profile-details {
    grid-template-columns: 1fr;
  }
  .client-profile-form.is-editing .client-profile-card:last-child .client-profile-details__row:nth-last-child(2) {
    border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
  }
}
/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media (max-width: 980px) {
  .client-profile-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .client-profile-hero__actions {
    width: 100%;
    padding-left: 10.4rem;
  }
  .client-profile-grid {
    grid-template-columns: 1fr;
  }
  .client-profile-card:last-child {
    grid-column: auto;
  }
  .client-profile-card:last-child .client-profile-details {
    grid-template-columns: 1fr;
  }
  .client-profile-card:last-child .client-profile-details__row:nth-last-child(2) {
    border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
  }
}
/* =========================================================
   RESPONSIVE — SMALL TABLET
========================================================= */
@media (max-width: 760px) {
  .client-profile-hero {
    align-items: center;
  }
  .client-profile-hero__avatar {
    flex-basis: 7rem;
    width: 7rem;
    height: 7rem;
    font-size: 2.3rem;
  }
  .client-profile-hero__title h1 {
    font-size: 2.5rem;
  }
  .client-profile-hero__metadata {
    font-size: 1.2rem;
  }
  .client-profile-hero__actions {
    padding-left: 0;
  }
  .client-profile-hero__actions .btn {
    flex: 1;
  }
  #clientEditActions {
    width: 100%;
  }
  #clientEditActions .btn {
    min-width: 0;
  }
}
/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media (max-width: 560px) {
  .client-profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.4rem;
    padding: 1.6rem;
  }
  .client-profile-hero__avatar {
    flex-basis: 5.8rem;
    width: 5.8rem;
    height: 5.8rem;
    font-size: 1.9rem;
  }
  .client-profile-hero__title {
    gap: 0.8rem;
  }
  .client-profile-hero__title h1 {
    font-size: 2.2rem;
  }
  .client-profile-hero__title .status {
    min-height: 2.4rem;
    padding-inline: 0.85rem;
    font-size: 1.05rem;
  }
  .client-profile-hero__metadata {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 1.15rem;
  }
  .client-profile-hero__separator {
    display: none;
  }
  .client-profile-hero__actions {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr;
  }
  .client-profile-hero__actions .btn {
    width: 100%;
  }
  .client-profile-card__header {
    min-height: 6.4rem;
    padding: 1.2rem 1.3rem;
  }
  .client-profile-card__header h2 {
    font-size: 1.4rem;
  }
  .client-profile-card__icon {
    flex-basis: 3.5rem;
    width: 3.5rem;
    height: 3.5rem;
  }
  .client-profile-card__action {
    font-size: 1rem;
  }
  .client-profile-details {
    padding-inline: 1.3rem;
  }
  .client-profile-details__row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.1rem 0;
  }
  .client-profile-details__row dt,
  .client-profile-details__row dd {
    font-size: 1.15rem;
  }
  .client-profile-details__row dd {
    padding-left: 2.55rem;
  }
  .client-profile-form.is-editing .client-profile-details__row {
    min-height: auto;
    padding-block: 1.2rem;
  }
  .client-profile-form.is-editing .client-profile-details__row dd {
    width: 100%;
    padding-left: 0;
  }
  .client-profile-inline-edit input,
  .client-profile-inline-edit select {
    height: 4.6rem;
    font-size: 1.25rem;
  }
  #clientEditActions {
    display: grid;
    grid-template-columns: 1fr;
  }
  #clientEditActions .btn {
    width: 100%;
  }
}
/* =========================================================
   CREATE FORM PAGE SHELL
========================================================= */
.create-form-layout {
  min-height: 100vh;
}

.create-form-page {
  position: relative;
  isolation: isolate;
  padding-bottom: 3rem;
}
.create-form-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(37, 99, 235, 0.022) 0.1rem, transparent 0.1rem), linear-gradient(90deg, rgba(37, 99, 235, 0.022) 0.1rem, transparent 0.1rem);
  background-size: 5.2rem 5.2rem;
  -webkit-mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.18), transparent 64%);
  mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.18), transparent 64%);
}

.create-form-page__header {
  margin-bottom: 2rem;
}

/* =========================================================
   FORM
========================================================= */
.create-form {
  display: grid;
  gap: 2rem;
}

/* =========================================================
   ERROR SUMMARY
========================================================= */
.create-form__error-summary {
  padding: 1.6rem 1.8rem;
  border: 0.1rem solid #fecaca;
  border-radius: 1.2rem;
  background: #fef2f2;
  color: #b91c1c;
}
.create-form__error-summary strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.4;
}
.create-form__error-summary p {
  margin: 0.4rem 0 0;
  color: inherit;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.5;
}

/* =========================================================
   FORM CARD
========================================================= */
.create-form__card {
  min-width: 0;
  overflow: hidden;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 2.2rem;
  background: #ffffff;
  box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.045), 0 0.2rem 0.7rem rgba(15, 23, 42, 0.02);
}

.create-form__divider {
  height: 0.1rem;
  margin: 0 2.8rem;
  background: rgba(148, 163, 184, 0.24);
}

/* =========================================================
   FORM SECTIONS
========================================================= */
.create-form__section {
  padding: 2.8rem;
}

.create-form__section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.6rem;
}

.create-form__step {
  flex: 0 0 4.2rem;
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  border-radius: 1.2rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 1.75rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 0 0 0.1rem rgba(37, 99, 235, 0.08);
}

.create-form__section-heading {
  min-width: 0;
}
.create-form__section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.create-form__section-heading p {
  margin: 0.45rem 0 0;
  color: #64748b;
  font-size: 1.25rem;
  font-weight: 550;
  line-height: 1.5;
}

/* =========================================================
   FIELD GRID
========================================================= */
.create-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 2.2rem;
}

.create-form__grid--spaced {
  margin-top: 2.4rem;
}

/* =========================================================
   FIELDS
========================================================= */
.create-form__field {
  min-width: 0;
  display: grid;
  align-content: start;
}
.create-form__field > label {
  min-height: 2.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.4;
}
.create-form__field > input,
.create-form__field > select {
  width: 100%;
  height: 5rem;
  padding: 0 1.5rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 600;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, opacity 160ms ease;
}
.create-form__field > input::placeholder,
.create-form__field > select::placeholder {
  color: #7c8ba1;
  font-size: 1.25rem;
  font-weight: 550;
}
.create-form__field > input:hover:not(:disabled),
.create-form__field > select:hover:not(:disabled) {
  border-color: rgba(100, 116, 139, 0.46);
}
.create-form__field > input:focus,
.create-form__field > select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}
.create-form__field > input:disabled,
.create-form__field > select:disabled {
  cursor: not-allowed;
  background: #f8fbff;
  color: #64748b;
  opacity: 0.72;
}

.create-form__required {
  color: #dc2626;
  font-size: 1.4rem;
  font-weight: 900;
}

.create-form__optional {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 650;
}

/* =========================================================
   CONTROL WITH ICON
========================================================= */
.create-form__control {
  position: relative;
  min-width: 0;
}
.create-form__control input,
.create-form__control select {
  width: 100%;
  height: 5rem;
  padding: 0 4rem 0 4.4rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 600;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, opacity 160ms ease;
}
.create-form__control input::placeholder,
.create-form__control select::placeholder {
  color: #7c8ba1;
  font-size: 1.25rem;
  font-weight: 550;
}
.create-form__control input:hover:not(:disabled),
.create-form__control select:hover:not(:disabled) {
  border-color: rgba(100, 116, 139, 0.46);
}
.create-form__control input:focus,
.create-form__control select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}
.create-form__control input:disabled,
.create-form__control select:disabled {
  cursor: not-allowed;
  background: #f8fbff;
  color: #64748b;
  opacity: 0.72;
}
.create-form__control select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 1.75rem) 2.15rem, calc(100% - 1.3rem) 2.15rem;
  background-size: 0.45rem 0.45rem, 0.45rem 0.45rem;
  background-repeat: no-repeat;
}

.create-form__control-icon {
  position: absolute;
  top: 50%;
  left: 1.5rem;
  z-index: 1;
  width: 1.8rem;
  height: 1.8rem;
  color: #64748b;
  pointer-events: none;
  transform: translateY(-50%);
}

.create-form__control-status {
  position: absolute;
  top: 50%;
  left: 1.6rem;
  z-index: 1;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999rem;
  pointer-events: none;
  transform: translateY(-50%);
}

.create-form__control-status--active {
  background: #16a34a;
  box-shadow: 0 0 0 0.3rem rgba(22, 163, 74, 0.08);
}

/* =========================================================
   FIELD STATES
========================================================= */
.create-form__input--invalid {
  border-color: #dc2626 !important;
  background-color: rgba(220, 38, 38, 0.018) !important;
  box-shadow: 0 0 0 0.3rem rgba(220, 38, 38, 0.07) !important;
}

.create-form__help,
.create-form__error {
  min-height: 1.9rem;
  margin: 0.65rem 0 0;
  font-size: 1.15rem;
  line-height: 1.5;
}

.create-form__help {
  color: #64748b;
  font-weight: 550;
}

.create-form__error {
  color: #b91c1c;
  font-weight: 700;
}

/* =========================================================
   SEGMENTED CHOICE
========================================================= */
.create-form__choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 2.2rem;
  row-gap: 0.8rem;
  margin-top: 2.4rem;
  padding: 1.8rem 2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.2rem;
  background: #f8fbff;
}
.create-form__choice > .create-form__error {
  grid-column: 1/-1;
  margin-top: 0;
}

.create-form__choice-heading {
  min-width: 0;
}
.create-form__choice-heading > span {
  display: block;
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1.4;
}
.create-form__choice-heading p {
  margin: 0.4rem 0 0;
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 550;
  line-height: 1.5;
}

.create-form__choice-options {
  min-width: 27rem;
  height: 4.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
}

.create-form__choice-input {
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  padding: 0;
  margin: -0.1rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.create-form__choice-option {
  position: relative;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1.2rem;
  color: #334155;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.create-form__choice-option:first-of-type {
  border-right: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.create-form__choice-option:hover {
  background: rgba(37, 99, 235, 0.035);
}

.create-form__choice-input:checked + .create-form__choice-option {
  z-index: 1;
  background: rgba(37, 99, 235, 0.075);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 0.1rem rgba(37, 99, 235, 0.48);
}

.create-form__choice-input:focus-visible + .create-form__choice-option {
  z-index: 2;
  outline: none;
  box-shadow: inset 0 0 0 0.15rem #2563eb, 0 0 0 0.3rem rgba(37, 99, 235, 0.1);
}

.create-form__choice-indicator {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999rem;
}

.create-form__choice-indicator--active {
  background: #16a34a;
  box-shadow: 0 0 0 0.3rem rgba(22, 163, 74, 0.08);
}

.create-form__choice-indicator--inactive {
  background: #94a3b8;
  box-shadow: 0 0 0 0.3rem rgba(148, 163, 184, 0.09);
}

/* =========================================================
   ACTION BAR
========================================================= */
.create-form__actions {
  position: sticky;
  bottom: 1.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.5rem 1.8rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1.2rem 3.2rem rgba(15, 23, 42, 0.08), 0 0.3rem 1rem rgba(37, 99, 235, 0.04);
  backdrop-filter: blur(1.2rem);
}
.create-form__actions .btn {
  min-width: 14rem;
  min-height: 4.8rem;
  font-size: 1.25rem;
}

.create-form__action-icon {
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
}

/* =========================================================
   RESPONSIVE — MEDIUM DESKTOP
========================================================= */
@media (max-width: 1180px) {
  .create-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .create-form__metadata-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media (max-width: 880px) {
  .create-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .create-form__choice {
    grid-template-columns: minmax(0, 1fr);
  }
  .create-form__choice-options {
    width: 100%;
    min-width: 0;
  }
  .create-form__metadata-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media (max-width: 680px) {
  .create-form-page {
    padding-bottom: 2rem;
  }
  .create-form__section {
    padding: 2rem 1.7rem;
  }
  .create-form__section-header {
    gap: 1.2rem;
    margin-bottom: 2.2rem;
  }
  .create-form__step {
    flex-basis: 3.8rem;
    width: 3.8rem;
    height: 3.8rem;
    font-size: 1.55rem;
  }
  .create-form__section-heading h2 {
    font-size: 1.65rem;
  }
  .create-form__section-heading p {
    font-size: 1.15rem;
  }
  .create-form__divider {
    margin-inline: 1.7rem;
  }
  .create-form__choice {
    margin-top: 2rem;
    padding: 1.6rem;
  }
  .create-form__metadata {
    margin: 0 1.7rem 1.7rem;
    padding: 1.6rem;
  }
  .create-form__actions {
    position: static;
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .create-form__actions .btn {
    width: 100%;
  }
}
/* =========================================================
   TICKET CREATE PAGE LAYOUT
========================================================= */
.ticket-create-layout {
  min-height: 100vh;
}

.ticket-create-page {
  position: relative;
  isolation: isolate;
  padding-bottom: 3rem;
}
.ticket-create-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(37, 99, 235, 0.022) 0.1rem, transparent 0.1rem), linear-gradient(90deg, rgba(37, 99, 235, 0.022) 0.1rem, transparent 0.1rem);
  background-size: 5.2rem 5.2rem;
  -webkit-mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.18), transparent 64%);
  mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.18), transparent 64%);
}

.ticket-create-page__header {
  margin-bottom: 2rem;
}

/* =========================================================
   TICKET CREATE FORM
========================================================= */
.ticket-create-form {
  display: grid;
  gap: 1.8rem;
}

/* =========================================================
   GLOBAL ERROR SUMMARY
========================================================= */
.ticket-create-form__error-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1.2rem;
  padding: 1.6rem 1.8rem;
  border: 0.1rem solid #fecaca;
  border-radius: 1.2rem;
  background: #fef2f2;
  color: #b91c1c;
}
.ticket-create-form__error-summary strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.4;
}
.ticket-create-form__error-summary p {
  margin: 0.35rem 0 0;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
}

.ticket-create-form__error-icon {
  width: 2.2rem;
  height: 2.2rem;
  color: #dc2626;
}
.ticket-create-form__error-icon svg {
  width: 100%;
  height: 100%;
}

/* =========================================================
   QUOTA AVAILABILITY
========================================================= */
.ticket-create-form__availability {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1.2rem;
  padding: 1.5rem 1.7rem;
  border-radius: 1.2rem;
}
.ticket-create-form__availability strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.4;
}
.ticket-create-form__availability p {
  margin: 0.3rem 0 0;
  font-size: 1.15rem;
  font-weight: 550;
  line-height: 1.5;
}

.ticket-create-form__availability--error {
  border: 0.1rem solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.ticket-create-form__availability-icon {
  width: 2.1rem;
  height: 2.1rem;
  color: currentColor;
}
.ticket-create-form__availability-icon svg {
  width: 100%;
  height: 100%;
}

/* =========================================================
   MAIN FORM CARD
========================================================= */
.ticket-create-card {
  min-width: 0;
  overflow: hidden;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 2.2rem;
  background: #ffffff;
  box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.045), 0 0.2rem 0.7rem rgba(15, 23, 42, 0.02);
}

.ticket-create-card__body {
  display: grid;
  gap: 2.4rem;
  padding: 2.8rem;
}

/* =========================================================
   FORM FIELD
========================================================= */
.ticket-create-field {
  min-width: 0;
}
.ticket-create-field > label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.4;
}

.ticket-create-field__required {
  color: #dc2626;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

/* =========================================================
   TICKET ATTACHMENT
========================================================= */
.ticket-create-attachment {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.ticket-create-attachment__input {
  width: 100%;
  min-height: 5.2rem;
  padding: 0.75rem 1rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.ticket-create-attachment__input::file-selector-button {
  min-height: 3.6rem;
  margin-right: 1.2rem;
  padding: 0 1.3rem;
  border: 0.1rem solid rgba(37, 99, 235, 0.22);
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.055);
  color: #2563eb;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.ticket-create-attachment__input:hover:not(:disabled) {
  border-color: rgba(100, 116, 139, 0.46);
}
.ticket-create-attachment__input:hover:not(:disabled)::file-selector-button {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}
.ticket-create-attachment__input:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}
.ticket-create-attachment__input[aria-invalid=true] {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.018);
  box-shadow: 0 0 0 0.3rem rgba(220, 38, 38, 0.07);
}
.ticket-create-attachment__input:disabled {
  cursor: not-allowed;
  background: #f8fbff;
  color: #64748b;
  opacity: 0.72;
}
.ticket-create-attachment__input:disabled::file-selector-button {
  cursor: not-allowed;
}

#ticketAttachmentError[hidden] {
  display: none !important;
}

/* =========================================================
   SUBJECT INPUT
========================================================= */
.ticket-create-field__control {
  position: relative;
  min-width: 0;
}
.ticket-create-field__control input {
  width: 100%;
  height: 5.2rem;
  padding: 0 1.6rem 0 4.6rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 600;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.ticket-create-field__control input::placeholder {
  color: #7c8ba1;
  font-size: 1.25rem;
  font-weight: 550;
}
.ticket-create-field__control input:hover:not(:disabled) {
  border-color: rgba(100, 116, 139, 0.46);
}
.ticket-create-field__control input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}
.ticket-create-field__control input:disabled {
  cursor: not-allowed;
  background: #f8fbff;
  color: #64748b;
  opacity: 0.72;
}

.ticket-create-field__icon {
  position: absolute;
  top: 50%;
  left: 1.6rem;
  z-index: 1;
  width: 1.8rem;
  height: 1.8rem;
  color: #64748b;
  pointer-events: none;
  transform: translateY(-50%);
}

/* =========================================================
   MESSAGE TEXTAREA
========================================================= */
.ticket-create-field__textarea {
  display: block;
  width: 100%;
  min-height: 17rem;
  padding: 1.5rem 1.6rem;
  resize: vertical;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 550;
  line-height: 1.6;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.ticket-create-field__textarea::placeholder {
  color: #7c8ba1;
  font-size: 1.25rem;
  font-weight: 550;
}
.ticket-create-field__textarea:hover:not(:disabled) {
  border-color: rgba(100, 116, 139, 0.46);
}
.ticket-create-field__textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}
.ticket-create-field__textarea:disabled {
  cursor: not-allowed;
  background: #f8fbff;
  color: #64748b;
  opacity: 0.72;
}

/* =========================================================
   FIELD VALIDATION
========================================================= */
.ticket-create-field__input--invalid {
  border-color: #dc2626 !important;
  background: rgba(220, 38, 38, 0.018) !important;
  box-shadow: 0 0 0 0.3rem rgba(220, 38, 38, 0.07) !important;
}

.ticket-create-field__help,
.ticket-create-field__error {
  min-height: 1.9rem;
  margin: 0.65rem 0 0;
  font-size: 1.15rem;
  line-height: 1.5;
}

.ticket-create-field__help {
  color: #64748b;
  font-weight: 550;
}

.ticket-create-field__error {
  color: #b91c1c;
  font-weight: 700;
}

/* =========================================================
   AUTOMATIC INFORMATION STRIP
========================================================= */
.ticket-create-information {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 1.7rem;
  border: 0.1rem solid rgba(37, 99, 235, 0.16);
  border-radius: 1.2rem;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.055), rgba(37, 99, 235, 0.012));
  color: #334155;
}

.ticket-create-information__icon {
  width: 2.2rem;
  height: 2.2rem;
  color: #2563eb;
}
.ticket-create-information__icon svg {
  width: 100%;
  height: 100%;
}

.ticket-create-information__content {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.ticket-create-information__content p {
  margin: 0;
  color: #334155;
  font-size: 1.15rem;
  font-weight: 550;
  line-height: 1.5;
}

.ticket-create-information__quota {
  flex-shrink: 0;
  padding: 0.7rem 1rem;
  border: 0.1rem solid rgba(37, 99, 235, 0.18);
  border-radius: 999rem;
  background: rgba(255, 255, 255, 0.7);
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.ticket-create-information__quota strong {
  color: #1d4ed8;
  font-weight: 800;
}

/* =========================================================
   FORM ACTIONS
========================================================= */
.ticket-create-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  padding: 1.5rem 1.8rem;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: rgba(248, 251, 255, 0.68);
}
.ticket-create-card__actions .btn {
  min-width: 14rem;
  min-height: 4.8rem;
  font-size: 1.25rem;
}
.ticket-create-card__actions button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}

.ticket-create-card__submit-icon {
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */
.sr-only {
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  padding: 0;
  margin: -0.1rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media (max-width: 880px) {
  .ticket-create-information__content {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
  .ticket-create-information__quota {
    white-space: normal;
  }
}
/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media (max-width: 680px) {
  .ticket-create-page {
    padding-bottom: 2rem;
  }
  .ticket-create-card__body {
    padding: 2rem 1.7rem;
  }
  .ticket-create-field__textarea {
    min-height: 14rem;
  }
  .ticket-create-card__actions {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 1.5rem 1.7rem;
  }
  .ticket-create-card__actions .btn {
    width: 100%;
  }
  .ticket-create-information {
    align-items: start;
  }
}
/* =====================================================
   TICKET UNREAD STATE
   Shared by admin and client ticket tables.
====================================================== */
.tickets-table__row--unread > td,
.client-ticket-table__row--unread > td {
  background: rgba(37, 99, 235, 0.045);
  border-bottom-color: rgba(37, 99, 235, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.tickets-table__row--unread:hover > td,
.client-ticket-table__row--unread:hover > td {
  background: rgba(37, 99, 235, 0.075);
}

/* Admin table: requester and subject carry the unread emphasis. */
.tickets-table__row--unread td:nth-child(2) .tickets-table__identifier,
.tickets-table__row--unread .tickets-table__subject {
  color: #0f172a;
  font-weight: 700;
}
.tickets-table__row--unread .list-table__link {
  font-weight: 700;
}

/* Client table: subject carries the unread emphasis. */
.client-ticket-table__row--unread .client-ticket-subject__link {
  color: #0f172a;
  font-weight: 700;
}
.client-ticket-table__row--unread .client-ticket-subject__id {
  color: #1d4ed8;
  font-weight: 600;
}

/* Admin ticket-ID wrapper. */
.tickets-table__ticket-id-cell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

/* Shared unread indicator. */
.tickets-table__unread-dot,
.client-ticket-subject__unread-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 0.3rem rgba(37, 99, 235, 0.1);
}

/* =========================================================
   NOTIFICATIONS PAGE
========================================================= */
.notifications-page {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  min-width: 0;
}

.notifications-page__header {
  margin-bottom: 0;
}

/* =========================================================
   MAIN PANEL
========================================================= */
.notifications-panel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 1.2rem 3rem rgba(15, 23, 42, 0.05), 0 0.3rem 0.9rem rgba(15, 23, 42, 0.03);
}

.notifications-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 2.4rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}

.notifications-panel__heading {
  min-width: 0;
}
.notifications-panel__heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
}
.notifications-panel__heading p {
  max-width: 66rem;
  margin: 0.6rem 0 0;
  color: #64748b;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.55;
}

.notifications-panel__create {
  flex-shrink: 0;
}

.notifications-panel__create-icon {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
}

/* =========================================================
   TABS
========================================================= */
.notifications-tabs {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0 2.4rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
}

.notifications-tabs__button {
  position: relative;
  min-height: 5.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0 1.4rem;
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 750;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.notifications-tabs__button::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  bottom: -0.1rem;
  left: 1.4rem;
  height: 0.25rem;
  border-radius: 999rem 999rem 0 0;
  background: transparent;
  transition: background-color 0.18s ease;
}
.notifications-tabs__button:hover {
  color: #0f172a;
  background: #eff6ff;
}
.notifications-tabs__button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.notifications-tabs__button--active,
.notifications-tabs__button[aria-selected=true] {
  color: #2563eb;
}
.notifications-tabs__button--active::after,
.notifications-tabs__button[aria-selected=true]::after {
  background: #2563eb;
}

.notifications-tabs__count {
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.55rem;
  border-radius: 999rem;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.notifications-tabs__count[hidden] {
  display: none;
}

/* =========================================================
   TAB PANELS
========================================================= */
.notifications-tab-panel {
  display: none;
  min-width: 0;
}

.notifications-tab-panel--active {
  display: block;
}

.notifications-tab-panel[hidden] {
  display: none !important;
}

/* =========================================================
   ACTIVITY TOOLBAR
========================================================= */
.notifications-toolbar {
  min-height: 6.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.4rem 2.4rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: #f8fbff;
}

.notifications-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.notifications-filter {
  min-height: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 999rem;
  background: #ffffff;
  color: #64748b;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.notifications-filter:hover {
  border-color: rgba(100, 116, 139, 0.46);
  background: #eff6ff;
  color: #0f172a;
}
.notifications-filter:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.notifications-filter--active,
.notifications-filter[aria-pressed=true] {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  box-shadow: inset 0 0 0 0.1rem rgba(37, 99, 235, 0.2);
}

.notifications-toolbar__action {
  min-height: 3.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-shrink: 0;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.notifications-toolbar__action .notifications-toolbar__action-icon {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("/assets/icons/check.svg") center/contain no-repeat;
  mask: url("/assets/icons/check.svg") center/contain no-repeat;
}
.notifications-toolbar__action:hover {
  background: rgba(37, 99, 235, 0.12);
}
.notifications-toolbar__action:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}
.notifications-toolbar__action:disabled {
  cursor: wait;
  opacity: 0.5;
}

/* =========================================================
   ACTIVITY LIST
========================================================= */
.notifications-activity-list {
  width: 100%;
  min-height: 0;
  background: #ffffff;
}
.notifications-activity-list .notification-item__main {
  min-height: 9rem;
  padding-right: 1.6rem;
  padding-left: 2.4rem;
}
.notifications-activity-list .notification-item__dismiss {
  width: 4.4rem;
  min-width: 4.4rem;
}
.notifications-activity-list .notification-item__body {
  max-width: 72rem;
}
.notifications-activity-list .notification-list__loading,
.notifications-activity-list .notification-list__empty,
.notifications-activity-list .notification-list__error {
  min-height: 16rem;
}

/* =========================================================
   LOAD MORE
========================================================= */
.notifications-load-more {
  min-height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2.4rem;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
  background: #f8fbff;
}

.notifications-load-more:has(> button[hidden]) {
  display: none;
}

/* =========================================================
   CLIENT NOTICES HEADER
========================================================= */
.client-notices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.4rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.24);
}
.client-notices-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.3;
}
.client-notices-header p {
  margin: 0.5rem 0 0;
  color: #64748b;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
}

/* =========================================================
   CLIENT NOTICES FEEDBACK
========================================================= */
.client-notices-feedback {
  margin: 1.8rem 2.4rem 0;
  padding: 1.2rem 1.4rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1.2rem;
  background: #f8fbff;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.5;
}

.client-notices-feedback[hidden] {
  display: none;
}

.client-notices-feedback--success {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.client-notices-feedback--error {
  background: #fef2f2;
  color: #b91c1c;
}

/* =========================================================
   CLIENT NOTICES TABLE WRAPPER
========================================================= */
.client-notices-table-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 1.6rem 2rem 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

/* =========================================================
   CLIENT NOTICES TABLE
========================================================= */
table.client-notices-table.list-table--wide {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.client-notices-table th,
.client-notices-table td {
  box-sizing: border-box;
  vertical-align: middle;
}
.client-notices-table th {
  white-space: nowrap;
}
.client-notices-table {
  /* Notice */
}
.client-notices-table th:nth-child(1),
.client-notices-table td:nth-child(1) {
  width: 27%;
}
.client-notices-table {
  /* Type */
}
.client-notices-table th:nth-child(2),
.client-notices-table td:nth-child(2) {
  width: 16%;
}
.client-notices-table {
  /* Audience */
}
.client-notices-table th:nth-child(3),
.client-notices-table td:nth-child(3) {
  width: 18%;
}
.client-notices-table {
  /* Recipients */
}
.client-notices-table th:nth-child(4),
.client-notices-table td:nth-child(4) {
  width: 12%;
}
.client-notices-table {
  /* Sent */
}
.client-notices-table th:nth-child(5),
.client-notices-table td:nth-child(5) {
  width: 15%;
}
.client-notices-table {
  /* Action */
}
.client-notices-table th:nth-child(6),
.client-notices-table td:nth-child(6) {
  width: 12%;
}

.client-notices-table__notice {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* =========================================================
   CLICKABLE NOTICE DETAILS
========================================================= */
.client-notices-table__notice-button {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.client-notices-table__notice-button:hover {
  background: rgba(37, 99, 235, 0.12);
}
.client-notices-table__notice-button:hover .client-notices-table__title {
  color: #2563eb;
  text-decoration: underline;
}
.client-notices-table__notice-button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}
.client-notices-table__notice-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.client-notices-table__title {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.client-notices-table__message {
  display: block;
  width: 100%;
  max-width: 36rem;
  overflow: hidden;
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.client-notices-table__value {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.client-notices-table__muted {
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 500;
}

.client-notices-table__date {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 650;
  white-space: nowrap;
}
.client-notices-table__date small {
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 550;
}

.client-notices-table__state {
  height: 18rem;
  color: #64748b;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
}

/* =========================================================
   CLIENT NOTICE ACTION COLUMN
========================================================= */
.client-notices-table__action-heading,
.client-notices-table__action-cell,
.client-notices-table .list-table__action-heading,
.client-notices-table .list-table__action-cell,
.client-notices-table th:last-child,
.client-notices-table td:last-child {
  min-width: 11rem;
  padding-right: 1rem;
  padding-left: 1rem;
  text-align: left;
  white-space: nowrap;
}

.client-notices-table__action,
.client-notices-table__deactivated {
  margin: 0;
}

.client-notices-table__action-cell,
.client-notices-table .list-table__action-cell,
.client-notices-table td:last-child {
  overflow: visible;
}

.client-notices-table__deactivated {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 999rem;
  background: #f8fbff;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.client-notices-table__action {
  min-width: 9.5rem;
  min-height: 3.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.client-notices-table__action:hover {
  border-color: rgba(100, 116, 139, 0.46);
  background: #eff6ff;
}
.client-notices-table__action:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}
.client-notices-table__action:disabled {
  cursor: wait;
  opacity: 0.65;
}

.client-notices-table__action--danger {
  border-color: rgba(185, 28, 28, 0.24);
  background: #fef2f2;
  color: #b91c1c;
}
.client-notices-table__action--danger:hover {
  border-color: rgba(185, 28, 28, 0.42);
  background: rgba(185, 28, 28, 0.12);
  color: #b91c1c;
}
.client-notices-table__action--danger:focus-visible {
  outline: 2px solid rgba(185, 28, 28, 0.24);
  outline-offset: 2px;
}

/* =========================================================
   NOTICE TYPE LABELS
========================================================= */
.client-notice-type {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.45rem 0.9rem;
  overflow: hidden;
  border-radius: 999rem;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 1.05rem;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.client-notice-type--maintenance {
  background: #fff7ed;
  color: #0f172a;
}

.client-notice-type--service-interruption {
  background: #fef2f2;
  color: #b91c1c;
}

.client-notice-type--software-update {
  background: #eff6ff;
  color: #0f172a;
}

/* =========================================================
   TABLE WIDTH FALLBACK
========================================================= */
@media (max-width: 1100px) {
  table.client-notices-table.list-table--wide {
    min-width: 96rem;
  }
}
/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 98rem) {
  .notifications-panel__header,
  .client-notices-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .notifications-panel__create {
    width: 100%;
  }
  .notifications-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .notifications-toolbar__action {
    align-self: flex-end;
  }
}
@media (max-width: 640px) {
  .notifications-panel {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .notifications-panel__header,
  .client-notices-header {
    padding: 1.8rem;
  }
  .notifications-tabs {
    padding: 0 1rem;
  }
  .notifications-tabs__button {
    flex: 1;
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }
  .notifications-toolbar {
    padding: 1.4rem 1.8rem;
  }
  .notifications-filters {
    width: 100%;
  }
  .notifications-filter {
    flex: 1;
  }
  .notifications-toolbar__action {
    width: 100%;
  }
  .notifications-activity-list .notification-item__main {
    padding-left: 1.4rem;
  }
  .notifications-activity-list .notification-item__dismiss {
    width: 3.6rem;
    min-width: 3.6rem;
  }
  .client-notices-feedback {
    margin-right: 1.8rem;
    margin-left: 1.8rem;
  }
  .client-notices-table-wrapper {
    padding: 1.2rem 1.4rem 1.6rem;
  }
}
/* =========================================================
   LOGIN PAGE
========================================================= */
body.helpdesk-login-page {
  min-height: 100vh;
  background: #f8fbff;
  color: #0f172a;
}

.helpdesk-login-page button {
  cursor: pointer;
}

.login-page {
  --drag-x: 0rem;
  --drag-y: 0rem;
  --drag-x-soft: 0rem;
  --drag-y-soft: 0rem;
  --drag-x-reverse: 0rem;
  --drag-y-reverse: 0rem;
  --cursor-x: 50%;
  --cursor-y: 50%;
  --orb-one-scale: 1;
  --orb-two-scale: 1;
  --wave-scale: 1;
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(46rem, 0.96fr);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.24) 0%, rgba(147, 197, 253, 0.18) 14%, transparent 34%), radial-gradient(circle at 92% 78%, rgba(59, 130, 246, 0.26) 0%, rgba(191, 219, 254, 0.44) 22%, transparent 48%), linear-gradient(120deg, #ffffff 0%, #f8fbff 45%, #eaf4ff 100%);
}
.login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image: linear-gradient(rgba(37, 99, 235, 0.055) 0.1rem, transparent 0.1rem), linear-gradient(90deg, rgba(37, 99, 235, 0.055) 0.1rem, transparent 0.1rem);
  background-size: 5.2rem 5.2rem;
  mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.34), transparent 58%);
}
.login-page.is-hovering-bg .interactive-bg::before {
  opacity: 0.5;
}
.login-page.is-hovering-bg .interactive-bg__orb--one {
  border-radius: 42% 58% 66% 34%/48% 38% 62% 52%;
}
.login-page.is-hovering-bg .interactive-bg__orb--two {
  border-radius: 62% 38% 44% 56%/42% 60% 40% 58%;
}
.login-page svg {
  display: block;
}

.login-hero,
.login-panel-area {
  position: relative;
  z-index: 3;
  min-width: 0;
}

/* ---------------- INTERACTIVE BACKGROUND ---------------- */
.interactive-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.interactive-bg::before {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(37, 99, 235, 0.3) 0%, rgba(59, 130, 246, 0.2) 9%, rgba(147, 197, 253, 0.14) 18%, rgba(219, 234, 254, 0.07) 30%, transparent 46%);
  filter: blur(1.4rem);
  transition: opacity 180ms ease;
}
.interactive-bg::after {
  content: "";
  position: absolute;
  left: 16%;
  top: 24%;
  width: 62rem;
  height: 42rem;
  border-radius: 999rem;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.24) 0%, rgba(96, 165, 250, 0.18) 34%, rgba(191, 219, 254, 0.1) 58%, transparent 75%);
  filter: blur(3.4rem);
  opacity: 0.9;
  transform: translate3d(var(--drag-x-soft), var(--drag-y-soft), 0);
  will-change: transform;
}

.interactive-bg__orb {
  position: absolute;
  border-radius: 999rem;
  filter: blur(2.2rem);
  opacity: 1;
  will-change: transform, border-radius, opacity;
  transition: transform 80ms linear, border-radius 180ms ease, opacity 180ms ease;
}

.interactive-bg__orb--one {
  left: -18rem;
  top: 8rem;
  width: 64rem;
  height: 64rem;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.46) 0%, rgba(59, 130, 246, 0.34) 20%, rgba(147, 197, 253, 0.26) 42%, rgba(219, 234, 254, 0.12) 62%, transparent 78%);
  transform: translate3d(var(--drag-x), var(--drag-y), 0) scale(var(--orb-one-scale));
  animation: orbBreathOne 6s ease-in-out infinite;
}

.interactive-bg__orb--two {
  right: -23rem;
  bottom: -17rem;
  width: 76rem;
  height: 56rem;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.34) 0%, rgba(96, 165, 250, 0.34) 28%, rgba(191, 219, 254, 0.38) 48%, rgba(239, 246, 255, 0.12) 67%, transparent 82%);
  transform: translate3d(var(--drag-x-reverse), var(--drag-y-reverse), 0) scale(var(--orb-two-scale));
  animation: orbBreathTwo 7s ease-in-out infinite;
}

.interactive-bg__wave {
  position: absolute;
  left: -22%;
  bottom: -24%;
  width: 92%;
  height: 48%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(147, 197, 253, 0.28), rgba(219, 234, 254, 0.18), transparent 74%);
  filter: blur(1.4rem);
  opacity: 0.95;
  transform: translate3d(var(--drag-x-soft), var(--drag-y-soft), 0) rotate(8deg) scale(var(--wave-scale));
  will-change: transform;
  transition: transform 90ms linear;
}

.interactive-bg__dots {
  position: absolute;
  left: 4.2rem;
  bottom: 6.4rem;
  width: 19rem;
  height: 13rem;
  opacity: 0.46;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.58) 0.14rem, transparent 0.14rem);
  background-size: 1.8rem 1.8rem;
  transform: translate3d(var(--drag-x-soft), var(--drag-y-soft), 0);
  will-change: transform;
  transition: transform 90ms linear;
}

/* ---------------- HERO ---------------- */
.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(2.4rem, 3vw, 4.8rem) clamp(2.8rem, 4.2vw, 7.2rem);
}
.login-hero::before {
  content: "";
  position: absolute;
  left: clamp(7rem, 9vw, 17rem);
  top: 30%;
  width: clamp(42rem, 38vw, 70rem);
  height: clamp(30rem, 34vw, 52rem);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 48% 48%, rgba(37, 99, 235, 0.24) 0%, rgba(96, 165, 250, 0.18) 24%, rgba(191, 219, 254, 0.15) 46%, rgba(239, 246, 255, 0.06) 66%, transparent 82%);
  filter: blur(2rem);
  opacity: 1;
}
.login-hero::after {
  content: "";
  position: absolute;
  left: -16%;
  bottom: -15%;
  width: 76%;
  height: 34%;
  pointer-events: none;
  opacity: 0.68;
  background: radial-gradient(ellipse at center, rgba(147, 197, 253, 0.68), transparent 63%);
  filter: blur(2.4rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 1.2rem;
  margin-left: 0;
  color: #0f2f66;
  font-size: clamp(1.8rem, 1.55vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-icon,
.login-icon,
.input-icon,
.security-note span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-icon {
  width: 3.4rem;
  height: 3.4rem;
  color: #2563eb;
}

.brand svg,
.login-icon svg,
.input-icon svg,
.password-visibility svg,
.security-note svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-content {
  position: relative;
  max-width: 62rem;
  margin-block: auto;
  margin-left: clamp(13rem, 10.5vw, 21.5rem);
  padding-bottom: 2vh;
}
.hero-content h1 {
  margin: 0;
  color: #2563eb;
  font-size: clamp(6.4rem, 7.2vw, 11.2rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.075em;
  text-shadow: 0 0.8rem 3rem rgba(37, 99, 235, 0.12);
}

.eyebrow {
  margin: 0 0 1rem;
  color: #334155;
  font-size: clamp(1.8rem, 1.6vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.hero-line {
  width: 7.8rem;
  height: 0.4rem;
  margin: clamp(2.8rem, 3.2vw, 4.2rem) 0;
  border-radius: 999rem;
  background: linear-gradient(90deg, #2563eb, rgba(37, 99, 235, 0.18));
}

.hero-copy {
  max-width: 56rem;
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.7rem, 1.45vw, 2.3rem);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.025em;
  text-shadow: none;
}

/* ---------------- LOGIN PANEL ---------------- */
.login-panel-area {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(2.8rem, 5vw, 8rem);
  padding-left: clamp(0.8rem, 1.8vw, 2.8rem);
}

.login-card {
  width: min(100%, 52rem);
  padding: clamp(3rem, 4vw, 5.4rem);
  border: 0.1rem solid rgba(148, 163, 184, 0.28);
  border-radius: 2.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.93)), #ffffff;
  box-shadow: 0 2.8rem 9rem rgba(15, 23, 42, 0.1), 0 1rem 3rem rgba(37, 99, 235, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.login-icon {
  width: 7.4rem;
  height: 7.4rem;
  margin: 0 auto 2.4rem;
  border-radius: 50%;
  color: #2563eb;
  background: #eff6ff;
  border: 0.1rem solid #bfdbfe;
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.84);
}
.login-icon svg {
  width: 3.6rem;
  height: 3.6rem;
}

.login-heading {
  text-align: center;
  margin-bottom: 3.8rem;
}
.login-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.8rem, 2.4vw, 3.6rem);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -0.05em;
}
.login-heading p {
  margin: 1.2rem 0 0;
  color: #64748b;
  font-size: 1.6rem;
  line-height: 1.5;
}

/* ---------------- FORM ---------------- */
.form-group {
  margin-bottom: 2.2rem;
}
.form-group label {
  display: block;
  margin-bottom: 1rem;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.input-shell {
  position: relative;
}
.input-shell input {
  width: 100%;
  height: 5.8rem;
  padding: 0 5.6rem 0 5.2rem;
  border: 0.1rem solid rgba(148, 163, 184, 0.36);
  border-radius: 1rem;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.input-shell input::placeholder {
  color: #7c8ba1;
}
.input-shell input:hover {
  border-color: rgba(100, 116, 139, 0.46);
}
.input-shell input:focus {
  border-color: rgba(37, 99, 235, 0.62);
  background: #ffffff;
  box-shadow: 0 0 0 0.4rem rgba(37, 99, 235, 0.1), 0 0.1rem 0.2rem rgba(15, 23, 42, 0.04);
}
.input-shell:focus-within .input-icon {
  color: #2563eb;
}

.input-icon {
  position: absolute;
  left: 1.8rem;
  top: 50%;
  width: 2.2rem;
  height: 2.2rem;
  color: #64748b;
  transform: translateY(-50%);
  pointer-events: none;
}

.password-visibility {
  position: absolute;
  right: 1.6rem;
  top: 50%;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  padding: 0.4rem;
  color: #64748b;
  background: transparent;
  transform: translateY(-50%);
}
.password-visibility:hover {
  color: #2563eb;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
  margin: 0.8rem 0 3.2rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 500;
  user-select: none;
}
.checkbox-label input {
  width: 2rem;
  height: 2rem;
  margin: 0;
  accent-color: #2563eb;
}

.forgot-link {
  color: #2563eb;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.4rem;
}
.forgot-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.submit-button {
  width: 100%;
  height: 6rem;
  border: 0;
  border-radius: 1rem;
  color: #ffffff;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.28), 0 1.6rem 3.6rem rgba(37, 99, 235, 0.24);
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.submit-button:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.24), 0 2rem 4.2rem rgba(37, 99, 235, 0.3);
  transform: translateY(-0.1rem);
}
.submit-button:active {
  transform: translateY(0);
}

.auth-form__message {
  min-height: 2rem;
  margin: 1.4rem 0 0;
  color: #64748b;
  font-size: 1.4rem;
  line-height: 1.4;
  text-align: center;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 3.4rem;
  padding-top: 2.8rem;
  border-top: 0.1rem solid rgba(148, 163, 184, 0.24);
  color: #64748b;
}
.security-note span {
  width: 2.2rem;
  height: 2.2rem;
  color: #2563eb;
}
.security-note p {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.4;
}

/* ---------------- ANIMATIONS ---------------- */
@keyframes orbBreathOne {
  0%, 100% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}
@keyframes orbBreathTwo {
  0%, 100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}
/* ---------------- RESPONSIVE ---------------- */
@media (max-height: 76rem) and (min-width: 90.1rem) {
  .login-card {
    padding: 3.4rem 4.2rem;
  }
  .login-icon {
    width: 5.8rem;
    height: 5.8rem;
    margin-bottom: 1.8rem;
  }
  .login-icon svg {
    width: 3rem;
    height: 3rem;
  }
  .login-heading {
    margin-bottom: 2.6rem;
  }
  .form-group {
    margin-bottom: 1.6rem;
  }
  .input-shell input {
    height: 5.2rem;
  }
  .submit-button {
    height: 5.4rem;
  }
  .security-note {
    margin-top: 2.4rem;
    padding-top: 2rem;
  }
}
@media (max-width: 98rem) {
  .login-page {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .brand,
  .hero-content {
    margin-left: 0;
  }
  .login-hero {
    min-height: 42vh;
    padding: 3.2rem 2.4rem 1.2rem;
  }
  .hero-content {
    margin-top: 8.4rem;
    padding-bottom: 3.6rem;
  }
  .hero-content h1 {
    font-size: clamp(5.6rem, 13vw, 8.6rem);
  }
  .login-panel-area {
    align-items: flex-start;
    padding: 1.2rem 2.4rem 3.6rem;
  }
  .login-card {
    max-width: 62rem;
  }
}
@media (max-width: 76rem) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
  }
  body.helpdesk-login-page {
    background: #f8fbff;
  }
  .login-page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    background: radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.22) 0%, rgba(147, 197, 253, 0.16) 22%, transparent 46%), radial-gradient(circle at 92% 58%, rgba(59, 130, 246, 0.2) 0%, rgba(191, 219, 254, 0.32) 28%, transparent 54%), linear-gradient(145deg, #ffffff 0%, #f8fbff 42%, #eaf4ff 100%);
  }
  .interactive-bg {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  .interactive-bg::before {
    inset: -12%;
    filter: blur(1.2rem);
  }
  .interactive-bg::after {
    left: 6%;
    top: 18%;
    width: 34rem;
    height: 30rem;
    opacity: 0.55;
    filter: blur(2.8rem);
  }
  .interactive-bg__orb--one {
    left: -19rem;
    top: 4rem;
    width: 43rem;
    height: 43rem;
    opacity: 0.82;
    filter: blur(2.6rem);
  }
  .interactive-bg__orb--two {
    right: -26rem;
    bottom: 8rem;
    width: 52rem;
    height: 42rem;
    opacity: 0.78;
    filter: blur(2.8rem);
  }
  .interactive-bg__wave {
    left: -34%;
    bottom: -12%;
    width: 130%;
    height: 34%;
    opacity: 0.72;
    filter: blur(1.6rem);
  }
  .interactive-bg__dots {
    left: 2.2rem;
    bottom: auto;
    top: 41rem;
    width: 15rem;
    height: 10.5rem;
    opacity: 0.34;
    background-size: 1.6rem 1.6rem;
  }
  .login-hero {
    width: 100%;
    min-height: auto;
    padding: 2.8rem 2.2rem 1.8rem;
    display: block;
  }
  .login-hero::before {
    left: -22%;
    top: 20%;
    width: 120vw;
    height: 46vh;
    opacity: 0.72;
    filter: blur(2.2rem);
  }
  .login-hero::after {
    display: none;
  }
  .brand {
    gap: 1rem;
    font-size: 1.9rem;
    letter-spacing: -0.035em;
  }
  .brand-icon {
    width: 3rem;
    height: 3rem;
  }
  .hero-content {
    max-width: 100%;
    margin: 9.2rem 0 0;
    padding: 0;
  }
  .hero-content h1 {
    font-size: clamp(4.8rem, 15vw, 6.4rem);
    line-height: 0.96;
    letter-spacing: -0.075em;
  }
  .eyebrow {
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
    line-height: 1.25;
  }
  .hero-line {
    width: 5.8rem;
    height: 0.3rem;
    margin: 2.4rem 0;
  }
  .hero-copy {
    max-width: 33rem;
    font-size: 1.6rem;
    line-height: 1.5;
    letter-spacing: -0.02em;
  }
  .login-panel-area {
    width: 100%;
    display: block;
    padding: 2.2rem 1.6rem 2.8rem;
  }
  .login-card {
    width: 100%;
    max-width: 43rem;
    margin: 0 auto;
    padding: 2.8rem 2rem 2.4rem;
    border-radius: 2.2rem;
    box-shadow: 0 2.2rem 6rem rgba(15, 23, 42, 0.12), 0 0.8rem 2.4rem rgba(37, 99, 235, 0.1);
  }
  .login-icon {
    width: 6.2rem;
    height: 6.2rem;
    margin-bottom: 2rem;
  }
  .login-icon svg {
    width: 3rem;
    height: 3rem;
  }
  .login-heading {
    margin-bottom: 2.8rem;
  }
  .login-heading h2 {
    font-size: 2.8rem;
  }
  .login-heading p {
    margin-top: 0.8rem;
    font-size: 1.4rem;
  }
  .form-group {
    margin-bottom: 1.8rem;
  }
  .form-group label {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
  }
  .input-shell input {
    height: 5.2rem;
    padding-left: 4.8rem;
    padding-right: 5rem;
    font-size: 1.4rem;
    border-radius: 1.1rem;
  }
  .input-icon {
    left: 1.6rem;
    width: 2rem;
    height: 2rem;
  }
  .password-visibility {
    right: 1.4rem;
    width: 2.6rem;
    height: 2.6rem;
  }
  .form-row {
    align-items: center;
    flex-direction: row;
    gap: 1.2rem;
    margin: 0.4rem 0 2.6rem;
  }
  .checkbox-label {
    gap: 0.8rem;
    font-size: 1.3rem;
    white-space: nowrap;
  }
  .checkbox-label input {
    width: 1.8rem;
    height: 1.8rem;
  }
  .forgot-link {
    font-size: 1.3rem;
    white-space: nowrap;
  }
  .submit-button {
    height: 5.4rem;
    border-radius: 1.1rem;
    font-size: 1.5rem;
  }
  .security-note {
    gap: 0.9rem;
    margin-top: 2.6rem;
    padding-top: 2.2rem;
  }
  .security-note span {
    width: 2rem;
    height: 2rem;
  }
  .security-note p {
    font-size: 1.2rem;
  }
}
@media (max-width: 56rem) {
  .brand {
    font-size: 1.8rem;
  }
  .brand-icon {
    width: 3rem;
    height: 3rem;
  }
  .hero-content {
    margin-top: 7rem;
  }
  .hero-content h1 {
    font-size: 5.4rem;
  }
  .eyebrow {
    font-size: 1.8rem;
  }
  .hero-copy {
    font-size: 1.7rem;
  }
  .login-panel-area {
    padding-inline: 1.6rem;
  }
  .login-card {
    padding: 2.8rem 2rem;
    border-radius: 1.8rem;
  }
}
@media (max-width: 39rem) {
  .login-hero {
    padding: 2.4rem 1.8rem 1.4rem;
  }
  .hero-content {
    margin-top: 7.2rem;
  }
  .hero-content h1 {
    font-size: 4.6rem;
  }
  .hero-copy {
    max-width: 30rem;
    font-size: 1.5rem;
  }
  .login-panel-area {
    padding: 1.8rem 1.2rem 2.4rem;
  }
  .login-card {
    padding: 2.4rem 1.6rem 2.2rem;
    border-radius: 2rem;
  }
  .form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }
  .forgot-link,
  .checkbox-label {
    font-size: 1.3rem;
  }
  .security-note {
    text-align: left;
    justify-content: flex-start;
  }
}
@media (max-width: 90rem) and (orientation: landscape) {
  .login-page {
    min-height: 100vh;
  }
  .login-hero {
    padding: 2.2rem 2.8rem 0.8rem;
  }
  .hero-content {
    margin-top: 4.2rem;
  }
  .hero-content h1 {
    font-size: 5.2rem;
  }
  .hero-copy {
    max-width: 46rem;
  }
  .login-panel-area {
    padding: 1.4rem 2.8rem 2.8rem;
  }
  .login-card {
    max-width: 52rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .interactive-bg__orb,
  .interactive-bg__wave,
  .interactive-bg__dots,
  .interactive-bg::after {
    animation: none;
    transition: none;
  }
}

/*# sourceMappingURL=main.css.map */
