:root {
  --md-sys-color-primary: #1e4d2b;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #d8ecd8;
  --md-sys-color-on-primary-container: #0d2b17;
  --md-sys-color-surface: #ffffff;
  --md-sys-color-surface-container: #f4f7f4;
  --md-sys-color-background: #f7faf7;
  --md-sys-color-outline: #bcc6be;
  --md-sys-color-outline-variant: #dce3dd;
  --md-sys-color-on-surface: #1b1f1c;
  --md-sys-color-on-surface-variant: #58625b;
  --md-sys-color-error: #b3261e;
  --csu-gold: #c8c372;
  --csu-gold-ink: #6e6721;
  --csu-gold-wash: #f4f1db;
  --md-elevation-1: 0 1px 2px rgba(16, 24, 19, 0.08), 0 2px 8px rgba(16, 24, 19, 0.06);
  --md-elevation-2: 0 8px 24px rgba(16, 24, 19, 0.15);
  --md-elevation-3: 0 14px 32px rgba(16, 24, 19, 0.2);
  --radius-card: 8px;
  --radius-field: 4px;
  --top-app-bar-h: 118px;
  --app-footer-h: 46px;
  --motion-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
  --motion-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
  --motion-expressive: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

html {
  scrollbar-gutter: stable;
  overflow-y: auto;
}
body {
  margin: 0;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: var(--md-sys-color-on-surface);
  background:
    radial-gradient(900px 420px at -15% -10%, rgba(30, 77, 43, 0.1), transparent 60%),
    radial-gradient(600px 320px at 115% 0%, rgba(200, 195, 114, 0.24), transparent 58%),
    linear-gradient(180deg, #fbfdfb, var(--md-sys-color-background));
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  overflow-x: hidden;
  overflow-y: visible;
  transition: background 0.32s ease, color 0.26s ease;
}

body.is-dragging-any {
  user-select: none;
  cursor: grabbing;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1240;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(120vmax 120vmax at var(--leave-origin-x, 50%) var(--leave-origin-y, 50%), rgba(200, 195, 114, 0.28), rgba(17, 43, 27, 0.32) 65%, rgba(8, 22, 14, 0.5));
  clip-path: circle(0 at var(--leave-origin-x, 50%) var(--leave-origin-y, 50%));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1250;
  pointer-events: none;
  opacity: 0;
  background: var(--theme-wipe-color, #102318);
  clip-path: circle(0 at var(--theme-origin-x, 100%) var(--theme-origin-y, 0));
}

body.theme-animating::after {
  animation: theme-wipe 150ms linear both;
}

body.theme-to-dark {
  --theme-wipe-color: #102318;
}

body.theme-to-light {
  --theme-wipe-color: #f6f2dc;
}

body.page-entering .app-main {
  opacity: 0;
  transform: translateY(8px);
}

body.page-enter-active .app-main {
  animation: page-enter 240ms var(--motion-emphasized-decelerate) both;
}

body.page-leaving::before {
  animation: page-leave-wipe 340ms var(--motion-emphasized-accelerate) both;
}

body.page-leaving .top-app-bar,
body.page-leaving .app-main,
body.page-leaving .app-footer {
  animation: page-leave 300ms var(--motion-emphasized-accelerate) forwards;
  will-change: opacity, transform;
}

@keyframes theme-wipe {
  0% {
    opacity: 0.92;
    clip-path: circle(0 at var(--theme-origin-x, 100%) var(--theme-origin-y, 0));
  }
  88% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    clip-path: circle(170vmax at var(--theme-origin-x, 100%) var(--theme-origin-y, 0));
  }
}

@keyframes page-leave {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  26% {
    opacity: 1;
    transform: translateY(1px);
  }
  to {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-leave-wipe {
  0% {
    opacity: 0.22;
    clip-path: circle(0 at var(--leave-origin-x, 50%) var(--leave-origin-y, 50%));
  }
  30% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    clip-path: circle(170vmax at var(--leave-origin-x, 50%) var(--leave-origin-y, 50%));
  }
}

.page-leave-origin {
  animation: origin-action 300ms var(--motion-expressive) both;
  will-change: transform, filter, box-shadow, opacity;
}

@keyframes origin-action {
  0% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  34% {
    transform: translateY(-2px) scale(1.06);
    filter: brightness(1.03);
  }
  68% {
    transform: translateY(1px) scale(0.97);
    filter: brightness(0.98);
  }
  100% {
    transform: translateY(4px) scale(0.93);
    filter: brightness(0.95);
    opacity: 0;
  }
}

.shell {
  width: min(1450px, 97vw);
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--md-sys-color-on-surface);
  font-weight: 500;
}

p {
  margin: 0;
}

.top-app-bar {
  color: var(--md-sys-color-on-primary);
  background: linear-gradient(180deg, #123722 0%, #185032 72%, #24573a 100%);
  box-shadow: var(--md-elevation-2);
  border-bottom: 2px solid rgba(200, 195, 114, 0.45);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.bar-main {
  min-height: 78px;
  display: grid;
  grid-template-columns: 98px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0 10px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  line-height: 0;
}

.brand-logo-right {
  justify-content: flex-end;
  width: 72px;
}

.brand-right-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.brand-incus-stack {
  display: grid;
  justify-items: stretch;
  align-items: start;
  gap: 4px;
  width: max-content;
}

.brand-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease;
}

.brand-title-link:hover {
  color: var(--csu-gold);
  text-decoration: none;
}

.brand-subtitle-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease;
}

.brand-subtitle-link:hover {
  color: var(--csu-gold);
  text-decoration: none;
}

/* ============================================================
   Animated Theme Toggle (CSU Custom)
   ============================================================ */
.theme-toggle {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 3.1em;
  height: 1.8em;
  cursor: pointer;
  z-index: 1;
  transform: none;
  transform-origin: center;
}

/* Hide default HTML checkbox */
.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider container */
.theme-toggle .slider {
  --background: #20262c;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  transition: 0.5s;
  border-radius: 30px;
}

/* Moon / Sun core */
.theme-toggle .slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  border-radius: 50%;
  left: 10%;
  bottom: 15%;
  /* Moon crescent shadow */
  box-shadow: inset 8px -4px 0px 0px #ececd9, -4px 1px 4px 0px #dadada;
  background: var(--background);
  transition: 0.5s;
}

/* Stars in dark mode / Clouds in light mode */
.theme-toggle .decoration {
  position: absolute;
  content: "";
    height: 2px;
    width: 2px;
  border-radius: 50%;
  right: 20%;
    top: 15%;
    background: #efdf2b;
    backdrop-filter: blur(10px);
    transition: all 0.5s;
    box-shadow: -7px 10px 0 #efdf2b, 8px 15px 0 #efdf2b, -17px 1px 0 #efdf2b,
      -20px 10px 0 #efdf2b, -7px 23px 0 #efdf2b, -15px 25px 0 #efdf2b;
}

/* Checked state = Light Mode */
.theme-toggle input:checked~.decoration {
  transform: translateX(-20px);
  width: 10px;
  height: 10px;
  background: white;
  box-shadow: -12px 0 0 white, -6px 0 0 1.6px white, 5px 15px 0 1px white,
    1px 17px 0 white, 10px 17px 0 white;
}

/* Light Mode Background (Sky Blue) */
.theme-toggle input:checked+.slider {
  background-color: #5494de;
}

/* Sun state */
.theme-toggle input:checked+.slider:before {
  transform: translateX(100%);
  /* CSU Gold / Bright Sun glow */
  box-shadow: inset 15px -4px 0px 15px #efdf2b, 0 0 10px 0px #efdf2b;
}

.logo {
  display: block;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 4px 6px;
  box-shadow: var(--md-elevation-1);
}

.logo-csu {
  height: 40px;
  max-height: 40px;
  width: auto;
}

.logo-incus {
  height: 40px;
  max-height: 40px;
  width: auto;
}

.logo-cira {
  max-height: 38px;
  width: auto;
}

.brand-copy {
  text-align: center;
}

.brand-copy .eyebrow {
  color: #d3e5d7;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.78rem;
  margin-top: 3px;
}

.brand-copy h1 {
  font-size: clamp(1.22rem, 2.2vw, 1.62rem);
  line-height: 1.2;
  color: var(--md-sys-color-on-primary);
}

.bar-nav {
  padding: 10px 0 2px;
  min-height: 38px;
}

.nav-shell {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.nav-actions {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 6px;
}

.nav-actions-left {
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: auto;
  padding-bottom: 0;
  scrollbar-width: none;
}

.nav-actions-left::-webkit-scrollbar {
  display: none;
}

.nav-actions-left::-webkit-scrollbar-thumb {
  background: rgba(200, 195, 114, 0.45);
  border-radius: 999px;
}

.nav-actions-right {
  flex: 0 0 72px;
  width: 72px;
  margin-left: auto;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}

.nav-tab {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
  color: #f3faf4;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 8px 12px 8px;
  line-height: 1;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--csu-gold);
  color: #243126;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  padding: 0 5px;
}

.nav-tab::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--csu-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.16s ease;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.nav-tab:hover::after,
.nav-tab.is-active::after {
  transform: scaleX(1);
}

.nav-tab.is-active {
  background: transparent;
  border-color: transparent;
  color: var(--csu-gold);
}

.nav-tab.is-disabled-tab {
  color: rgba(245, 252, 246, 0.48);
  border-color: rgba(200, 195, 114, 0.2);
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.nav-signout-option {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 10px;
  min-height: 30px;
  width: 72px;
    margin-bottom: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease, background-color 0.14s ease;
}

.nav-signout-option .material-symbols-outlined {
  font-size: 16px;
  line-height: 1;
}

.nav-signout-mini {
  width: 100%;
  min-height: 20px;
  padding: 2px 6px;
  font-size: 0.64rem;
  border-radius: 4px;
  gap: 4px;
  justify-content: center;
}

.nav-signout-mini .material-symbols-outlined {
  font-size: 14px;
}

.nav-signout-option:hover {
  transform: translateY(-1px);
}

.nav-signout-option:active {
  transform: translateY(0);
}

.nav-signout-elevated {
  color: #ffffff;
  background: #b3261e;
  border: none;
  box-shadow: 0 2px 8px rgba(47, 9, 7, 0.35);
}

.nav-signout-tonal {
  color: #f2f5ff;
  background: #465b90;
  border: 1px solid #6f86c4;
}

.nav-signout-filled {
  color: #fff;
  background: var(--md-sys-color-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.theme-toggle:focus-visible {
  outline: none;
}

.nav-tab:focus-visible {
  outline: 1px solid rgba(200, 195, 114, 0.62);
  outline-offset: -1px;
  color: var(--csu-gold);
}

.nav-tab:focus-visible::after {
  transform: scaleX(0);
}

.nav-signout-option:focus-visible {
  outline: none;
}

.app-main {
  flex: 1 0 auto;
  margin-top: var(--top-app-bar-h);
  min-height: calc(100vh - var(--top-app-bar-h) - var(--app-footer-h));
  overflow: visible;
  overflow-x: hidden;
  padding: 16px 0 calc(var(--app-footer-h) + 24px);
}

.flash-stack {
  margin-bottom: 12px;
  display: grid;
  gap: 8px;
}

.flash {
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
  animation: flash-in 0.22s ease both;
}

@keyframes flash-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-success {
  background: #1d633b;
  color: #ffffff;
  border-color: #2f7a4e;
}

.flash-error {
  background: #1d633b;
  color: #ffffff;
  border-color: #2f7a4e;
}

.flash-warning {
  background: #1d633b;
  color: #ffffff;
  border-color: #2f7a4e;
}

.surface {
  background: var(--md-sys-color-surface);
  border: none;
  border-radius: var(--radius-card);
  box-shadow: var(--md-elevation-2);
  padding: 14px 16px;
  margin-bottom: 14px;
  animation: surface-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.surface:hover {
  box-shadow: var(--md-elevation-3);
  transform: translateY(-1px);
}

.surface h2 {
  font-size: 1.28rem;
  margin-bottom: 8px;
}

.surface h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.surface p {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.92rem;
  line-height: 1.45;
}

.surface h2 + form,
.surface p + form {
  margin-top: 18px;
}

@keyframes surface-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  padding-top: 16px;
  padding-bottom: 16px;
}

.endpoint-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.endpoint-note {
  margin-top: 8px;
  font-size: 0.83rem;
}

.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.15fr minmax(340px, 430px);
  gap: 16px;
  align-items: start;
}

.auth-info {
  background:
    linear-gradient(140deg, rgba(30, 77, 43, 0.06), rgba(200, 195, 114, 0.08)),
    var(--md-sys-color-surface);
}

.auth-info h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  margin-bottom: 10px;
  color: #163826;
}

.auth-info > p {
  margin-bottom: 12px;
}

.auth-panel {
  box-shadow: var(--md-elevation-2);
}

.auth-center {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--md-elevation-2);
}

.auth-login-card {
  margin-top: 22px;
}

.signup-card {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.signup-reminder-card {
  max-width: 900px;
  margin: 12px auto 0;
}

.signup-reminder-card h3 {
  margin: 0 0 6px;
}

.signup-reminder-card > p {
  margin: 0 0 10px;
}

.signup-reminder-form {
  max-width: 900px;
}

.input-with-action.signup-reminder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.field.md-field > .input-with-action.signup-reminder-row > input {
  padding-right: 12px;
}

.signup-reminder-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.signup-reminder-btn .material-symbols-outlined {
  font-size: 18px;
}

.signup-reminder-hint {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.icon-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
  border: none;
  border-radius: 8px;
  background: #f8fbf8;
  padding: 10px 11px;
  color: #33473b;
  font-size: 0.88rem;
  line-height: 1.4;
}

.icon-list .material-symbols-outlined {
  font-size: 18px;
  color: #2f5f42;
  line-height: 1;
}

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

.profile-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
}

.field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.field.md-field {
  position: relative;
  display: grid;
  gap: 0;
  min-width: 0;
}

.field.md-field > label {
  position: absolute;
  top: 24px;
  left: 12px;
  padding: 0 4px;
  margin: 0;
  background: var(--md-sys-color-surface);
  color: #66736c;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  transform-origin: left top;
  transform: translateY(-50%) scale(1);
  transition: top 0.14s ease, transform 0.14s ease, color 0.14s ease;
}

.required-indicator {
  margin-left: 2px;
  color: #7c8b83;
}

.field.md-field.is-focused > label,
.field.md-field.is-filled > label,
.field.md-field.has-error > label {
  top: 0;
  transform: translateY(-50%) scale(0.82);
  color: var(--md-sys-color-primary);
}

/* Keep label floated for autofilled or non-empty fields even before JS updates state classes. */
.field.md-field:has(> input:-webkit-autofill) > label,
.field.md-field:has(> .input-with-action > input:-webkit-autofill) > label,
.field.md-field:has(> input:autofill) > label,
.field.md-field:has(> .input-with-action > input:autofill) > label,
.field.md-field:has(> input:not(:placeholder-shown)) > label,
.field.md-field:has(> .input-with-action > input:not(:placeholder-shown)) > label,
.field.md-field:has(> textarea:not(:placeholder-shown)) > label {
  top: 0;
  transform: translateY(-50%) scale(0.82);
}

.field.md-field.has-error > label,
.field.md-field.has-error .required-indicator {
  color: var(--md-sys-color-error);
}

.field.md-field > input,
.field.md-field > select,
.field.md-field > textarea,
.field.md-field > .input-with-action > input {
  width: 100%;
  border: 1px solid #d9cd8f;
  border-radius: var(--radius-field);
  min-height: 48px;
  background: #fffdf3;
  color: var(--md-sys-color-on-surface);
  padding: 16px 12px 8px;
  font-size: 0.88rem;
  line-height: 1.35;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.field.md-field > textarea {
  min-height: 86px;
  resize: vertical;
  padding-top: 18px;
}

.field.md-field > input::placeholder,
.field.md-field > textarea::placeholder,
.field.md-field > .input-with-action > input::placeholder {
  color: transparent;
}

@keyframes md-autofill-start {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}

.field.md-field > input:-webkit-autofill,
.field.md-field > .input-with-action > input:-webkit-autofill,
.field.md-field > input:autofill,
.field.md-field > .input-with-action > input:autofill {
  animation-name: md-autofill-start;
  animation-duration: 0.001s;
}

.field.md-field.is-focused > input,
.field.md-field.is-focused > select,
.field.md-field.is-focused > textarea,
.field.md-field.is-focused > .input-with-action > input {
  outline: none;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 1px var(--md-sys-color-primary), 0 0 0 3px rgba(200, 195, 114, 0.22);
  background: #ffffff;
}

.field.md-field.has-error > input,
.field.md-field.has-error > select,
.field.md-field.has-error > textarea,
.field.md-field.has-error > .input-with-action > input {
  border-color: var(--md-sys-color-error);
  box-shadow: 0 0 0 1px var(--md-sys-color-error);
}

.field.md-field.has-trailing > input {
  padding-right: 44px;
}

.field-trailing-icon {
  position: absolute;
  right: 12px;
  top: 14px;
  z-index: 2;
  color: #6b7871;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

.field.md-field.is-focused .field-trailing-icon {
  color: var(--md-sys-color-primary);
}

.field.md-field.has-error .field-trailing-icon {
  color: var(--md-sys-color-error);
}

.field.md-field.is-select::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  position: absolute;
  right: 12px;
  top: 14px;
  color: #6b7871;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

.field.md-field.is-select > select {
  appearance: none;
  padding-right: 44px;
}

.input-with-action {
  position: relative;
  display: block;
}

.input-with-action > input {
  padding-right: 44px;
}

.input-icon-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #66736c;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.input-icon-btn:hover {
  background: #eef3ef;
}

.input-icon-btn:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.input-icon-btn .material-symbols-outlined {
  font-size: 19px;
  line-height: 1;
}

.field.md-field.has-error .input-icon-btn {
  color: var(--md-sys-color-error);
}

.field.md-field.has-error .input-icon-btn:hover {
  background: #fdeeee;
}

.field.md-field.has-error .input-icon-btn:focus-visible {
  outline-color: var(--md-sys-color-error);
}

.field-support {
  min-height: 16px;
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
}

.field .field-hint,
.field .field-error,
.field .field-count {
  margin: 0;
  font-size: 0.58rem;
  line-height: 1.2;
}

.field .field-hint {
  color: #607268;
  flex: 0 1 auto;
}

.field .field-error {
  display: none;
  color: #b3261e;
  font-weight: 400;
  flex: 0 1 auto;
}

.field .field-count {
  color: #738179;
  text-align: right;
  margin-left: auto;
  flex: 0 0 auto;
}

.field .field-count.is-limit {
  color: var(--md-sys-color-error);
  font-weight: 600;
}

.field.md-field.has-error .field-error {
  display: inline;
}

.field.md-field.has-error .field-count {
  color: var(--md-sys-color-error);
}

.country-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  max-height: 210px;
  overflow-y: auto;
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 6px;
  box-shadow: var(--md-elevation-2);
  padding: 4px 0;
}

.country-menu.open {
  display: block;
}

.country-option {
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
}

.country-option:hover,
.country-option.is-active {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.span-2 {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 2px;
}

.signup-login-hint {
  margin: 8px 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
}

.signup-login-hint a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-weight: 500;
}

.signup-login-hint a:hover {
  text-decoration: underline;
}

.auth-links {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-links a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease, background-color 0.14s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.ripple-host {
  overflow: hidden;
}

.ui-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.32);
  animation: ui-ripple 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes ui-ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

.btn-filled {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: 0 1px 2px rgba(16, 24, 19, 0.16);
}

.btn-filled:hover {
  filter: brightness(0.98);
}

.btn-tonal {
  background: var(--csu-gold-wash);
  color: var(--csu-gold-ink);
  border-color: #ddd5a3;
}

.btn-tonal:hover {
  filter: brightness(0.98);
}

.btn-text {
  background: transparent;
  color: var(--md-sys-color-primary);
  border-color: #d8d4b1;
}

.btn-text:hover {
  background: #f5f4e7;
}

.btn-danger {
  background: var(--md-sys-color-error);
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(0.96);
}

.btn-small {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.79rem;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.search-row input {
  flex: 1;
  border: 1px solid #d9cd8f;
  border-radius: 8px;
  min-height: 36px;
  background: #fffdf3;
  padding: 7px 10px;
  font-size: 0.85rem;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.search-row input:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 1px var(--md-sys-color-primary), 0 0 0 3px rgba(200, 195, 114, 0.22);
  background: #ffffff;
}

.admin-fixed-card {
  margin-bottom: 14px;
}

.admin-panels {
  display: grid;
  gap: 14px;
}

.admin-panel {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
}

.admin-panel.is-filter-open {
  z-index: 45;
}

.admin-panel-body {
  min-width: 0;
}

.admin-panel[data-panel-id="requests"] .admin-panel-body {
  padding-right: 58px;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-panel-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-panel-title-wrap h3 {
  white-space: nowrap;
}

.panel-collapse-btn {
  border: none;
  background: transparent;
  color: #4f6156;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.panel-collapse-btn:hover {
  background: #edf2ee;
}

.admin-panel-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-search-row {
  position: relative;
  align-items: center;
}

.admin-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  min-height: 36px;
  background: #e9eeea;
  padding: 0 8px 0 10px;
  box-shadow: none;
  transition: background-color 0.14s ease;
}

.admin-search-field:focus-within {
  box-shadow: none;
  background: #dde5de;
}

.admin-search-field .material-symbols-outlined {
  font-size: 18px;
  color: #5f6e65;
}

.admin-search-field input {
  border: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  min-height: 34px;
  padding: 0;
  box-shadow: none;
}

.admin-search-field input:focus {
  outline: none;
  border: none;
  box-shadow: none;
  background: transparent !important;
}

.admin-search-field input[type="search"]::-webkit-search-decoration,
.admin-search-field input[type="search"]::-webkit-search-cancel-button,
.admin-search-field input[type="search"]::-webkit-search-results-button,
.admin-search-field input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.admin-filter-btn {
  flex: 0 0 auto;
}

.search-filter-btn {
  border: none;
  border-radius: 999px;
  background: transparent;
  margin-left: auto;
  min-width: 28px;
  min-height: 28px;
  color: #56695f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
}

.search-filter-btn:hover {
  background: #e8eeea;
}

.icon-btn {
  border: none;
  background: transparent;
  color: #4f6156;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.icon-btn:hover {
  background: #edf2ee;
}

.icon-btn:focus-visible {
  outline: none;
  background: #edf2ee;
  box-shadow: 0 0 0 2px rgba(30, 77, 43, 0.24);
}

.icon-btn .material-symbols-outlined {
  font-size: 18px;
}

.icon-btn.icon-btn-close {
  color: #4f6156;
  border: none;
  background: transparent;
}

.icon-btn.icon-btn-close:hover,
.icon-btn.icon-btn-close:focus-visible {
  color: #4f6156;
}

.panel-collapse-btn:focus-visible {
  outline: none;
  background: #edf2ee;
  box-shadow: 0 0 0 2px rgba(30, 77, 43, 0.24);
}

.column-chooser {
  position: relative;
}

.column-chooser summary {
  list-style: none;
  cursor: pointer;
  min-height: 36px;
  border: 1px solid #ddd5a3;
  border-radius: 8px;
  background: #f4f1db;
  color: #4f4a19;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
  user-select: none;
}

.column-chooser summary::-webkit-details-marker {
  display: none;
}

.column-chooser-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 120;
  min-width: 200px;
  display: grid;
  gap: 6px;
  border: 1px solid #dcd6af;
  border-radius: 8px;
  background: #fffef8;
  box-shadow: var(--md-elevation-2);
  padding: 10px;
}

.column-chooser-panel label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  color: #3f4d45;
}

.user-filter-panel {
  position: absolute;
  z-index: 1600;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0;
  align-items: start;
  border: none;
  border-radius: 12px;
  background: var(--md-sys-color-surface);
  box-shadow: var(--md-elevation-3);
  padding: 12px;
}

.admin-panel-body[data-admin-user-mgmt] {
  position: relative;
}

.user-filter-panel label {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  color: #44584d;
  min-width: 0;
  width: 100%;
  position: relative;
}

.filter-popover-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.user-filter-panel input,
.user-filter-panel select {
  min-height: 34px;
  width: 100%;
  border: 1px solid #d9cd8f;
  border-radius: 7px;
  background: #fffdf3;
  color: var(--md-sys-color-on-surface);
  padding: 4px 8px;
  font-size: 0.8rem;
}

.user-filter-panel select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64766c 50%),
    linear-gradient(135deg, #64766c 50%, transparent 50%);
  background-position: calc(100% - 15px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
}

.filter-select-wrap {
  position: relative;
}

.user-filter-panel input:focus,
.user-filter-panel select:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 1px var(--md-sys-color-primary), 0 0 0 3px rgba(200, 195, 114, 0.22);
  background: #ffffff;
}

.filter-country-composer {
  min-height: 34px;
  border: 1px solid #d9cd8f;
  border-radius: 7px;
  background: #fffdf3;
  padding: 4px 8px;
  display: grid;
  gap: 4px;
}

.filter-country-composer:focus-within {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 1px var(--md-sys-color-primary), 0 0 0 3px rgba(200, 195, 114, 0.22);
  background: #ffffff;
}

.filter-country-composer input {
  min-height: 24px;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.filter-country-composer input:focus {
  border: none;
  box-shadow: none;
  background: transparent;
}

.filter-country-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1700;
}

.filter-chip-options {
  max-height: 48px;
  overflow-x: auto;
  overflow-y: hidden;
}

.column-chooser-inline {
  grid-column: 1 / -1;
  margin: 0;
  min-width: 0;
  padding: 8px;
  border: 1px solid #d7dfd8;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 10px;
}

.column-chooser-inline legend {
  padding: 0 4px;
  font-size: 0.74rem;
  color: #3d4e44;
  font-weight: 600;
}

.column-chooser-inline label {
  min-width: 0;
  font-size: 0.74rem;
  color: #43544b;
}

.selection-action-bar {
  margin-bottom: 10px;
  border: 1px solid #c5d0ca;
  border-radius: 8px;
  padding: 10px;
  background: #f3f7f4;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.selection-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #254a34;
}

.selection-hint {
  font-size: 0.74rem;
  color: #4f6057;
}

.selection-action-bar label {
  display: grid;
  gap: 4px;
  font-size: 0.73rem;
  color: #415248;
}

.selection-action-bar select,
.selection-action-bar input {
  min-width: 140px;
  min-height: 34px;
  border: 1px solid #d9cd8f;
  border-radius: 7px;
  background: #fffdf3;
  color: var(--md-sys-color-on-surface);
  padding: 4px 6px;
  font-size: 0.79rem;
}

.selection-action-bar select:focus,
.selection-action-bar input:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 1px var(--md-sys-color-primary);
}

.chip-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.js-chip-source {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.chip-field {
  min-height: 34px;
  border: 1px solid #d9cd8f;
  border-radius: 7px;
  background: #fffdf3;
  padding: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chip-field::-webkit-scrollbar {
  display: none;
}

.chip-field.chip-field-plain {
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.chip-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chip-options::-webkit-scrollbar {
  display: none;
}

.chip-option {
  border: 1px solid #d9cd8f;
  border-radius: 999px;
  background: #fffdf3;
  color: #43544b;
  padding: 4px 10px;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.chip-option .material-symbols-outlined {
  font-size: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.chip-option:hover .material-symbols-outlined,
.chip-option:focus-visible .material-symbols-outlined {
  background: #edf2ee;
}

.chip-option.is-selected {
  background: #d8ecd8;
  border-color: #9fc5a8;
  color: #1f5a33;
}

.chip-option.is-selected.is-danger {
  background: #f9dfdf;
  border-color: #e6b2b0;
  color: #8f2320;
}

.chip-field.chip-field-plain .chip-option {
  background: #f3f7f4;
  border-color: #c5d0ca;
}

.chip-field.chip-field-plain .chip-option.is-selected {
  background: #d8ecd8;
  border-color: #9fc5a8;
  color: #1f5a33;
}

.chip-field.chip-field-plain .chip-option.is-selected.is-danger {
  background: #f9dfdf;
  border-color: #e6b2b0;
  color: #8f2320;
}

.chip-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.filter-indicators {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  border: 1px solid #d8d4b1;
  border-radius: 999px;
  background: #f6f4df;
  color: #4a511f;
  padding: 4px 8px;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.filter-chip .material-symbols-outlined {
  font-size: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.filter-chip:hover .material-symbols-outlined,
.filter-chip:focus-visible .material-symbols-outlined {
  background: #edf2ee;
}

.bulk-count {
  font-size: 0.74rem;
  color: #4b5f53;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.bulk-field {
  display: grid;
  gap: 4px;
  font-size: 0.72rem;
  color: #4b5f53;
}

.bulk-field select {
  min-height: 32px;
  border: 1px solid #d9cd8f;
  border-radius: 6px;
  background: #fffdf3;
  color: var(--md-sys-color-on-surface);
  padding: 4px 8px;
  font-size: 0.79rem;
}

.user-list-shell {
  --col-user_id: 72px;
  --col-username: 180px;
  --col-email: 220px;
  --col-name: 150px;
  --col-affiliation: 180px;
  --col-country: 130px;
  --col-groups: 210px;
  --col-role: 210px;
  --col-is_active: 140px;
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-gutter: stable;
}

.user-grid-row {
  display: grid;
  grid-template-columns:
    56px
    var(--col-user_id)
    var(--col-username)
    var(--col-email)
    var(--col-name)
    var(--col-affiliation)
    var(--col-country)
    var(--col-groups)
    var(--col-role)
    var(--col-is_active);
  align-items: stretch;
  gap: 0;
  width: max-content;
  min-width: 100%;
}

.user-list-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border: 1px solid #d7dfd8;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: #faf9ee;
  width: max-content;
  min-width: 100%;
}

.user-list {
  border: 1px solid #d7dfd8;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow-y: visible;
  overflow-x: hidden;
  max-height: none;
  background: #fff;
  width: max-content;
  min-width: 100%;
}

.user-item {
  border-bottom: 1px solid #e4ebe5;
  min-height: 70px;
}

.user-item:last-child {
  border-bottom: none;
}

.user-item.is-saving {
  box-shadow: inset 0 0 0 1px #29643a;
}

.user-item.has-row-error {
  box-shadow: inset 0 0 0 1px #b3261e;
}

.user-item.is-saved {
  box-shadow: inset 0 0 0 1px #6f8f3f;
}

.user-cell {
  padding: 6px 8px;
  min-width: 0;
  border-right: 1px solid #c5cec8;
  overflow: hidden;
}

.user-item .user-cell {
  display: grid;
  align-items: center;
  gap: 0;
}

.user-cell-editable {
  align-content: center;
  grid-template-rows: minmax(36px, auto) minmax(12px, auto);
}

.user-cell-control {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 0;
  overflow: hidden;
}

.user-cell-control > * {
  width: 100%;
  min-width: 0;
}

.user-cell-control .chip-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.user-cell-control .chip-field::-webkit-scrollbar {
  display: none;
}

.user-cell-control .chip-field .chip-options {
  width: max-content;
  min-width: max-content;
  overflow: visible;
}

.user-cell-support {
  min-height: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.user-grid-row > .user-cell:last-child {
  border-right: none;
}

.user-cell.col-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-start;
  flex-direction: row;
}

.user-col-head {
  position: relative;
  font-size: 0.79rem;
  font-weight: 600;
  color: #37493f;
}

.status-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.header-filter-btn {
  min-width: 28px;
  min-height: 28px;
  border-radius: 6px;
  padding: 0;
}

.table-sort-btn {
  width: 100%;
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 600;
  padding: 0 16px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.sort-indicator {
  font-size: 16px;
  color: #8a9890;
}

.table-sort-btn.is-active-sort .sort-indicator {
  color: #1d4b2b;
}

.col-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  border-right: none;
  opacity: 0.95;
  background: transparent;
}

.col-resizer:hover {
  background: rgba(117, 130, 121, 0.22);
}

.user-field {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid #d9cd8f;
  border-radius: 6px;
  background: #fffdf3;
  color: var(--md-sys-color-on-surface);
  font-size: 0.8rem;
  padding: 6px 8px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.user-field:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 1px var(--md-sys-color-primary), 0 0 0 3px rgba(200, 195, 114, 0.22);
  background: #ffffff;
}

.user-field:invalid {
  border-color: var(--md-sys-color-error);
  box-shadow: 0 0 0 1px var(--md-sys-color-error);
}

.user-field-readonly {
  cursor: default;
}

.user-field-multi {
  min-height: 76px;
  max-height: 120px;
  padding: 4px 6px;
}

.user-field-multi option {
  border-radius: 4px;
  padding: 4px 6px;
}

.user-field-multi option:checked {
  background: #d8ecd8 linear-gradient(0deg, #d8ecd8, #d8ecd8);
  color: #1f5a33;
}

.country-autocomplete-host {
  position: relative;
}

.user-cell[data-col-key="country"],
.user-cell[data-col-key="country"] .user-cell-control {
  overflow: visible;
}

.user-cell[data-col-key="country"] .country-autocomplete-host {
  width: 100%;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px;
}

.status-chip .material-symbols-outlined {
  font-size: 14px;
}

.status-chip-pending {
  background: #f4f1db;
  color: #595217;
}

.status-toggle {
  cursor: pointer;
}

.status-chip-active {
  background: #d8ecd8;
  color: #1f5a33;
}

.status-chip-inactive {
  background: #f9dfdf;
  color: #8f2320;
}

.status-chip-warning {
  background: #f8e7c9;
  color: #784b11;
}

.user-item.is-selected-row {
  background: #f4f7f4;
}

.is-col-hidden {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border-right: none !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

.user-field-error {
  margin: 0;
  min-height: 10px;
  font-size: 0.58rem;
  line-height: 1.2;
  font-weight: 400;
  color: #b3261e !important;
  display: block;
}

.surface p.user-field-error,
.surface .user-cell-support .user-field-error {
  font-size: 0.58rem;
  line-height: 1.2;
  color: #b3261e !important;
}

.drag-placeholder {
  border: 1px dashed #9faba4;
  border-radius: 6px;
  background: rgba(207, 221, 212, 0.32);
}

.col-drag-placeholder {
  border: 1px dashed #9faba4;
  border-radius: 6px;
  background: rgba(207, 221, 212, 0.32);
}

.col-drag-ghost {
  position: fixed;
  z-index: 1700;
  pointer-events: none;
  box-shadow: 0 10px 26px rgba(16, 24, 19, 0.24);
  border-radius: 8px;
  opacity: 0.96;
  background: transparent;
  border: 1px solid #d7dfd8;
  overflow: hidden;
}

.col-drag-column-ghost {
  display: grid;
  grid-auto-rows: minmax(0, auto);
  gap: 0;
  overflow: hidden;
}

.col-drag-column-ghost .col-drag-cell {
  box-sizing: border-box;
  margin: 0;
  border-right: none;
  border-bottom: 1px solid #e4ebe5;
  background: #ffffff;
  display: grid;
  align-items: center;
  gap: 0;
}

.col-drag-column-ghost .col-drag-cell:last-child {
  border-bottom: none;
}

.col-drag-column-ghost .col-drag-cell.is-header-cell {
  background: #faf9ee;
  border-bottom: 1px solid #d7dfd8;
  color: #37493f;
}

.col-drag-column-ghost .col-drag-cell .col-resizer {
  display: none !important;
}

.is-col-drag-source {
  opacity: 0;
}

.drag-ghost {
  box-shadow: 0 10px 26px rgba(16, 24, 19, 0.24);
  border-radius: 8px;
  opacity: 0.96;
}

.is-drag-source {
  visibility: hidden;
}

.is-pointer-dragging {
  box-shadow: 0 10px 26px rgba(16, 24, 19, 0.24);
}

.fab-speed-dial {
  position: fixed;
  right: 22px;
  bottom: calc(var(--app-footer-h) + 18px);
  z-index: 1180;
}

.fab-main {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--md-sys-color-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 19, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fab-main .material-symbols-outlined {
  font-size: 22px;
  transition: transform 0.2s ease;
}

.fab-open .fab-main .material-symbols-outlined {
  transform: rotate(45deg);
}

.fab-actions {
  position: absolute;
  right: 0;
  bottom: 66px;
  display: grid;
  gap: 8px;
}

.fab-mini {
  border: none;
  border-radius: 999px;
  min-height: 36px;
  padding: 7px 12px;
  background: #f5f8f6;
  color: #274638;
  box-shadow: 0 4px 12px rgba(16, 24, 19, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.79rem;
}

.fab-mini:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.fab-mini:hover {
  background: #e8f0eb;
}

.mini-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 20, 0.36);
  z-index: 1202;
}

.mini-dialog {
  position: fixed;
  right: 22px;
  bottom: calc(var(--app-footer-h) + 92px);
  width: min(360px, calc(100vw - 24px));
  border: 1px solid #d7dfd8;
  border-radius: 10px;
  background: #fffef9;
  box-shadow: var(--md-elevation-2);
  padding: 12px;
  z-index: 1212;
}

.mini-dialog-title {
  margin: 0 0 8px;
  color: #30453a;
  font-size: 0.9rem;
  font-weight: 700;
}

.mini-dialog-form {
  display: grid;
  gap: 10px;
}

.mini-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.panel-pagination {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pagination-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4a5d52;
  font-size: 0.78rem;
  font-weight: 600;
}

.inline-create-user {
  margin-top: 12px;
  border: 1px solid #d7dfd8;
  background: #fffef9;
}

.inline-create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inline-create-header h4 {
  margin: 0;
  font-size: 1rem;
}

.inline-stepper {
  margin: 10px 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  isolation: isolate;
}

.inline-stepper::before {
  display: none;
}

.inline-step {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #5e6f64;
  font-size: 0.76rem;
  min-width: 0;
  z-index: 1;
}

.inline-step::after {
  content: "";
  grid-column: 3;
  height: 1px;
  border-radius: 999px;
  background: #b8c6be;
  align-self: center;
  margin-left: 2px;
}

.inline-step:last-child::after {
  display: none;
}

.inline-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #9fb1a6;
  background: #f3f7f4;
  color: #446255;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.inline-step-text {
  min-width: 0;
  line-height: 1.25;
  white-space: nowrap;
}

.inline-step.is-active {
  color: #1f5a33;
}

.inline-step.is-active .inline-step-icon {
  border-color: #4f8a62;
  background: #d8ecd8;
  color: #1f5a33;
}

.inline-step.is-complete .inline-step-icon {
  border-color: #2f6b45;
  background: #2f6b45;
  color: #ffffff;
}

.inline-step.is-inactive {
  color: #8a9890;
}

.inline-step.is-inactive .inline-step-icon {
  border-color: #c6d0ca;
  background: #f7faf8;
  color: #8a9890;
}

.plain-chip-field {
  display: grid;
  gap: 6px;
}

.chip-field-label {
  margin: 0;
  color: #3b4f43;
  font-size: 0.82rem;
  font-weight: 600;
}

.inline-stepper-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-nav-btn {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  border-color: #5d9a70;
  background: #e2f2e6;
  color: #1f5a33;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-nav-btn:hover:not(:disabled) {
  border-color: #4f8a62;
  background: #d4eadb;
}

.step-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.step-nav-btn .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.md-tooltip {
  position: fixed;
  z-index: 3000;
  max-width: 320px;
  border-radius: 4px;
  background: rgba(225, 232, 227, 0.96);
  color: #102117;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: pre-line;
  box-shadow: 0 2px 6px rgba(9, 14, 11, 0.28);
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.md-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Small inline "?" tooltip trigger button */
.tooltip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--md-sys-color-outline-variant);
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.67rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-left: 5px;
  vertical-align: middle;
  transition: background-color 0.12s ease, border-color 0.12s ease;
  flex-shrink: 0;
}

.tooltip-btn:hover {
  background: var(--md-sys-color-surface-container);
  border-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-primary);
}

:root[data-theme="dark"] .tooltip-btn {
  border-color: #3a5645;
  color: #7aaa8e;
}

:root[data-theme="dark"] .tooltip-btn:hover {
  background: #192f22;
  border-color: #6cc18b;
  color: #6cc18b;
}
.request-table-wrap {
  margin-top: 2px;
}

.request-table {
  min-width: 1020px;
}

.request-item {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.request-table .request-summary-row td {
  vertical-align: middle;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.request-action-cell {
  text-align: right;
  width: 52px;
}

.request-detail-row {
  display: table-row;
}

.request-detail-row td {
  padding: 0;
  background: #fffef9;
  border-bottom: none;
}

.request-item.is-expanded .request-detail-row td {
  border-bottom: 1px solid #e4ebe5;
}

.request-item.is-expanded .request-summary-row td {
  border-bottom: none;
}

.request-item.is-expanded .request-summary-row td:not(.request-action-cell) {
  opacity: 0.62;
  transform: translateY(1px);
}

.request-item.is-removing {
  opacity: 0;
  transform: translateY(-10px);
}

.request-inline-card {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  padding: 0 12px;
  transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
}

.request-item.is-expanded .request-inline-card {
  max-height: 2200px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  padding: 0 12px 12px;
}

.request-stepper-vertical {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  position: relative;
}

.request-stepper-vertical::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 26px;
  width: 2px;
  border-radius: 999px;
  background: #c7d4cc;
}

.review-step-vertical {
  position: relative;
  z-index: 1;
  display: block;
  color: #6c7c73;
  font-size: 0.78rem;
  padding-bottom: 4px;
}

.request-step-header {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.review-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #1f5a33;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.6;
}

.review-step-vertical.is-active {
  color: #1f5a33;
}

.review-step-vertical.is-active .review-step-icon {
  opacity: 1;
}

.review-step-vertical.is-complete .review-step-icon {
  opacity: 1;
}

.review-step-vertical.is-inactive {
  color: #8a9890;
}

.review-step-vertical.is-inactive .review-step-icon {
  opacity: 0.42;
}

.request-step-summary {
  margin: 5px 0 0 32px;
  color: #486356;
  font-size: 0.74rem;
  line-height: 1.35;
}

.request-step-panel {
  margin: 8px 0 0 32px;
}

.request-step-panel-profile {
  margin-top: 10px;
}

.request-item.is-expanded .request-step-panel-profile {
  animation: request-summary-shift 0.24s ease;
}

@keyframes request-summary-shift {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.request-immutable-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dde6df;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.76rem;
}

.request-immutable-table th,
.request-immutable-table td {
  border-bottom: 1px solid #e7eee9;
  padding: 6px 8px;
}

.request-immutable-table th {
  background: #f3f8f5;
  color: #3e564a;
  font-weight: 700;
}

.request-immutable-table td {
  color: #30463b;
}

.request-immutable-table tr:last-child td {
  border-bottom: none;
}

.request-data-use-field {
  margin-top: 8px;
  border: 1px solid #dce5df;
  border-radius: 8px;
  background: #f7fbf8;
  padding: 8px 10px;
}

.request-data-use-label {
  margin: 0 0 4px;
  color: #3b5246;
  font-size: 0.72rem;
  font-weight: 700;
}

.request-data-use-value {
  margin: 0;
  color: #3f4f45;
  font-size: 0.76rem;
  line-height: 1.4;
  white-space: pre-line;
  word-break: break-word;
}

.request-plain-arrow {
  appearance: none;
  border: none;
  background: transparent;
  color: #4f6156;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.14s ease;
}

.request-plain-arrow:hover:not(:disabled) {
  color: #3f5047;
}

.request-plain-arrow:focus-visible {
  outline: none;
  color: #3f5047;
}

.request-plain-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.request-plain-arrow .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.request-toggle-arrow {
  color: #2a7a46;
}

.request-toggle-arrow:hover:not(:disabled),
.request-toggle-arrow:focus-visible {
  color: #1f5a33;
}

.request-toggle-arrow .material-symbols-outlined {
  transform: rotate(90deg);
}

.request-item.is-expanded .request-action-cell .request-toggle-arrow {
  color: #4f6156;
}

.request-item.is-expanded .request-action-cell .request-toggle-arrow:hover:not(:disabled),
.request-item.is-expanded .request-action-cell .request-toggle-arrow:focus-visible {
  color: #3f5047;
}

.request-item.is-expanded .request-action-cell .request-toggle-arrow .material-symbols-outlined {
  transform: rotate(0deg);
}

.request-decision-segment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #cad8cf;
  border-radius: 999px;
  background: #f7fbf8;
  padding: 3px;
}

.decision-segment-btn {
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  background: transparent;
  color: #4c6055;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.decision-segment-btn:hover:not(:disabled) {
  background: #e8f1eb;
}

.decision-segment-btn.is-selected.decision-segment-approve {
  background: #d8ecd8;
  color: #1f5a33;
}

.decision-segment-btn.is-selected.decision-segment-deny {
  background: #f9dfdf;
  color: #8f2320;
}

.request-decision-hint {
  margin: 6px 0 0;
}

.request-decision-branch {
  border: 1px solid #d7dfd8;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
}

.request-step-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.request-confirm-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.request-inline-error {
  margin-top: 4px;
}

.request-item.is-submitting .request-inline-card {
  opacity: 0.86;
}

.request-review-stepper {
  margin-top: 12px;
}

.review-stepper {
  margin-bottom: 16px;
}

.review-step-panel {
  margin-bottom: 10px;
}

.request-readonly-grid .field > input[readonly],
.request-readonly-grid .field > textarea[readonly] {
  color: #3f4f45;
  background: #f6f8f6;
  border-color: #d2dcd5;
}

.decision-group {
  margin: 0 0 10px;
  border: 1px solid #d7dfd8;
  border-radius: 8px;
  padding: 8px 10px;
  display: grid;
  gap: 8px;
}

.decision-group legend {
  color: #3b4b42;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 4px;
}

.review-decision-branch {
  margin: 0 0 10px;
  border: 1px solid #d7dfd8;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
}

.review-choice-note {
  margin: 0 0 8px;
  color: #43544b;
  font-size: 0.78rem;
}

.review-confirm-card {
  margin: 0 0 12px;
  border: 1px solid #d7dfd8;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
}

.review-confirm-list {
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}

.review-confirm-list > div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
}

.review-confirm-list dt {
  color: #3b4b42;
  font-size: 0.79rem;
  font-weight: 700;
}

.review-confirm-list dd {
  margin: 0;
  color: #34453b;
  font-size: 0.79rem;
  word-break: break-word;
}

.pagination-size select {
  min-height: 30px;
  border: 1px solid #d9cd8f;
  border-radius: 7px;
  background: #fffdf3;
  color: var(--md-sys-color-on-surface);
  padding: 4px 7px;
  font-size: 0.79rem;
}

.pagination-buttons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pagination-buttons [data-page-label] {
  min-width: 44px;
  text-align: center;
  color: #4a5d52;
  font-size: 0.79rem;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e4e2c8;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  background: #fff;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #e4ebe5;
  padding: 8px 8px;
  vertical-align: top;
}

.preline {
  white-space: pre-line;
}

th {
  background: #faf9ee;
  color: #35493f;
  font-weight: 500;
}

tr:last-child td {
  border-bottom: none;
}

.list-surface {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.list-surface li {
  border: none;
  border-radius: 8px;
  background: #fafcf9;
  padding: 9px 10px;
  display: grid;
  gap: 2px;
  font-size: 0.87rem;
}

.recent-search-row {
  margin-bottom: 10px;
}

.recent-item {
  gap: 6px;
}

.recent-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recent-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.71rem;
  line-height: 1;
  font-weight: 600;
  border: 1px solid transparent;
}

.recent-badge .material-symbols-outlined {
  font-size: 13px;
}

.recent-badge-info {
  background: #eef3f9;
  color: #275184;
  border-color: #c9d9ef;
}

.recent-badge-success {
  background: #d8ecd8;
  color: #1f5a33;
  border-color: #9fc5a8;
}

.recent-badge-danger {
  background: #f9dfdf;
  color: #8f2320;
  border-color: #e5b5b3;
}

.recent-badge-create {
  background: #e3edf8;
  color: #234f83;
  border-color: #bfcfe8;
}

.recent-badge-edit {
  background: #f6efd7;
  color: #6f5f1a;
  border-color: #dfd0a1;
}

.recent-badge-security {
  background: #eee5f6;
  color: #5b3f7a;
  border-color: #d0bee4;
}

.muted {
  color: var(--md-sys-color-on-surface-variant);
}

.checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.check-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #34483d;
  font-size: 0.84rem;
  font-weight: 500;
}

input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--md-sys-color-primary);
}

code {
  background: #f2f2e2;
  border-radius: 6px;
  padding: 1px 5px;
}

.danger-surface {
  border: none;
  background: #fffdfd;
}

.app-footer {
  border-top: none;
  background:
    linear-gradient(180deg, rgba(31, 87, 54, 0.98), rgba(18, 58, 35, 0.98));
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: 0 -6px 16px rgba(10, 33, 21, 0.28);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.footer-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.footer-copy {
  display: grid;
  gap: 1px;
  color: #e7f2ea;
  font-size: 0.78rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
}

.footer-link {
  color: #e7f2ea;
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.14s ease;
}

.footer-link:hover {
  color: var(--csu-gold);
  text-decoration: none;
}

.contact-us-card {
  max-width: 760px;
  margin: 0 auto;
}

.contact-us-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.contact-us-link {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-us-link:hover {
  text-decoration: underline;
}

:root[data-theme="dark"] body {
  color: #e9efe9;
  background:
    radial-gradient(900px 420px at -15% -10%, rgba(62, 137, 91, 0.18), transparent 60%),
    radial-gradient(700px 360px at 115% 0%, rgba(90, 108, 164, 0.22), transparent 58%),
    linear-gradient(180deg, #0e1812, #101d16);
}

:root[data-theme="dark"] .top-app-bar {
  background: linear-gradient(180deg, #0f281b 0%, #163a27 72%, #234530 100%);
  border-bottom-color: rgba(122, 164, 210, 0.4);
}

:root[data-theme="dark"] .logo {
  background: rgba(247, 250, 248, 0.95);
}

:root[data-theme="dark"] .surface {
  background: #15251c;
  border: none;
  box-shadow: 0 10px 28px rgba(4, 10, 7, 0.55);
}

:root[data-theme="dark"] .surface h2,
:root[data-theme="dark"] .surface h3,
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .surface p {
  color: #d8e5db;
}

:root[data-theme="dark"] .field.md-field > label,
:root[data-theme="dark"] .field .field-hint,
:root[data-theme="dark"] .field .field-count {
  color: #afc2b4;
}

:root[data-theme="dark"] .field.md-field > label {
  background: #15251c;
}

:root[data-theme="dark"] .field.md-field > input,
:root[data-theme="dark"] .field.md-field > select,
:root[data-theme="dark"] .field.md-field > textarea,
:root[data-theme="dark"] .field.md-field > .input-with-action > input,
:root[data-theme="dark"] .search-row input,
:root[data-theme="dark"] .user-field,
:root[data-theme="dark"] .user-filter-panel input,
:root[data-theme="dark"] .user-filter-panel select,
:root[data-theme="dark"] .bulk-field select,
:root[data-theme="dark"] .selection-action-bar select,
:root[data-theme="dark"] .selection-action-bar input,
:root[data-theme="dark"] .pagination-size select {
  background: #132419;
  border-color: #385542;
  color: #ecf5ee;
}

:root[data-theme="dark"] .field.md-field.is-focused > input,
:root[data-theme="dark"] .field.md-field.is-focused > select,
:root[data-theme="dark"] .field.md-field.is-focused > textarea,
:root[data-theme="dark"] .field.md-field.is-focused > .input-with-action > input,
:root[data-theme="dark"] .search-row input:focus,
:root[data-theme="dark"] .user-field:focus,
:root[data-theme="dark"] .user-filter-panel input:focus,
:root[data-theme="dark"] .user-filter-panel select:focus,
:root[data-theme="dark"] .bulk-field select:focus,
:root[data-theme="dark"] .selection-action-bar select:focus,
:root[data-theme="dark"] .selection-action-bar input:focus,
:root[data-theme="dark"] .pagination-size select:focus {
  background: #152d20;
  box-shadow: 0 0 0 1px #6cc18b, 0 0 0 3px rgba(108, 193, 139, 0.2);
}

:root[data-theme="dark"] .panel-collapse-btn {
  color: #b8cec0;
}

:root[data-theme="dark"] .panel-collapse-btn:hover {
  background: #203629;
}

:root[data-theme="dark"] .icon-btn {
  background: transparent;
  border: none;
  color: #b8cec0;
}

:root[data-theme="dark"] .icon-btn:hover {
  background: #203629;
  color: #b8cec0;
}

:root[data-theme="dark"] .icon-btn.icon-btn-close {
  color: #b8cec0;
  border: none;
  background: transparent;
}

:root[data-theme="dark"] .icon-btn:focus-visible,
:root[data-theme="dark"] .icon-btn.icon-btn-close:hover,
:root[data-theme="dark"] .icon-btn.icon-btn-close:focus-visible {
  background: #203629;
  color: #b8cec0;
  box-shadow: 0 0 0 2px rgba(108, 193, 139, 0.28);
}

:root[data-theme="dark"] .panel-collapse-btn:focus-visible {
  outline: none;
  background: #203629;
  box-shadow: 0 0 0 2px rgba(108, 193, 139, 0.28);
}

:root[data-theme="dark"] .admin-search-field {
  background: #1f3528;
  border-color: transparent;
}

:root[data-theme="dark"] .admin-search-field .material-symbols-outlined {
  color: #afc2b4;
}

:root[data-theme="dark"] .column-chooser summary {
  background: #1d3427;
  border-color: #35533f;
  color: #cde0d3;
}

:root[data-theme="dark"] .column-chooser-inline {
  border-color: #345243;
}

:root[data-theme="dark"] .column-chooser-inline legend,
:root[data-theme="dark"] .column-chooser-inline label {
  color: #cde0d3;
}

:root[data-theme="dark"] .column-chooser-panel {
  background: #172a20;
  border-color: #325041;
}

:root[data-theme="dark"] .column-chooser-panel label {
  color: #cde0d3;
}

:root[data-theme="dark"] .table-sort-btn.is-active-sort {
  color: #c8c372;
}

:root[data-theme="dark"] .sort-indicator {
  color: #9cb4a5;
}

:root[data-theme="dark"] .table-sort-btn.is-active-sort .sort-indicator {
  color: #c8c372;
}

:root[data-theme="dark"] .user-list {
  background: #132118;
  border-color: #334739;
}

:root[data-theme="dark"] .user-list-header {
  background: #1a3123;
  border-color: #334739;
}

:root[data-theme="dark"] .user-item {
  border-bottom-color: #2c4135;
}

:root[data-theme="dark"] .user-grid-row > .user-cell {
  border-right-color: #4d5f54;
}

:root[data-theme="dark"] .col-resizer {
  border-right-color: #4d5f54;
}

:root[data-theme="dark"] .user-item.is-selected-row {
  background: #1a2d22;
}

:root[data-theme="dark"] .drag-placeholder {
  border-color: #5e7267;
  background: rgba(42, 72, 55, 0.35);
}

:root[data-theme="dark"] .drag-ghost {
  box-shadow: 0 10px 26px rgba(2, 9, 5, 0.65);
}

:root[data-theme="dark"] .col-drag-ghost {
  border-color: #334739;
  background: transparent;
}

:root[data-theme="dark"] .col-drag-column-ghost .col-drag-cell {
  background: #132118;
  border-bottom-color: #2c4135;
}

:root[data-theme="dark"] .col-drag-column-ghost .col-drag-cell.is-header-cell {
  background: #1a3123;
  border-bottom-color: #334739;
  color: #cde0d3;
}

:root[data-theme="dark"] .status-chip-pending {
  background: #4c4a1e;
  color: #f3efc6;
}

:root[data-theme="dark"] .status-chip-active {
  background: #234833;
  color: #c8ecd3;
}

:root[data-theme="dark"] .status-chip-inactive {
  background: #542d2d;
  color: #ffd8d8;
}

:root[data-theme="dark"] .status-chip-warning {
  background: #5f4317;
  color: #f6ddad;
}

:root[data-theme="dark"] .selection-action-bar {
  border-color: #365244;
  background: #172a20;
}

:root[data-theme="dark"] .selection-count {
  color: #c8e0d0;
}

:root[data-theme="dark"] .selection-hint {
  color: #b6cabd;
}

:root[data-theme="dark"] .user-filter-panel {
  background: #172a20;
  border: none;
  box-shadow: 0 16px 34px rgba(5, 10, 8, 0.52);
}

:root[data-theme="dark"] .filter-popover-header {
  border-bottom-color: #2e463a;
}

:root[data-theme="dark"] .filter-chip {
  background: #243b2d;
  border-color: #3e5b4a;
  color: #d3e2d8;
}

:root[data-theme="dark"] .filter-chip .material-symbols-outlined {
  background: transparent;
  color: currentColor;
}

:root[data-theme="dark"] .chip-option:hover .material-symbols-outlined,
:root[data-theme="dark"] .chip-option:focus-visible .material-symbols-outlined,
:root[data-theme="dark"] .filter-chip:hover .material-symbols-outlined,
:root[data-theme="dark"] .filter-chip:focus-visible .material-symbols-outlined {
  background: #203629;
}

:root[data-theme="dark"] .chip-field {
  background: #132419;
  border-color: #385542;
}

:root[data-theme="dark"] .chip-field.chip-field-plain {
  background: transparent;
  border: none;
}

:root[data-theme="dark"] .chip-option {
  background: #132419;
  border-color: #385542;
  color: #d2e4d9;
}

:root[data-theme="dark"] .chip-option.is-selected {
  background: #234833;
  border-color: #4f8764;
  color: #d1edd9;
}

:root[data-theme="dark"] .chip-option.is-selected.is-danger {
  background: #542d2d;
  border-color: #7b4444;
  color: #ffd8d8;
}

:root[data-theme="dark"] .inline-create-user {
  background: #182b20;
  border-color: #355143;
}

:root[data-theme="dark"] .inline-step {
  color: #bed6c8;
}

:root[data-theme="dark"] .inline-step::after {
  background: #31483a;
}

:root[data-theme="dark"] .inline-stepper::before {
  display: none;
}

:root[data-theme="dark"] .inline-step-icon {
  border-color: #4b6558;
  background: #203428;
  color: #bed6c8;
}

:root[data-theme="dark"] .inline-step.is-active {
  color: #d1edd9;
}

:root[data-theme="dark"] .inline-step.is-active .inline-step-icon {
  border-color: #4f8764;
  background: #234833;
  color: #d1edd9;
}

:root[data-theme="dark"] .inline-step.is-complete .inline-step-icon {
  border-color: #4f8764;
  background: #2f6b45;
  color: #ffffff;
}

:root[data-theme="dark"] .inline-step.is-inactive {
  color: #7f998b;
}

:root[data-theme="dark"] .inline-step.is-inactive .inline-step-icon {
  border-color: #3a5345;
  background: #1a2c22;
  color: #7f998b;
}

:root[data-theme="dark"] .chip-field-label {
  color: #c6dbcd;
}

:root[data-theme="dark"] .md-tooltip {
  background: rgba(24, 29, 27, 0.96);
  color: #eef4ef;
}

:root[data-theme="dark"] .request-readonly-grid .field > input[readonly],
:root[data-theme="dark"] .request-readonly-grid .field > textarea[readonly] {
  color: #d7e6dc;
  background: #1a2d23;
  border-color: #375244;
}

:root[data-theme="dark"] .decision-group {
  border-color: #325041;
  background: #152a20;
}

:root[data-theme="dark"] .decision-group legend {
  color: #cfe0d4;
}

:root[data-theme="dark"] .step-nav-btn {
  border-color: #4f8764;
  background: #234833;
  color: #d1edd9;
}

:root[data-theme="dark"] .step-nav-btn:hover:not(:disabled) {
  border-color: #62a17a;
  background: #2a5a3f;
}

:root[data-theme="dark"] .review-decision-branch,
:root[data-theme="dark"] .review-confirm-card {
  border-color: #325041;
  background: #152a20;
}

:root[data-theme="dark"] .request-item {
  background: #132118;
}

:root[data-theme="dark"] .request-detail-row td {
  background: #152a20;
}

:root[data-theme="dark"] .request-item.is-expanded .request-detail-row td {
  border-bottom-color: #2c4135;
}

:root[data-theme="dark"] .request-stepper-vertical::before {
  background: #3a5a49;
}

:root[data-theme="dark"] .review-step-icon {
  background: #2f6446;
  color: #e8f6ed;
}

:root[data-theme="dark"] .review-step-vertical.is-active .review-step-icon {
  background: #2f6446;
  color: #ffffff;
}

:root[data-theme="dark"] .review-step-vertical.is-complete .review-step-icon {
  background: #2f6446;
  color: #d4efd9;
}

:root[data-theme="dark"] .review-step-vertical.is-inactive .review-step-icon {
  background: #2f6446;
  color: #d4efd9;
}

:root[data-theme="dark"] .request-step-summary {
  color: #b9d2c4;
}

:root[data-theme="dark"] .request-immutable-table {
  border-color: #2f4a3d;
}

:root[data-theme="dark"] .request-immutable-table th {
  background: #1d3429;
  color: #d4e9dc;
  border-bottom-color: #2f4a3d;
}

:root[data-theme="dark"] .request-immutable-table td {
  color: #c8ddcf;
  border-bottom-color: #2a4337;
}

:root[data-theme="dark"] .request-data-use-field {
  border-color: #355143;
  background: #172b21;
}

:root[data-theme="dark"] .request-data-use-label {
  color: #cce2d5;
}

:root[data-theme="dark"] .request-data-use-value {
  color: #c8ddcf;
}

:root[data-theme="dark"] .request-decision-segment {
  border-color: #355544;
  background: #172b21;
}

:root[data-theme="dark"] .request-plain-arrow {
  color: #b8cec0;
}

:root[data-theme="dark"] .request-plain-arrow:hover:not(:disabled),
:root[data-theme="dark"] .request-plain-arrow:focus-visible {
  color: #e3f1e8;
}

:root[data-theme="dark"] .request-toggle-arrow {
  color: #8ed1a7;
}

:root[data-theme="dark"] .request-toggle-arrow:hover:not(:disabled),
:root[data-theme="dark"] .request-toggle-arrow:focus-visible {
  color: #d2eedc;
}

:root[data-theme="dark"] .request-item.is-expanded .request-action-cell .request-toggle-arrow {
  color: #b8cec0;
}

:root[data-theme="dark"] .request-item.is-expanded .request-action-cell .request-toggle-arrow:hover:not(:disabled),
:root[data-theme="dark"] .request-item.is-expanded .request-action-cell .request-toggle-arrow:focus-visible {
  color: #e3f1e8;
}

:root[data-theme="dark"] .decision-segment-btn {
  color: #bfd8ca;
}

:root[data-theme="dark"] .decision-segment-btn:hover:not(:disabled) {
  background: #214132;
}

:root[data-theme="dark"] .decision-segment-btn.is-selected.decision-segment-approve {
  background: #27513a;
  color: #d4efd9;
}

:root[data-theme="dark"] .decision-segment-btn.is-selected.decision-segment-deny {
  background: #5a3131;
  color: #ffdcdc;
}

:root[data-theme="dark"] .request-decision-branch {
  border-color: #325041;
  background: #152a20;
}

:root[data-theme="dark"] .review-choice-note {
  color: #bfd8ca;
}

:root[data-theme="dark"] .review-confirm-list dt {
  color: #d2e7da;
}

:root[data-theme="dark"] .review-confirm-list dd {
  color: #c4dacd;
}

:root[data-theme="dark"] .fab-main {
  background: #2f5f44;
}

:root[data-theme="dark"] .fab-mini {
  background: #1d3427;
  color: #d9e8de;
}

:root[data-theme="dark"] .fab-mini:hover {
  background: #22412f;
}

:root[data-theme="dark"] .pagination-size,
:root[data-theme="dark"] .pagination-buttons [data-page-label],
:root[data-theme="dark"] .bulk-count,
:root[data-theme="dark"] .bulk-field {
  color: #bedbcc;
}

:root[data-theme="dark"] .table-wrap {
  border-color: #334739;
}

:root[data-theme="dark"] table {
  background: #132118;
}

:root[data-theme="dark"] th {
  background: #1a3123;
  color: #dce8de;
}

:root[data-theme="dark"] th,
:root[data-theme="dark"] td {
  border-bottom-color: #2c4135;
}

:root[data-theme="dark"] .list-surface li {
  background: #16281d;
  border-color: #2c4537;
  color: #e4ece6;
}

:root[data-theme="dark"] .recent-badge-info {
  background: #1d3147;
  color: #cbe4ff;
  border-color: #2f5174;
}

:root[data-theme="dark"] .recent-badge-success {
  background: #1f3a2a;
  color: #caecd6;
  border-color: #355e45;
}

:root[data-theme="dark"] .recent-badge-danger {
  background: #472325;
  color: #ffd8d8;
  border-color: #714143;
}

:root[data-theme="dark"] .recent-badge-create {
  background: #223b58;
  color: #d8e9ff;
  border-color: #345980;
}

:root[data-theme="dark"] .recent-badge-edit {
  background: #403621;
  color: #f1e2bd;
  border-color: #615233;
}

:root[data-theme="dark"] .recent-badge-security {
  background: #352744;
  color: #e7d9f9;
  border-color: #583d70;
}

:root[data-theme="dark"] code {
  background: #263730;
  color: #e7f2ea;
}

:root[data-theme="dark"] .btn-tonal {
  background: #30477b;
  color: #eff3ff;
  border-color: #4f69a3;
}

:root[data-theme="dark"] .btn-text {
  color: #bedbcc;
  border-color: #3c5848;
}

:root[data-theme="dark"] .btn-text:hover {
  background: #1d3226;
}

:root[data-theme="dark"] .nav-signout-elevated {
  color: #ffffff;
  background: #c4453e;
}

:root[data-theme="dark"] .nav-signout-filled {
  background: #205538;
}

:root[data-theme="dark"] .app-footer {
  border-top-color: rgba(108, 193, 139, 0.75);
  background: linear-gradient(180deg, rgba(22, 50, 35, 0.98), rgba(13, 30, 21, 0.98));
}

:root[data-theme="dark"] .footer-copy {
  color: #d6e7dc;
}

:root[data-theme="dark"] .footer-link {
  color: #d6e7dc;
}

:root[data-theme="dark"] .flash-success {
  background: #1d633b;
  border-color: #2f7a4e;
  color: #ffffff;
}

:root[data-theme="dark"] .flash-error {
  background: #1d633b;
  border-color: #2f7a4e;
  color: #ffffff;
}

:root[data-theme="dark"] .flash-warning {
  background: #1d633b;
  border-color: #2f7a4e;
  color: #ffffff;
}

:root[data-theme="dark"] .ui-ripple {
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 980px) {
  .auth-layout,
  .profile-grid,
  .split-grid,
  .form-grid.two-col {
    grid-template-columns: 1fr;
  }

  .signup-reminder-form {
    max-width: none;
  }

  .input-with-action.signup-reminder-row {
    grid-template-columns: 1fr;
  }

  .signup-reminder-btn {
    width: 100%;
  }

  .review-confirm-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .request-step-actions {
    flex-wrap: wrap;
  }

  .request-confirm-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .span-2 {
    grid-column: auto;
  }

  .column-chooser-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .bar-main {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }

  .brand-copy {
    grid-column: 1 / -1;
    order: 3;
  }

  .brand-right-tools {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-actions-right {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .surface {
    padding: 14px;
    border-radius: 8px;
  }

  .footer-row {
    grid-template-columns: auto 1fr;
    justify-items: start;
  }

  .footer-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .search-row {
    flex-wrap: wrap;
  }

  .search-row input {
    min-width: 100%;
  }

  .admin-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .user-filter-panel {
    grid-template-columns: 1fr;
    width: min(96vw, 420px);
    max-width: 96vw;
  }

  .column-chooser-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selection-action-bar {
    align-items: stretch;
  }

  .selection-action-bar label {
    width: 100%;
  }

  .selection-action-bar select,
  .selection-action-bar input {
    width: 100%;
  }

  .panel-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .fab-speed-dial {
    right: 14px;
  }

  .mini-dialog {
    right: 12px;
    width: min(96vw, 360px);
  }

  .auth-links {
    flex-wrap: wrap;
  }
}

/* ============================================================
   Mobile — 480px and below
   ============================================================ */
@media (max-width: 480px) {

  /* Header: stack CSU logo fully with brand copy */
  .bar-main {
    grid-template-columns: 1fr auto;
    padding: 10px 12px 8px;
    row-gap: 6px;
  }

  .brand-logo.brand-logo-right {
    display: none;
    /* hide INCUS logo on very small screens */
  }

  /* Nav bar: sign-out below tabs */
  .nav-shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .nav-actions-left {
    width: 100%;
  }

  .nav-actions-right {
    width: 100%;
  }

  .nav-actions-right .nav-signout-option {
    width: 100%;
    justify-content: center;
  }

  /* Surfaces */
  .surface {
    padding: 12px;
    border-radius: 6px;
  }

  /* Dashboard: single column always */
  .split-grid {
    grid-template-columns: 1fr;
  }

  /* Dashboard code blocks: allow wrapping and smaller font */
  .dashboard-code-block {
    font-size: 0.72rem;
    padding: 8px 10px;
  }

  /* Sign-out button full width on mobile */
  .nav-actions-right .nav-signout-option {
    padding: 8px 14px;
    font-size: 0.86rem;
  }

  /* Admin table: allow horizontal scroll */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Page header reduce padding */
  .page-header {
    padding: 14px;
  }

  /* Flash messages */
  .flash {
    font-size: 0.88rem;
    padding: 10px 12px;
  }

  /* Footer: single column */
  .footer-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .logo.logo-cira {
    display: none;
  }

  /* Accordion code block horizontal scroll */
  .dashboard-accordion-body {
    overflow-x: hidden;
  }
}

/* ============================================================
   Touch/pointer: hide tooltip buttons on touch-only devices
   (they show on hover which doesn't work on touch)
   ============================================================ */
@media (hover: none) {
  .tooltip-btn {
    display: none;
  }
}

/* ============================================================
   Dashboard info cards — service cards with accordions
   ============================================================ */
.dashboard-info-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-service-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.dashboard-service-icon {
  font-size: 28px;
  color: var(--md-sys-color-primary);
  flex-shrink: 0;
}

.dashboard-service-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.dashboard-service-link .material-symbols-outlined {
  font-size: 16px;
}

/* Callout banner inside cards */
.dashboard-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.dashboard-callout .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.dashboard-callout-info {
  background: rgba(var(--md-sys-color-primary-rgb, 25, 118, 210), 0.09);
  border: 1px solid rgba(var(--md-sys-color-primary-rgb, 25, 118, 210), 0.22);
  color: var(--md-sys-color-on-surface-variant);
}

.dashboard-callout-info .material-symbols-outlined {
  color: var(--md-sys-color-primary);
}

/* Quick-reference block inside instructions */
.dashboard-instructions {
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-field);
  padding: 10px 12px;
  margin-top: 4px;
  background: var(--md-sys-color-surface-container, #f4f6f4);
}

.dashboard-instructions-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--md-sys-color-primary);
  margin-bottom: 8px;
}

.dashboard-instructions-summary {
  font-size: 0.84rem;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 6px;
}

/* Small inline code URL chip */
.dashboard-url-chip {
  display: inline;
  background: var(--md-sys-color-primary-container, #dceeff);
  color: var(--md-sys-color-on-primary-container, #001e2f);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.83rem;
  word-break: break-all;
  font-family: 'Roboto Mono', monospace, 'Courier New';
}

/* Accordion */
.dashboard-accordion {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  width: 100%;
}

.dashboard-accordion-item {
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}

.dashboard-accordion-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface, #fff);
  user-select: none;
  list-style: none;
  transition: background-color 0.14s ease;
}

.dashboard-accordion-summary::-webkit-details-marker {
  display: none;
}

.dashboard-accordion-summary::after {
  content: "expand_more";
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  margin-left: auto;
  color: var(--md-sys-color-on-surface-variant);
  transition: transform 0.2s ease;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.dashboard-accordion-item[open]>.dashboard-accordion-summary::after {
  transform: rotate(180deg);
}

.dashboard-accordion-summary:hover {
  background: rgba(0, 0, 0, 0.04);
}

.dashboard-accordion-summary .material-symbols-outlined {
  font-size: 18px;
  color: var(--md-sys-color-primary);
}

.dashboard-accordion-body {
  padding: 10px 14px 12px;
  font-size: 0.85rem;
  color: var(--md-sys-color-on-surface-variant);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-accordion-body p {
  margin: 0;
}

/* Code blocks in accordion body */
.dashboard-code-block {
  background: #1e2a1e;
  color: #c8f5d0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.78rem;
  overflow-x: auto;
  line-height: 1.6;
  margin: 0;
  border: 1px solid rgba(100, 160, 100, 0.2);
}

.dashboard-code-block code {
  font-family: 'Roboto Mono', 'Courier New', monospace;
  white-space: pre;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
}

/* Numbered steps inside accordion */
.dashboard-steps {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dashboard-steps li {
  line-height: 1.5;
}

.dashboard-steps code {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.82rem;
  font-family: 'Roboto Mono', monospace, 'Courier New';
  word-break: break-all;
}

/* Tip paragraph in accordion */
.dashboard-tip {
  background: rgba(var(--md-sys-color-primary-rgb, 25, 118, 210), 0.07);
  border-left: 3px solid var(--md-sys-color-primary);
  border-radius: 0 4px 4px 0;
  padding: 7px 10px;
  font-size: 0.82rem;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0;
}

.dashboard-tip code {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 0.8rem;
  font-family: 'Roboto Mono', monospace;
}

/* Portal guide list (icon + text rows) */
.dashboard-guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.5;
}

.dashboard-guide-icon {
  font-size: 20px;
  color: var(--md-sys-color-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.dashboard-guide-list a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-weight: 500;
}

.dashboard-guide-list a:hover {
  text-decoration: underline;
}

/* Inline links inside instructions / accordion bodies — match primary color */
.dashboard-accordion-body a,
.dashboard-instructions a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-weight: 500;
}

.dashboard-accordion-body a:hover,
.dashboard-instructions a:hover {
  text-decoration: underline;
}

/* kbd hint */
kbd {
  display: inline-block;
  background: var(--md-sys-color-surface-container, #eee);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: inherit;
  padding: 1px 5px;
  color: var(--md-sys-color-on-surface);
}

/* ============================================================
   Contact us page
   ============================================================ */
.contact-us-card {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 18px;
}

.contact-direct-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--md-sys-color-primary-container);
  border-radius: var(--radius-field);
  padding: 12px 14px;
  margin: 14px 0 4px;
}

.contact-direct-icon {
  font-size: 26px;
  color: var(--md-sys-color-on-primary-container);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-direct-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: var(--md-sys-color-on-primary-container);
}

.contact-us-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-us-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--md-sys-color-primary);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background-color 0.14s ease;
}

.contact-us-link:hover {
  background: rgba(30, 77, 43, 0.1);
  text-decoration: underline;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.82rem;
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--md-sys-color-outline-variant);
}

.contact-form {
  margin-top: 10px;
}

.contact-success-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.contact-footer-note {
  margin-top: 14px;
  font-size: 0.82rem;
}

/* ============================================================
   Admin invite panel
   ============================================================ */
.invite-form {
  margin-top: 10px;
}

.invite-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.invite-result {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invite-result-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.invite-result-success {
  color: #166d3a;
}

.invite-result-error {
  color: var(--md-sys-color-error);
}

.invite-sent-list ul,
.invite-failed-list ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.87rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.invite-form-error {
  margin-top: 8px;
  display: block;
}

/* ============================================================
   Sign-out in the tab bar (nav-actions-right) — solid red filled
   ============================================================ */
.nav-actions-right .nav-signout-option {
  color: #fff;
  font-size: 0.8rem;
  padding: 5px 8px;
  border-radius: 6px;
  border: none;
  gap: 5px;
  background: #c0241b;
  box-shadow: 0 1px 4px rgba(100, 0, 0, 0.35);
}

.nav-actions-right .nav-signout-option .material-symbols-outlined {
  color: #fff;
  font-size: 16px;
}

.nav-actions-right .nav-signout-option:hover {
  background: #a31e16;
  color: #fff;
  box-shadow: 0 2px 8px rgba(100, 0, 0, 0.45);
  transform: none;
}

.nav-actions-right .nav-signout-option:active {
  transform: none;
  box-shadow: none;
}

:root[data-theme="dark"] .nav-actions-right .nav-signout-option {
  background: #9e1c14;
  color: #fff;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] .nav-actions-right .nav-signout-option .material-symbols-outlined {
  color: #fff;
}

:root[data-theme="dark"] .nav-actions-right .nav-signout-option:hover {
  background: #c02018;
  color: #fff;
}

/* ============================================================
   Dark mode overrides for all new elements
   ============================================================ */
:root[data-theme="dark"] .dashboard-callout-info {
  background: rgba(108, 193, 139, 0.1);
  border-color: rgba(108, 193, 139, 0.22);
  color: #c8e6d0;
}

:root[data-theme="dark"] .dashboard-callout-info .material-symbols-outlined {
  color: #6cc18b;
}

:root[data-theme="dark"] .dashboard-instructions {
  background: #11201a;
  border-color: #2e4838;
}

:root[data-theme="dark"] .dashboard-instructions-label {
  color: #88c4a0;
}

:root[data-theme="dark"] .dashboard-instructions-summary {
  color: #b8d0bf;
}

:root[data-theme="dark"] .dashboard-url-chip {
  background: rgba(108, 193, 139, 0.12);
  color: #a8e0bc;
  border-color: rgba(108, 193, 139, 0.22);
}

:root[data-theme="dark"] .dashboard-accordion-item {
  border-color: #2e4838;
}

:root[data-theme="dark"] .dashboard-accordion-summary {
  background: #13211a;
  color: #d0e8d8;
}

:root[data-theme="dark"] .dashboard-accordion-summary:hover {
  background: #1a2e23;
}

:root[data-theme="dark"] .dashboard-accordion-summary .material-symbols-outlined {
  color: #6cc18b;
}

:root[data-theme="dark"] .dashboard-accordion-summary::after {
  color: #7aaa8e;
}

:root[data-theme="dark"] .dashboard-accordion-body {
  background: #0f1c15;
  border-top-color: #2e4838;
  color: #b0ceba;
}

:root[data-theme="dark"] .dashboard-tip {
  background: rgba(108, 193, 139, 0.08);
  border-left-color: #6cc18b;
  color: #a8c8b8;
}

:root[data-theme="dark"] .dashboard-tip code {
  background: rgba(0, 0, 0, 0.3);
  color: #b8e8c8;
}

:root[data-theme="dark"] .dashboard-steps code {
  background: rgba(0, 0, 0, 0.3);
  color: #b8e8c8;
}

:root[data-theme="dark"] .dashboard-guide-list li {
  color: #b8d0bf;
}

:root[data-theme="dark"] .dashboard-guide-list a {
  color: #7cc49a;
}

:root[data-theme="dark"] .dashboard-guide-icon {
  color: #6cc18b;
}

:root[data-theme="dark"] .dashboard-service-icon {
  color: #6cc18b;
}

:root[data-theme="dark"] .dashboard-accordion-body a,
:root[data-theme="dark"] .dashboard-instructions a {
  color: #7cc49a;
}

:root[data-theme="dark"] kbd {
  background: #192f22;
  border-color: #3a5645;
  color: #d0e8d8;
}

/* Contact dark */
:root[data-theme="dark"] .contact-direct-row {
  background: rgba(108, 193, 139, 0.12);
}

:root[data-theme="dark"] .contact-direct-icon {
  color: #6cc18b;
}

:root[data-theme="dark"] .contact-direct-label {
  color: #a8dabc;
}

:root[data-theme="dark"] .contact-us-link {
  color: #7cc49a;
}

:root[data-theme="dark"] .contact-us-link:hover {
  background: rgba(108, 193, 139, 0.12);
}

:root[data-theme="dark"] .contact-divider {
  color: #5e7a69;
}

:root[data-theme="dark"] .contact-divider::before,
:root[data-theme="dark"] .contact-divider::after {
  background: #2e4838;
}

/* Invite dark */
:root[data-theme="dark"] .invite-result-success {
  color: #4dca82;
}

/* ============================================================
   Admin Snackbar (Toast)
   ============================================================ */
.admin-snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, calc(100% + 32px));
  background-color: #1d633b;
  color: #ffffff;
  border: 1px solid #2f7a4e;
  padding: 14px 16px;
  border-radius: var(--radius-card, 8px);
  box-shadow: var(--md-elevation-3, 0 14px 32px rgba(16, 24, 19, 0.2));
  display: flex;
  flex-direction: column;
  min-width: 320px;
  max-width: 480px;
  z-index: 1400;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1),
    opacity 0.3s cubic-bezier(0.2, 0, 0, 1),
    background-color 0.3s ease;
  overflow: hidden;
}

.admin-snackbar.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.admin-snackbar.is-dismissing {
  transform: translate(-50%, calc(100% + 32px));
  opacity: 0;
}

.admin-snackbar.is-undone {
  background-color: #1b5a35;
  color: #ffffff;
}

.snackbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.snackbar-label {
  font-size: 0.95rem;
  line-height: 1.4;
  flex: 1;
  font-weight: 500;
}

.snackbar-undo {
  background: transparent;
  border: none;
  color: var(--csu-gold);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.snackbar-undo:hover,
.snackbar-undo:focus-visible {
  background-color: rgba(200, 195, 114, 0.18);
}

.admin-snackbar.is-undone .snackbar-undo {
  color: inherit;
  opacity: 0.5;
  pointer-events: none;
}

/* Draining progress bar */
.admin-snackbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: var(--csu-gold);
  width: 100%;
  transform-origin: left;
  z-index: 1;
}

:root[data-theme="dark"] .snackbar-undo:hover,
:root[data-theme="dark"] .snackbar-undo:focus-visible {
  background-color: rgba(200, 195, 114, 0.18);
}

.admin-snackbar.is-visible:not(.is-undone)::after {
  animation: snackbar-drain var(--snackbar-duration) linear forwards;
}

@keyframes snackbar-drain {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

.auth-toast {
  position: fixed;
  top: calc(var(--top-app-bar-h) + 10px);
  right: 18px;
  z-index: 1600;
  min-width: 260px;
  max-width: min(420px, calc(100vw - 20px));
  border-radius: 8px;
  background: #b3261e;
  color: #ffffff;
  border: 1px solid #d15147;
  box-shadow: 0 10px 24px rgba(59, 12, 10, 0.28);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.auth-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-toast-icon {
  font-size: 18px;
}

.auth-toast-message {
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 500;
}
/* ── Contact Us Modal ────────────────────────────────────────────────────── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.contact-modal.is-open {
  pointer-events: auto;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(16, 24, 19, 0.6);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
}

.contact-modal.is-open .contact-modal-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal-surface {
  position: absolute;
  background-color: var(--md-sys-color-surface, #ffffff);
  color: var(--md-sys-color-on-surface, #1b1f1c);
  border-radius: var(--radius-card, 8px);
  box-shadow: var(--md-elevation-3, 0 14px 32px rgba(16, 24, 19, 0.2));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform, width, height, top, left, border-radius, opacity;
  /* Active state */
  top: 50%;
  left: 50%;
  width: clamp(320px, 92vw, 560px);
  height: auto;
  max-height: 90vh;
  transform: translate(-50%, -50%);
  opacity: 1;
  border-radius: var(--radius-card, 8px);
  /* The transition runs when removing the inline styles */
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.contact-modal-header h2 {
  font-size: 1.2rem;
}

.contact-modal-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.contact-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

/* Modal specific form overrides */
.contact-modal .contact-us-card {
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 24px;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

.shake {
  animation: shake 0.2s ease-in-out 0s 2 alternate;
}

/* ========================================================================= */
/* FAB Invite (Send Invite inside Request Management)                        */
/* ========================================================================= */

.fab-invite-container {
  --invite-motion-ms: 220ms;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 36;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.admin-panel.has-invite-open {
  z-index: 120;
}

.fab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), background-color 0.2s ease;
}

.fab:hover,
.fab:focus-visible {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.fab:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
}

.fab .material-symbols-outlined {
  font-size: 20px;
}

.fab .fab-icon-open,
.fab .fab-icon-close {
  position: absolute;
  transition: transform var(--invite-motion-ms) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--invite-motion-ms) cubic-bezier(0.4, 0, 0.2, 1);
}

.fab .fab-icon-open {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

.fab .fab-icon-close {
  transform: rotate(-90deg) scale(0);
  opacity: 0;
}

.fab.is-open .fab-icon-open {
  transform: rotate(90deg) scale(0);
  opacity: 0;
}

.fab.is-open .fab-icon-close {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

.fab-card {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 380px;
  max-width: calc(100vw - 48px);
  border-radius: 10px;
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface);
  box-shadow: var(--md-elevation-3);
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transition: transform var(--invite-motion-ms) cubic-bezier(0.2, 0.0, 0, 1), opacity var(--invite-motion-ms) ease-out;
  pointer-events: none;
}

.fab-invite-container.is-open .fab-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-invite-container.open-up .fab-card {
  top: auto;
  bottom: calc(100% + 10px);
  transform-origin: bottom right;
  transform: translateY(6px) scale(0.96);
}

.fab-invite-container.open-up.is-open .fab-card {
  transform: translateY(0) scale(1);
}

.fab-card[hidden] {
  display: block !important;
  pointer-events: none;
}

.fab-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--md-sys-color-surface-variant);
  background-color: var(--md-sys-color-surface-container);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.fab-card-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

.fab-card-body {
  padding: 20px;
}

/* Error bounce animation for FAB card */
@keyframes shake-card {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-4px);
  }

  40%,
  80% {
    transform: translateX(4px);
  }
}

.fab-card.is-error {
  animation: shake-card 0.4s ease-in-out;
  border: 1px solid var(--md-sys-color-error);
}

/* Success transition */
.fab-card.is-success {
  border: 1px solid var(--md-sys-color-primary);
}

:root[data-theme="dark"] .fab-card-header {
  border-bottom-color: #4a544c;
  background-color: var(--md-sys-color-surface-container);
}

/* ========================================================================= */
/* Resets & Base Variables                                                   */
/* ========================================================================= */

[hidden] {
  display: none !important;
}

/* ========================================================================= */
/* Status Switch (Active / Inactive)                                         */
/* ========================================================================= */

.status-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.status-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.status-switch .slider {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 76px;
  height: 24px;
  background-color: var(--md-sys-color-error);
  border-radius: 999px;
  transition: .42s cubic-bezier(0.2, 0, 0, 1);
  overflow: hidden;
}

.status-switch input:checked+.slider {
  background-color: var(--md-sys-color-primary);
}

.status-switch .status-text-on,
.status-switch .status-text-off {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 600;
  color: white;
  transition: opacity 0.42s;
  pointer-events: none;
}

.status-switch .status-text-on {
  left: 8px;
  opacity: 0;
}

.status-switch .status-text-off {
  right: 7px;
  opacity: 1;
}

.status-switch input:checked+.slider .status-text-on {
  opacity: 1;
}

.status-switch input:checked+.slider .status-text-off {
  opacity: 0;
}

.status-switch .thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background-color: white;
  border-radius: 50%;
  transition: transform .42s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.status-switch input:checked+.slider .thumb {
  transform: translateX(52px);
}

.status-switch .thumb .material-symbols-outlined {
  font-size: 12px;
  position: absolute;
  transition: opacity 0.42s, transform 0.42s;
}

.status-switch .thumb .icon-on {
  color: var(--md-sys-color-primary);
  opacity: 0;
  transform: scale(0.5) rotate(-45deg);
}

.status-switch .thumb .icon-off {
  color: var(--md-sys-color-error);
  opacity: 1;
  transform: scale(1) rotate(0);
}

.status-switch input:checked+.slider .thumb .icon-on {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.status-switch input:checked+.slider .thumb .icon-off {
  opacity: 0;
  transform: scale(0.5) rotate(45deg);
}

.status-switch input:disabled+.slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* For dark mode consistency */
:root[data-theme="dark"] .status-switch .slider {
  background-color: var(--md-sys-color-error);
}

:root[data-theme="dark"] .status-switch input:checked+.slider {
  background-color: var(--md-sys-color-primary);
}

/* Prevent animations on page load */
.preload * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}
