:root {
  --red: #ed1b2f;
  --red-dark: #b80f20;
  --red-soft: #fff0f2;
  --ink: #151922;
  --muted: #667085;
  --line: #e2e7ee;
  --panel: #ffffff;
  --bg: #f5f7fa;
  --shadow: 0 22px 70px rgba(19, 27, 45, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#app {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

input[type="checkbox"] {
  accent-color: var(--red);
}

button {
  cursor: pointer;
}

.login-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 30px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.92), transparent 0 9%, transparent 22%),
    radial-gradient(circle at 82% 78%, rgba(237, 27, 47, 0.22), transparent 0 16%, transparent 30%),
    linear-gradient(135deg, #fff 0%, #f6f8fb 38%, #fde6ea 100%);
}

.login-page::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    linear-gradient(118deg, transparent 0 42%, rgba(237, 27, 47, 0.08) 42% 55%, transparent 55%),
    linear-gradient(32deg, transparent 0 48%, rgba(21, 25, 34, 0.06) 48% 57%, transparent 57%);
  transform: rotate(-6deg);
}

.login-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.9;
}

.login-bg-shape--one {
  width: 280px;
  height: 84px;
  left: 8%;
  top: 22%;
  background: linear-gradient(90deg, rgba(237, 27, 47, 0.75), rgba(255, 255, 255, 0.55));
  transform: rotate(-35deg);
}

.login-bg-shape--two {
  width: 390px;
  height: 390px;
  right: -120px;
  top: -110px;
  border: 54px solid rgba(237, 27, 47, 0.14);
}

.login-bg-shape--three {
  width: 340px;
  height: 340px;
  left: -130px;
  bottom: -120px;
  border: 42px solid rgba(21, 25, 34, 0.08);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  animation: surfaceIn 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-check-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(237, 27, 47, 0.08), transparent 0 20%, transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f6f8fb 100%);
}

.auth-check-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(340px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(19, 27, 45, 0.1);
}

.auth-check-card strong {
  font-size: 16px;
  font-weight: 560;
}

.auth-check-card small {
  color: var(--muted);
  font-size: 13px;
}

.login-logo {
  display: block;
  width: 132px;
  height: auto;
  margin: 0 auto 28px;
}

.login-heading {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.login-heading h1 {
  margin-bottom: 8px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
}

.login-heading p,
.hero-panel p,
.module-card p,
.account-button small {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 500;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-form input:focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(237, 27, 47, 0.12);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 6px;
}

.icon-only-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  padding: 0;
  background: #f1f4f8;
  color: #5d6675;
}

.icon-only-button svg,
.area-card-icon svg,
.admin-nav-icon svg,
.admin-control-dot svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-only-button:hover {
  background: #e8edf4;
  color: var(--ink);
}

.login-row {
  display: flex;
  justify-content: flex-end;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 13px;
  font-weight: 500;
}

.secondary-button {
  min-height: 38px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 0 12px;
  background: #fff;
  color: #3f4857;
  font-weight: 560;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.secondary-button:hover {
  border-color: #ffc2ca;
  background: var(--red-soft);
  color: var(--red);
}

.login-submit {
  min-height: 50px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-weight: 650;
  box-shadow: 0 16px 26px rgba(237, 27, 47, 0.28);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.login-message--error {
  color: var(--red-dark);
}

.login-message--info {
  color: #344054;
}

.area-page {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(26px, 4vw, 52px) clamp(22px, 5vw, 70px) 118px;
  background:
    radial-gradient(circle at 12% 18%, rgba(237, 27, 47, 0.16), transparent 0 15%, transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(21, 25, 34, 0.08), transparent 0 18%, transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7f9fc 54%, #fff0f2 100%);
}

.area-page::before {
  content: "";
  position: absolute;
  inset: auto -8% -26% auto;
  width: 520px;
  height: 520px;
  border: 64px solid rgba(237, 27, 47, 0.12);
  border-radius: 50%;
}

.area-stage,
.area-welcome,
.area-grid,
.area-hint {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  margin-inline: auto;
}

.area-stage {
  transform: translateX(10px);
  animation: pageIn 360ms ease both;
}

.area-welcome {
  margin-bottom: 30px;
}

.area-welcome h1 {
  max-width: 720px;
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 520;
  line-height: 1.08;
}

.area-welcome p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.area-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 108px;
  border: 1px solid rgba(221, 227, 235, 0.9);
  border-radius: 8px;
  padding: 17px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 30px rgba(19, 27, 45, 0.055);
  backdrop-filter: blur(14px);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease, background 190ms ease;
  animation: cardIn 420ms ease both;
}

.area-card:nth-child(2) {
  animation-delay: 45ms;
}

.area-card:nth-child(3) {
  animation-delay: 90ms;
}

.area-card:nth-child(4) {
  animation-delay: 135ms;
}

.area-card:nth-child(5) {
  animation-delay: 180ms;
}

.area-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(237, 27, 47, 0.35);
  box-shadow: 0 16px 38px rgba(19, 27, 45, 0.09);
}

.area-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f3f6fa;
  color: #424b5a;
}

.area-card--red .area-card-icon {
  background: var(--red-soft);
  color: var(--red);
}

.area-card--dark .area-card-icon {
  background: #eef1f6;
  color: #172033;
}

.area-card--admin .area-card-icon {
  background: #eef4ff;
  color: #2458d3;
}

.area-card-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.area-card-content strong {
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 520;
  letter-spacing: 0;
}

.area-card-content small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.area-card-status {
  justify-self: end;
  border-radius: 5px;
  padding: 6px 9px;
  background: #f2f5f8;
  color: #3b4350;
  font-size: 11.5px;
  font-weight: 520;
  white-space: nowrap;
}

.area-card--disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.55);
}

.area-card--locked {
  opacity: 0.72;
  background: rgba(248, 250, 252, 0.72);
}

.area-card--locked .area-card-content,
.area-card--locked .area-card-icon {
  filter: grayscale(0.35) blur(0.25px);
}

.area-card--locked .area-card-status {
  border: 1px solid #dfe6ee;
  background: #eef1f6;
  color: #667085;
}

.area-card--disabled .area-card-icon {
  color: #7b8494;
}

.area-card--disabled .area-card-icon svg {
  animation: softGearTurn 8s linear infinite;
}

.area-card--launching {
  pointer-events: none;
  opacity: 0.72;
}

.area-launch-loader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(248, 250, 252, 0);
  backdrop-filter: blur(0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, background 180ms ease, backdrop-filter 180ms ease;
}

.area-launch-loader--visible {
  background: rgba(248, 250, 252, 0.48);
  backdrop-filter: blur(5px);
  opacity: 1;
}

.area-launch-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: min(320px, 100%);
  border: 1px solid rgba(221, 227, 235, 0.92);
  border-radius: 8px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 55px rgba(19, 27, 45, 0.14);
  transform: translateY(6px) scale(0.985);
  animation: areaLaunchIn 220ms ease forwards;
}

.area-launch-card strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 520;
  letter-spacing: 0;
}

.area-launch-card small {
  color: var(--muted);
  font-size: 13px;
}

.area-launch-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #ffe0e4;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: areaSpin 800ms linear infinite;
}

.area-hint {
  min-height: 22px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.session-dock {
  position: fixed;
  z-index: 2;
  left: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 30px);
  width: min(260px, calc(100vw - 36px));
}

.session-account {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(226, 231, 238, 0.78);
  border-radius: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 24px rgba(19, 27, 45, 0.06);
  backdrop-filter: blur(12px);
}

.session-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f8e6e9;
  color: var(--red);
  font-size: 12px;
  font-weight: 620;
}

.session-account strong,
.session-account small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-account strong {
  font-size: 12.5px;
  font-weight: 520;
}

.session-account small {
  color: var(--muted);
  font-size: 11px;
}

.session-logout,
.it-service-button {
  min-height: 32px;
  border-radius: 5px;
  font-weight: 520;
}

.session-logout {
  border: 0;
  padding: 0 8px;
  background: #f5f7fa;
  color: #5d6675;
  font-size: 12px;
}

.session-logout:hover {
  border-color: #ffc2ca;
  color: var(--red);
}

.it-service-button {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 30px);
  z-index: 2;
  width: fit-content;
  border: 0;
  padding: 0 12px;
  background: rgba(23, 32, 51, 0.88);
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.16);
  backdrop-filter: blur(10px);
}

.it-service-button:hover {
  background: #222d43;
}

.admin-page {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 100% 0%, rgba(237, 27, 47, 0.08), transparent 0 20%, transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f6f8fb 100%);
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 20px;
  border-right: 1px solid var(--line);
  padding: 24px 15px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
  animation: slideInLeft 360ms ease both;
}

.admin-page--soft-switch .admin-sidebar {
  animation: none;
}

.admin-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 10px;
  background: #f7f9fc;
  color: #667085;
  font-size: 13px;
  transition: background 160ms ease, color 160ms ease;
}

.admin-back:hover {
  background: #f0f3f8;
  color: #333b49;
}

.admin-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transform: rotate(180deg);
}

.admin-control-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 6px 8px;
  color: #4f5970;
  font-size: 13px;
}

.admin-control-label strong {
  font-weight: 540;
}

.admin-control-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--red-soft);
  color: var(--red);
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav-group {
  display: grid;
  gap: 3px;
}

.admin-nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: #667085;
  text-align: left;
  font-size: 13px;
  font-weight: 480;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: var(--red);
  opacity: 0;
  transform: scaleY(0.45);
  transition: opacity 180ms ease, transform 220ms ease;
}

.admin-nav-item:hover,
.admin-nav-item--active {
  border-color: transparent;
  background: var(--red-soft);
  color: var(--red);
}

.admin-nav-item--active::before {
  opacity: 1;
  transform: scaleY(1);
}

.admin-nav-item:hover {
  transform: translateX(1px);
}

.admin-nav-icon {
  display: grid;
  place-items: center;
  color: currentColor;
}

.admin-subnav {
  position: relative;
  display: grid;
  gap: 2px;
  margin: 1px 0 5px 33px;
  padding-left: 11px;
  overflow: hidden;
  animation: subnavReveal 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.admin-subnav::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(237, 27, 47, 0), rgba(237, 27, 47, 0.65), rgba(237, 27, 47, 0));
  transform-origin: top;
  animation: subnavLineIn 270ms ease both;
}

.admin-subnav-item {
  position: relative;
  min-height: 30px;
  border: 0;
  border-radius: 5px;
  padding: 0 9px;
  background: transparent;
  color: #7a8495;
  text-align: left;
  font-size: 12.5px;
  transform: translateX(-3px);
  opacity: 0;
  animation: subnavItemIn 220ms ease both;
}

.admin-subnav-item:nth-child(2) {
  animation-delay: 35ms;
}

.admin-subnav-item:nth-child(3) {
  animation-delay: 70ms;
}

.admin-subnav-item:hover,
.admin-subnav-item--active {
  background: var(--red-soft);
  color: var(--red);
}

.admin-workspace {
  display: grid;
  align-content: start;
  gap: 16px;
  width: min(1180px, 100%);
  max-width: none;
  padding: 34px clamp(20px, 3vw, 42px);
  animation: pageIn 360ms ease both;
}

.admin-workspace--soft-enter {
  animation: adminContentEnter 220ms ease-out both;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.admin-topbar h2 {
  margin: 0;
  font-size: clamp(26px, 2.7vw, 34px);
  font-weight: 520;
  line-height: 1.08;
}

.admin-topbar p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-user-pill {
  border: 1px solid #dce3ed;
  border-radius: 5px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.76);
  color: #3f4857;
  font-size: 13px;
}

.admin-hero,
.admin-panel,
.admin-stat-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(19, 27, 45, 0.045);
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 16px;
  align-items: center;
  min-height: 132px;
  padding: 18px;
  animation: cardIn 380ms ease both;
}

.admin-hero h3,
.admin-panel h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 520;
}

.admin-hero p,
.admin-panel p,
.admin-stat-grid small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-hero-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #eef4ff;
  color: #2458d3;
}

.admin-hero-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat-grid article {
  display: grid;
  gap: 5px;
  padding: 15px;
  animation: cardIn 420ms ease both;
}

.admin-stat-grid strong {
  font-size: 16px;
  font-weight: 520;
}

.admin-panel {
  padding: 18px;
  animation: cardIn 460ms ease both;
}

.user-management {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.admin-management-board {
  display: grid;
  gap: 16px;
}

.user-create-card,
.user-overview-card,
.admin-overview-card,
.admin-list-board,
.ticket-overview-card,
.user-list-card,
.password-modal,
.user-form-modal,
.ticket-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(19, 27, 45, 0.045);
  animation: cardIn 360ms ease both;
}

.user-create-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.user-overview-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-overview-card,
.admin-list-board {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-light-button {
  min-height: 36px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 0 13px;
  background: #fff;
  color: #3f4857;
  font: inherit;
  font-size: 13px;
  font-weight: 520;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-light-button:hover {
  border-color: #ffc2ca;
  background: var(--red-soft);
  color: var(--red);
  transform: translateY(-1px);
}

.admin-license-list {
  display: grid;
  gap: 9px;
}

.admin-license-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) repeat(5, minmax(98px, 0.7fr)) minmax(270px, auto);
  gap: 12px;
  align-items: center;
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  padding: 13px 14px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-license-row:hover {
  border-color: #cfd8e5;
  box-shadow: 0 12px 26px rgba(19, 27, 45, 0.055);
  transform: translateY(-1px);
}

.admin-license-row span {
  min-width: 0;
}

.admin-license-row strong,
.admin-license-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-license-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 540;
}

.admin-license-row small {
  margin-bottom: 3px;
  color: #667085;
  font-size: 12px;
  font-weight: 430;
}

.license-state {
  width: fit-content;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 12px !important;
  font-weight: 520 !important;
}

.license-state--active {
  background: #e8f8ef;
  color: #147a43 !important;
}

.license-state--setup,
.license-state--warning {
  background: #fff5df;
  color: #9a5d00 !important;
}

.license-state--locked {
  background: #fff0f2;
  color: var(--red) !important;
}

.license-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.license-actions button {
  min-height: 32px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 0 9px;
  background: #fff;
  color: #3f4857;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.license-actions button:hover {
  border-color: #ffc2ca;
  background: var(--red-soft);
  color: var(--red);
  transform: translateY(-1px);
}

.license-actions .license-action--active {
  border-color: #b9ebce;
  color: #11723d;
}

.license-actions .license-action--danger {
  border-color: #ffc2ca;
  color: var(--red);
}

.development-roadmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.development-ticket-list {
  display: grid;
  gap: 9px;
}

.logs-management {
  align-content: start;
}

.admin-log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-log-filter {
  min-height: 34px;
  border: 1px solid #dfe6ee;
  border-radius: 5px;
  padding: 0 11px;
  background: #fff;
  color: #4b5565;
  font: inherit;
  font-size: 13px;
  font-weight: 480;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-log-filter span {
  min-width: 24px;
  border-radius: 5px;
  padding: 2px 7px;
  background: #f2f5f8;
  color: #667085;
  font-size: 12px;
  text-align: center;
}

.admin-log-filter:hover,
.admin-log-filter--active {
  border-color: #ffc2ca;
  background: var(--red-soft);
  color: var(--red);
  transform: translateY(-1px);
}

.admin-log-filter--active span {
  background: #fff;
  color: var(--red);
}

.admin-log-list {
  display: grid;
  gap: 9px;
}

.admin-log-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: center;
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  padding: 13px 14px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-log-row:hover {
  border-color: #cfd8e5;
  box-shadow: 0 12px 26px rgba(19, 27, 45, 0.055);
  transform: translateY(-1px);
}

.admin-log-type {
  width: fit-content;
  border-radius: 5px;
  padding: 5px 9px;
  background: #f2f5f8;
  color: #667085;
  font-size: 12px;
  font-weight: 520;
}

.admin-log-row--admin .admin-log-type {
  background: #fff0f2;
  color: var(--red);
}

.admin-log-row--system .admin-log-type {
  background: #e8f8ef;
  color: #147a43;
}

.admin-log-main {
  min-width: 0;
}

.admin-log-main strong,
.admin-log-main small,
.admin-log-row time {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-log-main strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 540;
}

.admin-log-main small,
.admin-log-row time {
  color: #667085;
  font-size: 12px;
  font-weight: 430;
}

.admin-log-row time {
  text-align: right;
}

.development-ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  padding: 13px 14px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.development-ticket-row:hover {
  border-color: #cfd8e5;
  box-shadow: 0 12px 26px rgba(19, 27, 45, 0.055);
  transform: translateY(-1px);
}

.development-ticket-row strong,
.development-ticket-row small {
  display: block;
}

.development-ticket-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 560;
}

.development-ticket-row small {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  font-weight: 430;
}

.maintenance-admin-card {
  border-color: #ffd5db;
  background: linear-gradient(180deg, rgba(255, 247, 248, 0.78), rgba(255, 255, 255, 0.92));
}

.maintenance-admin-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid #f1d6db;
  border-radius: 7px;
  padding: 13px 14px;
  background: #fff;
}

.maintenance-admin-row strong,
.maintenance-admin-row small {
  display: block;
}

.maintenance-admin-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 560;
}

.maintenance-admin-row small {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  font-weight: 430;
}

.maintenance-admin-row button {
  width: fit-content;
  min-width: 180px;
  min-height: 38px;
  font-size: 13px;
}

.development-card {
  display: grid;
  gap: 8px;
  min-height: 130px;
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  padding: 14px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.development-card:hover {
  border-color: #cfd8e5;
  box-shadow: 0 12px 26px rgba(19, 27, 45, 0.055);
  transform: translateY(-1px);
}

.development-status {
  width: fit-content;
  border-radius: 5px;
  padding: 4px 8px;
  background: #f2f5f8;
  color: #667085;
  font-size: 11.5px;
  font-weight: 520;
}

.development-card strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 560;
}

.development-card p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.ticket-management {
  display: grid;
  gap: 16px;
}

.ticket-overview-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.ticket-overview-stats article:first-child strong {
  color: var(--red);
}

.user-create-head h3,
.user-list-head h3,
.password-modal h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 540;
}

.user-create-head p,
.user-list-head p,
.password-modal p,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.user-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.user-form-grid label {
  display: grid;
  gap: 7px;
  color: #485162;
  font-size: 13px;
  font-weight: 520;
}

.user-form-grid input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.user-form-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.user-form-grid .full-width {
  grid-column: 1 / -1;
}

.user-form-grid input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(237, 27, 47, 0.1);
}

.module-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid #dde4ee;
  border-radius: 5px;
  padding: 0 11px;
  background: #f8fafc;
  color: #354052;
  font-size: 13px;
  font-weight: 520;
}

.module-checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.password-reset-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  padding: 12px;
  background: #fbfcfd;
  color: #485162;
}

.password-reset-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

.password-reset-option strong,
.password-reset-option small {
  display: block;
}

.password-reset-option strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 540;
}

.password-reset-option small {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.user-create-submit {
  width: auto;
  min-width: 150px;
}

.form-status--error {
  color: var(--red-dark);
}

.form-status--success {
  color: #11723d;
}

.user-list-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.user-list-card--wide {
  min-height: 260px;
}

.user-list-head,
.ticket-board-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.user-list-head h3,
.ticket-board-head h3 {
  margin: 0 0 5px;
}

.user-overview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.user-overview-stats article {
  display: grid;
  gap: 4px;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  padding: 13px;
  background: #fff;
}

.user-overview-stats strong {
  font-size: 24px;
  font-weight: 560;
}

.user-overview-stats small {
  color: var(--muted);
  font-size: 12px;
}

.create-user-fab {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(237, 27, 47, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.create-user-fab:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 34px rgba(237, 27, 47, 0.28);
}

.user-list {
  display: grid;
  align-content: start;
  gap: 9px;
  max-height: min(520px, calc(100vh - 260px));
  overflow: auto;
  padding-right: 4px;
}

.user-row {
  display: grid;
  grid-template-columns: 38px minmax(180px, 1fr) minmax(120px, 0.55fr) minmax(190px, 0.75fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.user-row:hover {
  transform: translateY(-1px);
  border-color: #ffc2ca;
  box-shadow: 0 12px 24px rgba(19, 27, 45, 0.055);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 650;
}

.user-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.user-main strong,
.user-main small,
.user-role,
.user-modules {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-main strong {
  font-size: 14px;
  font-weight: 560;
}

.user-main small,
.user-modules {
  color: var(--muted);
  font-size: 12px;
}

.user-role {
  width: fit-content;
  max-width: 100%;
  border-radius: 5px;
  padding: 6px 9px;
  background: #f1f4f8;
  color: #475467;
  font-size: 12px;
  font-weight: 520;
}

.loading-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 20, 32, 0.28);
  backdrop-filter: blur(6px);
  animation: fadeIn 160ms ease both;
}

.password-modal {
  display: grid;
  gap: 15px;
  width: min(420px, 100%);
  padding: 20px;
}

.user-form-modal {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(620px, 100%);
  padding: 20px;
}

.license-form-modal {
  width: min(760px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  overflow: auto;
}

.license-version-modal {
  width: min(520px, calc(100vw - 44px));
}

.it-service-modal,
.ticket-chat-modal {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  animation: cardIn 220ms ease both;
}

.modal-x-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #667085;
  font-size: 22px;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.modal-x-button:hover {
  border-color: #ffc2ca;
  background: var(--red-soft);
  color: var(--red);
  transform: translateY(-1px);
}

.it-service-modal > .it-service-head,
.user-form-modal > .user-create-head {
  padding-right: 44px;
}

.it-service-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.it-service-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 560;
}

.it-service-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.it-service-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  border: 1px solid #dde4ee;
  border-radius: 7px;
  padding: 4px;
  background: #f8fafc;
}

.it-service-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  padding: 0 14px;
  background: transparent;
  color: #667085;
  font-size: 13px;
  font-weight: 560;
}

.it-service-tabs .it-service-tab--active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 6px 14px rgba(19, 27, 45, 0.08);
}

.it-service-body,
.it-ticket-form,
.my-ticket-section,
.ticket-reply-form {
  display: grid;
  gap: 14px;
}

.it-ticket-message {
  display: grid;
  gap: 7px;
  color: #485162;
  font-size: 13px;
  font-weight: 520;
}

.main-custom-select {
  position: relative;
  display: block;
  width: 100%;
}

.main-custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 9px 11px 9px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  box-shadow: none;
}

.main-custom-select-trigger svg {
  width: 16px;
  height: 16px;
  color: #667085;
  transition: transform 160ms ease;
}

.main-custom-select--open .main-custom-select-trigger {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(237, 27, 47, 0.1);
}

.main-custom-select--open .main-custom-select-trigger svg {
  transform: rotate(90deg);
}

.main-custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  gap: 5px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(16, 24, 39, 0.16);
  animation: cardIn 140ms ease-out both;
}

.main-custom-select--open .main-custom-select-menu {
  display: grid;
}

.main-custom-select-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 430;
  text-align: left;
}

.main-custom-select-menu button:hover,
.main-custom-select-menu button.is-active {
  background: #fff4f5;
  color: var(--red);
}

.it-ticket-message textarea,
.ticket-reply-form textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 12px;
  resize: vertical;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.it-ticket-message textarea:focus,
.ticket-reply-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(237, 27, 47, 0.1);
}

.my-ticket-section h4,
.manual-placeholder h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 560;
}

.manual-placeholder p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.manual-panel {
  display: grid;
  gap: 14px;
}

.manual-tutorial-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  padding: 13px 14px;
  background: #fff;
}

.manual-tutorial-card h4,
.manual-tutorial-card p {
  margin: 0;
}

.manual-tutorial-card h4 {
  color: var(--ink);
  font-size: 14px;
  font-weight: 560;
}

.manual-tutorial-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}

.manual-topic-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  border: 1px solid #dde4ee;
  border-radius: 7px;
  padding: 4px;
  background: #f8fafc;
}

.manual-topic-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 5px;
  padding: 0 13px;
  background: transparent;
  color: #667085;
  font-size: 13px;
  font-weight: 520;
}

.manual-topic-tabs .manual-topic--active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 6px 14px rgba(19, 27, 45, 0.08);
}

.manual-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.manual-card {
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  padding: 14px;
  background: #fff;
}

.manual-card h4 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 560;
}

.manual-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #536070;
  font-size: 13px;
  line-height: 1.45;
}

.manual-card li::marker {
  color: var(--red);
}

.my-ticket-list {
  display: grid;
  gap: 8px;
}

.my-ticket-item {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.my-ticket-item:hover {
  border-color: #ffc2ca;
  background: var(--red-soft);
}

.my-ticket-item strong {
  font-size: 13px;
  font-weight: 560;
}

.my-ticket-item small {
  color: var(--muted);
  font-size: 12px;
}

.ticket-chat-log {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow: auto;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  padding: 12px;
  background: #f8fafc;
}

.ticket-message {
  justify-self: start;
  max-width: 82%;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.ticket-message--it {
  justify-self: end;
  border-color: #ffc2ca;
  background: var(--red-soft);
}

.ticket-message strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 560;
}

.ticket-message strong span {
  color: var(--muted);
  font-weight: 520;
}

.ticket-message p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.user-modal-form {
  display: grid;
  gap: 16px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.modal-actions .login-submit,
.modal-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 158px;
  min-width: 158px;
  min-height: 42px;
  height: 42px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1;
}

.generated-password-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.generated-password-row code {
  display: block;
  min-height: 42px;
  border: 1px solid #dde4ee;
  border-radius: 5px;
  padding: 11px 12px;
  background: #f8fafc;
  color: #172033;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  overflow-x: auto;
  transition: filter 170ms ease, color 170ms ease, background 170ms ease;
}

.generated-password-row--masked code {
  filter: blur(6px);
  color: transparent;
  text-shadow: 0 0 9px rgba(23, 32, 51, 0.72);
  user-select: none;
}

.generated-password-row--masked:hover code,
.generated-password-row--masked:focus-within code {
  filter: blur(0);
  color: #172033;
  text-shadow: none;
  user-select: text;
}

.copy-generated-password {
  width: 40px;
  min-height: 42px;
  color: var(--red);
  background: var(--red-soft);
}

.close-password-modal {
  width: fit-content;
  min-width: 112px;
  min-height: 40px;
  padding: 0 14px;
  justify-self: start;
  font-size: 13px;
}

.copy-status {
  min-height: 18px;
}

.backup-modal {
  min-height: 190px;
}

.backup-loader {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1f6;
}

.backup-loader span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: var(--red);
  animation: backupLoad 900ms ease-in-out infinite;
}

.portal-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  border: 1px solid #b9ebce;
  border-radius: 7px;
  padding: 12px 14px;
  background: #f5fbf8;
  color: #11723d;
  font-size: 13px;
  font-weight: 520;
  box-shadow: 0 16px 34px rgba(19, 27, 45, 0.12);
  animation: surfaceIn 180ms ease both;
}

.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: auto;
  animation: fadeIn 160ms ease both;
}

.tutorial-dim {
  position: fixed;
  background: rgba(15, 20, 32, 0.58);
  backdrop-filter: blur(2px);
}

.tutorial-dim--top {
  inset: 0 0 auto;
}

.tutorial-dim--left {
  left: 0;
}

.tutorial-dim--right {
  right: 0;
}

.tutorial-dim--bottom {
  inset: auto 0 0;
}

.tutorial-hole {
  position: fixed;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  animation: tutorialPulse 1400ms ease-in-out infinite;
}

.tutorial-highlight-target {
  position: relative;
  z-index: 81 !important;
}

.it-service-button.tutorial-highlight-target {
  position: fixed;
}

.tutorial-card {
  position: fixed;
  z-index: 82;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 36px));
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 55px rgba(15, 20, 32, 0.2);
  animation: surfaceIn 190ms ease both;
}

.tutorial-card .modal-x-button {
  top: 10px;
  right: 10px;
}

.tutorial-card small {
  color: var(--red);
  font-size: 11.5px;
  font-weight: 560;
}

.tutorial-card h3 {
  margin: 0;
  padding-right: 34px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 560;
}

.tutorial-card p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.tutorial-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.tutorial-actions .login-submit,
.tutorial-actions .admin-light-button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12.5px;
}

.tutorial-actions .admin-light-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.ticket-board {
  display: grid;
  gap: 15px;
  padding: 18px;
  animation: cardIn 360ms ease both;
}

.ticket-list {
  display: grid;
  gap: 9px;
}

.ticket-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.45fr) minmax(110px, 0.3fr) minmax(170px, auto);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  border: 1px solid #e1e7ef;
  border-left: 4px solid #ccd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ticket-row:hover {
  border-color: #ffc2ca;
  box-shadow: 0 12px 24px rgba(19, 27, 45, 0.055);
  transform: translateY(-1px);
}

.ticket-row--approved {
  border-left-color: #18a058;
  background: #f5fbf8;
}

.ticket-row--rejected {
  border-left-color: var(--red);
  background: #fff7f8;
}

.ticket-row strong,
.ticket-row small {
  display: block;
}

.ticket-row strong {
  font-size: 14px;
  font-weight: 560;
}

.ticket-row small,
.ticket-row > span:nth-child(2) {
  color: var(--muted);
  font-size: 12px;
}

.ticket-status {
  width: fit-content;
  border-radius: 5px;
  padding: 6px 10px;
  background: #f1f4f8;
  color: #475467;
  font-size: 12px;
  font-weight: 560;
}

.ticket-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.ticket-review-info {
  color: #667085;
  font-size: 11.5px;
  font-weight: 430;
  white-space: nowrap;
}

.ticket-actions {
  display: flex;
  gap: 8px;
}

.ticket-actions button {
  min-height: 34px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 0 10px;
  background: #fff;
  color: #3f4857;
  font-size: 12px;
  font-weight: 560;
}

.ticket-actions button:first-child {
  border-color: #b9ebce;
  color: #11723d;
}

.ticket-actions button:last-child {
  border-color: #ffc2ca;
  color: var(--red);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes surfaceIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes backupLoad {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(280%);
  }
}

@keyframes tutorialPulse {
  0%,
  100% {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(255, 255, 255, 0.28);
  }

  50% {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18), 0 0 0 7px rgba(255, 255, 255, 0.08);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes softExpand {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes adminContentEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subnavReveal {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    max-height: 120px;
    transform: translateY(0);
  }
}

@keyframes subnavLineIn {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes subnavItemIn {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes softGearTurn {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes areaSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes areaLaunchIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-side-note {
  position: absolute;
  z-index: 1;
  right: clamp(22px, 6vw, 84px);
  bottom: clamp(22px, 6vw, 76px);
  display: grid;
  gap: 8px;
  width: min(330px, calc(100% - 44px));
  color: #283140;
}

.login-side-note span,
.live-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  border-radius: 5px;
  padding: 5px 10px;
  background: #e8f6ee;
  color: #11723d;
  font-size: 12px;
  font-weight: 800;
}

.login-side-note strong {
  font-size: 22px;
  line-height: 1.2;
}

.shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 34px 22px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.logo {
  width: 138px;
  height: auto;
  object-fit: contain;
  margin: 8px 0 24px 10px;
}

nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 15px;
  background: transparent;
  color: #303846;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-item:hover,
.nav-item--active {
  border-color: #ffc2ca;
  background: var(--red-soft);
  color: var(--red);
}

.account-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  margin-top: auto;
  border: 0;
  border-radius: 5px;
  padding: 12px;
  background: #f6f8fb;
  color: var(--ink);
  text-align: left;
}

.account-button span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.account-button strong,
.account-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 34px clamp(24px, 4vw, 54px);
}

.topbar,
.hero-panel,
.module-grid {
  width: min(1180px, 100%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.topbar h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 22px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
}

.hero-metrics {
  display: grid;
  gap: 10px;
}

.hero-metrics span,
.module-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.hero-metrics span {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: var(--muted);
}

.hero-metrics strong {
  color: var(--ink);
  font-size: 22px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  display: grid;
  align-content: space-between;
  min-height: 230px;
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.module-card h3 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.module-card button {
  width: fit-content;
  min-height: 42px;
  border: 1px solid #d7dde6;
  border-radius: 5px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.module-card button:hover {
  border-color: var(--red);
  color: var(--red);
}

@media (max-width: 920px) {
  .login-side-note {
    display: none;
  }

  .login-card {
    padding: 26px;
  }

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 14px;
    overflow-x: auto;
  }

  .logo {
    width: 92px;
    margin: 0;
  }

  nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
  }

  .hero-panel,
  .module-grid,
  .area-grid,
  .manual-content {
    grid-template-columns: 1fr;
  }

  .area-page {
    align-items: start;
    overflow-y: auto;
    padding-bottom: 150px;
  }

  .area-stage {
    transform: none;
  }

  .area-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .area-card-status {
    grid-column: 2;
    justify-self: start;
  }

  .session-dock {
    position: fixed;
    left: 14px;
    right: auto;
    width: min(250px, calc(100vw - 92px));
  }

  .it-service-button {
    right: 14px;
    bottom: 18px;
  }

  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 4;
    gap: 14px;
    padding: 14px;
  }

  .admin-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .admin-nav-group {
    min-width: max-content;
  }

  .admin-subnav {
    margin-left: 8px;
  }

  .admin-hero,
  .admin-stat-grid,
  .user-management,
  .development-roadmap {
    grid-template-columns: 1fr;
  }

  .user-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .user-role,
  .user-modules,
  .user-edit-button {
    grid-column: 2;
  }

  .module-permission-grid,
  .user-form-grid,
  .user-overview-stats,
  .admin-license-row,
  .ticket-row {
    grid-template-columns: 1fr;
  }

  .admin-license-row strong,
  .admin-license-row small {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  html,
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .login-page,
  .area-page,
  .admin-page {
    min-width: 0;
  }

  .login-card,
  .area-stage,
  .admin-workspace,
  .admin-topbar,
  .admin-management-board,
  .admin-overview-card,
  .admin-list-board,
  .user-list-card,
  .ticket-board,
  .it-service-modal,
  .ticket-chat-modal,
  .user-form-modal,
  .license-form-modal {
    width: 100%;
    max-width: calc(100vw - 20px);
  }

  .area-stage {
    padding: 18px 10px 150px;
  }

  .area-welcome h1,
  .admin-topbar h2 {
    font-size: 30px;
  }

  .area-card {
    min-height: 92px;
    padding: 14px;
  }

  .session-dock {
    left: 10px;
    bottom: 12px;
    width: calc(100vw - 20px);
    grid-template-columns: 1fr auto;
  }

  .it-service-button {
    right: 10px;
    bottom: 82px;
  }

  .admin-sidebar {
    overflow-x: auto;
  }

  .admin-workspace {
    padding: 18px 10px 28px;
  }

  .admin-topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-user-pill {
    justify-self: start;
  }

  .modal-backdrop {
    align-items: flex-start;
    padding: 10px;
  }

  .it-service-modal,
  .ticket-chat-modal,
  .user-form-modal,
  .license-form-modal {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }

  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-actions button,
  .user-create-submit,
  .secondary-button {
    width: 100%;
    justify-content: center;
  }

  .user-row {
    gap: 8px;
    padding: 12px;
  }

  .user-edit-button,
  .delete-user-button {
    width: 100%;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .admin-stat-grid,
  .user-overview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  * {
    min-width: 0;
  }

  body {
    overflow-x: hidden;
  }

  .login-page {
    padding: 16px;
  }

  .login-card {
    padding: 24px 18px;
  }

  .area-page {
    display: block;
    min-height: 100dvh;
    padding: 0 0 136px;
  }

  .area-stage {
    width: 100%;
    max-width: none;
    padding: 22px 14px 0;
  }

  .area-welcome h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  .area-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .area-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    min-height: 88px;
    padding: 13px;
  }

  .area-card-content strong,
  .area-card-content small {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .session-dock {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }

  .session-account {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .session-logout {
    min-width: 76px;
  }

  .it-service-button {
    right: 10px;
    bottom: 74px;
  }

  .admin-page {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100dvh;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    gap: 10px;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.94);
  }

  .admin-back {
    width: fit-content;
    min-height: 34px;
  }

  .admin-control-label {
    padding: 0 4px;
  }

  .admin-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-nav-group {
    flex: 0 0 auto;
    min-width: 144px;
  }

  .admin-nav-item {
    min-height: 38px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .admin-subnav {
    margin: 6px 0 0 0;
    padding-left: 8px;
  }

  .admin-workspace {
    width: 100%;
    padding: 18px 12px 28px;
  }

  .admin-topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
  }

  .admin-topbar h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  .admin-management-board,
  .ticket-management,
  .user-management {
    gap: 12px;
  }

  .admin-overview-card,
  .admin-list-board,
  .user-overview-card,
  .user-list-card,
  .ticket-overview-card,
  .ticket-board {
    padding: 14px;
  }

  .user-overview-stats,
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .user-list-head,
  .ticket-board-head,
  .it-service-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .user-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .user-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px 10px;
    min-height: auto;
    padding: 12px;
  }

  .user-role,
  .user-modules,
  .user-edit-button {
    grid-column: 1 / -1;
  }

  .user-role {
    width: 100%;
    text-align: center;
  }

  .user-edit-button {
    width: 100%;
  }

  .admin-license-row,
  .ticket-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .license-actions,
  .ticket-row-actions {
    justify-content: stretch;
  }

  .license-actions button,
  .ticket-row-actions button {
    flex: 1 1 120px;
  }

  .modal-backdrop {
    place-items: start center;
    padding: 10px;
    overflow-y: auto;
  }

  .it-service-modal,
  .ticket-chat-modal,
  .user-form-modal,
  .license-form-modal,
  .password-modal {
    width: min(100%, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    padding: 16px;
  }

  .user-form-grid,
  .module-permission-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .modal-actions .login-submit,
  .modal-actions .secondary-button,
  .user-create-submit,
  .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .main-custom-select-menu,
  .main-custom-select-list {
    max-width: calc(100vw - 44px);
  }
}

@media (max-width: 420px) {
  .session-account {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .session-logout {
    grid-column: 1 / -1;
    width: 100%;
  }

  .it-service-button {
    bottom: 104px;
  }
}

.admin-mobile-nav-head {
  display: contents;
}

.admin-mobile-nav-toggle,
.admin-mobile-nav-close,
.admin-mobile-scrim {
  display: none;
}

@media (max-width: 1024px) {
  body:has(.admin-page--nav-open) {
    overflow: hidden;
  }

  .admin-page {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 102;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(84vw, 306px);
    height: 100dvh;
    padding: 14px 12px;
    border: 0;
    border-right: 1px solid var(--line);
    overflow: hidden;
    background: #fff;
    box-shadow: 18px 0 48px rgba(19, 27, 45, 0.16);
    transform: translateX(-105%);
    transition: transform 220ms cubic-bezier(0.22, 0.8, 0.32, 1);
    animation: none !important;
  }

  .admin-page--nav-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-mobile-nav-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }

  .admin-mobile-nav-head .admin-back {
    width: 100%;
  }

  .admin-mobile-nav-head .admin-control-label {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 6px;
  }

  .admin-mobile-nav-toggle,
  .admin-mobile-nav-close {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 1px solid #dce3ed;
    border-radius: 7px;
    padding: 0;
    background: #fff;
    color: #4f5970;
  }

  .admin-mobile-nav-toggle svg,
  .admin-mobile-nav-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .admin-mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 101;
    border: 0;
    background: rgba(18, 25, 38, 0.42);
    opacity: 0;
    pointer-events: none;
  }

  .admin-page--nav-open .admin-mobile-scrim {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .admin-nav {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .admin-nav-group {
    min-width: 0;
  }

  .admin-subnav {
    margin: 2px 0 6px 33px;
  }

  .admin-workspace {
    width: 100%;
    max-width: none;
    padding: 18px clamp(12px, 3vw, 28px) 30px;
  }

  .admin-topbar {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: start;
  }

  .admin-topbar p {
    overflow-wrap: anywhere;
  }

  .admin-license-list,
  .admin-log-list,
  .user-list,
  .ticket-list {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .admin-workspace {
    padding: 12px 10px 24px;
  }

  .admin-topbar {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .admin-topbar h2 {
    font-size: 24px;
    overflow-wrap: anywhere;
  }

  .admin-user-pill {
    grid-column: 2;
    justify-self: start;
  }

  .admin-overview-card,
  .admin-list-board,
  .user-overview-card,
  .user-list-card,
  .ticket-overview-card,
  .ticket-board,
  .admin-panel,
  .admin-hero {
    padding: 13px;
  }

  .user-row,
  .ticket-row,
  .admin-license-row,
  .admin-log-row,
  .development-ticket-row,
  .maintenance-admin-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
    min-width: 0;
  }

  .admin-log-row time {
    text-align: left;
  }

  .license-actions,
  .ticket-row-actions {
    width: 100%;
    justify-content: stretch;
  }

  .license-actions button,
  .ticket-row-actions button,
  .maintenance-admin-row button {
    flex: 1 1 120px;
    width: auto;
    min-width: 0;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .admin-stat-grid,
  .user-overview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
