:root {
  color-scheme: light;
  --primary: #1769d3;
  --primary-hover: #1257b3;
  --primary-light: #e3eeff;
  --bg-surface: #eaf0f8;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-alt: rgba(235, 241, 249, 0.76);
  --surface-solid: #fbfcff;
  --content-surface: rgba(255, 255, 255, 0.48);
  --glass-surface: rgba(249, 252, 255, 0.58);
  --chrome-surface: rgba(250, 252, 255, 0.72);
  --popover-surface: rgba(251, 253, 255, 0.98);
  --control-surface: rgba(255, 255, 255, 0.86);
  --control-hover: #ffffff;
  --border: rgba(86, 111, 145, 0.3);
  --border-light: rgba(86, 111, 145, 0.18);
  --text-main: #1c2738;
  --text-secondary: #526173;
  --text-muted: #5d6b7e;
  --danger: #bd3546;
  --danger-hover: #a82c3c;
  --danger-light: #fbe9ec;
  --success: #237647;
  --success-light: #e5f3e9;
  --accent-band: rgba(210, 232, 222, 0.72);
  --accent-border: rgba(79, 130, 108, 0.3);
  --accent-text: #315f50;
  --accent-surface: rgba(223, 239, 230, 0.78);
  --neu-shadow:
    0 12px 36px rgba(44, 69, 109, 0.1), 0 2px 6px rgba(44, 69, 109, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --neu-shadow-sm: 0 3px 10px rgba(44, 69, 109, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --neu-inset: inset 0 2px 7px rgba(44, 69, 109, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  --neu-inset-sm: inset 0 1px 3px rgba(44, 69, 109, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.8);
  --glass-shadow:
    0 8px 24px rgba(44, 69, 109, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(86, 111, 145, 0.07);
  --popover-shadow: 0 12px 32px rgba(30, 48, 79, 0.16), 0 2px 6px rgba(30, 48, 79, 0.08);
  --focus-ring: 0 0 0 3px rgba(23, 105, 211, 0.22);
  --shadow-lg: var(--neu-shadow);
  --shadow-md: var(--neu-shadow-sm);
  --shadow-sm: var(--neu-shadow-sm);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --transition:
    background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease,
    opacity 0.18s ease;
  --font-stack:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.hidden {
  display: none !important;
}

body.app-loading .app-container {
  visibility: hidden;
}
.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  font-size: 0.9rem;
}
.app-loading-overlay.hidden {
  display: none !important;
}
.request-loading-overlay {
  position: fixed;
  top: 0.85rem;
  right: 1rem;
  z-index: 1900;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: auto;
  max-width: calc(100vw - 2rem);
  padding: 0.65rem 0.85rem;
  color: var(--text-secondary);
  background: var(--popover-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  box-shadow: var(--popover-shadow);
  font-size: 0.9rem;
  pointer-events: none;
}
.request-loading-overlay.hidden {
  display: none !important;
}
.request-loading-overlay .loading-skeleton-card {
  display: none;
}
.request-loading-overlay .loading-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.request-loading-overlay .loading-status::before {
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  content: "";
  animation: request-loading-spin 0.75s linear infinite;
}
@keyframes request-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-skeleton-card {
  width: min(100%, 620px);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--neu-shadow);
}
.skeleton-line,
.skeleton-tile {
  position: relative;
  overflow: hidden;
  background: rgba(101, 125, 159, 0.13);
}
.skeleton-line::after,
.skeleton-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  animation: skeletonShimmer 1.35s ease-in-out infinite;
}
.skeleton-line {
  height: 0.8rem;
  margin: 0.8rem 0;
  border-radius: var(--radius-full);
}
.skeleton-brand {
  width: 28%;
  height: 0.6rem;
  margin: 0 0 1.6rem;
}
.skeleton-heading {
  width: 54%;
  height: 1.4rem;
  margin-bottom: 1.25rem;
}
.skeleton-copy {
  width: 88%;
}
.skeleton-copy.short {
  width: 62%;
  margin-bottom: 1.5rem;
}
.skeleton-screen {
  display: none;
}
html[data-last-view="auth"] [data-skeleton-view="auth"],
html[data-last-view="dashboard"] [data-skeleton-view="dashboard"],
html[data-last-view="profile"] [data-skeleton-view="profile"],
html[data-last-view="admin"] [data-skeleton-view="admin"],
html[data-last-view="none"] [data-skeleton-view="none"] {
  display: block;
}
.skeleton-input {
  width: 100%;
  height: 2.7rem;
  margin: 1rem 0;
  border-radius: var(--radius-md);
}
.skeleton-action {
  width: 45%;
  height: 2.8rem;
  margin: 1.4rem 0 0 auto;
  border-radius: var(--radius-md);
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.skeleton-tile {
  height: 6.25rem;
  border-radius: var(--radius-md);
}
.skeleton-profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.skeleton-profile-head .skeleton-heading {
  margin: 0 0 0.6rem;
}
.skeleton-profile-head .skeleton-copy {
  width: 12rem;
  margin: 0;
}
.skeleton-avatar {
  width: 4.5rem;
  height: 4.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(101, 125, 159, 0.13);
}
.skeleton-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.skeleton-table .skeleton-line {
  width: 100%;
  height: 2.2rem;
  margin: 0;
  border-radius: 0.35rem;
}
.skeleton-blank {
  min-height: 0;
}
.loading-status {
  font-size: 0.82rem;
}
@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-line::after,
  .skeleton-tile::after {
    animation: none;
  }
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-surface);
  background-image: url("/images/glass-wallpaper.svg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

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

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

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.workspace-active {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
body.workspace-active .app-container {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
body.workspace-active .top-nav {
  flex: 0 0 auto;
}
body.workspace-active .main-wrapper,
body.workspace-active #workspaceSection,
body.workspace-active #workspaceSection .workspace-shell,
body.workspace-active #workspaceSection .workspace-layout {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}
body.workspace-active .workspace-category-panel {
  flex: 1 1 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-color: var(--primary) var(--surface-alt);
  scrollbar-width: thin;
}
body.workspace-active .workspace-category-panel:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
body.workspace-active .workspace-content {
  overflow: hidden;
}
body.workspace-active .workspace-category-panel > * {
  flex-shrink: 0;
}
body.workspace-active .workspace-table-wrap {
  flex: 0 0 auto;
  overflow-y: hidden;
}
body.workspace-active .games-leaderboard-scroll {
  max-height: none;
  overflow-y: visible;
}

/* ── TOP NAV ─────────────────────────────────────────────── */
.top-nav {
  background: var(--bg-surface);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-title {
  font-size: 1.1rem;
  font-weight: 600;
}
.brand-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.app-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
  margin: 0.5rem auto 0;
  padding: 0.25rem clamp(0.5rem, 1vw, 1rem) 1rem;
  border-radius: var(--radius-lg);
}

.view-section {
  display: block;
}
.view-section.hidden {
  display: none !important;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 1rem;
}

.auth-secondary {
  min-height: auto;
  align-items: flex-start;
  scroll-margin-top: 6rem;
}

#loginView {
  scroll-margin-top: 6rem;
}
.recovery-email-note {
  margin: 1.25rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  padding: 2.25rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.auth-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.auth-brand-mark {
  display: grid;
  width: 3.75rem;
  height: 3.75rem;
  place-items: center;
  margin: 0 auto 1rem;
  border: 1px solid var(--border-light);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, var(--control-hover), var(--primary-light));
  box-shadow: var(--glass-shadow);
}
.auth-brand-mark img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon .input-icon-prefix {
  position: absolute;
  left: 0.85rem;
  pointer-events: none;
  color: var(--text-muted);
}
.modal-close img {
  display: block;
  width: 1rem;
  height: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--control-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
  box-shadow: var(--neu-inset-sm);
}
.input-with-icon .form-control {
  padding-left: 0.9rem;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: var(--neu-inset-sm), var(--focus-ring);
}
.form-control[aria-invalid="true"] {
  border-color: var(--danger);
}
.field-error {
  margin: 0.35rem 0 0;
  color: var(--danger);
  font-size: 0.76rem;
  line-height: 1.4;
}
.field-error[hidden] {
  display: none;
}
.form-control:disabled {
  background-color: var(--surface-alt);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.password-rules-box {
  background-color: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}
.password-rules-title {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.rule-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.rule-item.rule-pass {
  color: var(--success);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  box-shadow: var(--neu-shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.btn-primary {
  background-color: var(--primary);
  background-image: linear-gradient(rgba(255, 255, 255, 0.06), transparent);
  border-color: rgba(9, 62, 137, 0.16);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
}
.btn-secondary {
  background-color: var(--control-surface);
  border-color: var(--border-light);
  color: var(--text-main);
}
.btn-secondary:hover:not(:disabled) {
  background-color: var(--control-hover);
  border-color: var(--border);
}
.btn-danger {
  background-color: var(--danger);
  background-image: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
  border-color: rgba(145, 22, 42, 0.16);
  color: #fff;
}
.btn-danger:hover:not(:disabled) {
  background-color: var(--danger-hover);
}
.btn-outline-danger {
  background: var(--control-surface);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
  color: var(--danger);
}
.btn-outline-danger:hover:not(:disabled) {
  background: var(--danger-light);
}
.btn:active:not(:disabled) {
  box-shadow: var(--neu-inset-sm);
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.btn:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  width: auto;
}
.btn-inline {
  width: auto;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.85rem;
}
.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.link-btn:hover {
  text-decoration: underline;
}

.alert-banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.alert-banner.hidden {
  display: none !important;
}
.alert-banner.alert-error {
  background-color: var(--danger-light);
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.alert-banner.alert-success {
  background-color: var(--success-light);
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Profile View */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.profile-header-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--surface);
  background-color: var(--surface-alt);
  flex-shrink: 0;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 0.7rem;
  text-align: center;
  padding: 0.3rem 0;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.ground-checker-result-option span img {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}
.avatar-upload-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.profile-meta h2 {
  font-size: 1.35rem;
  font-weight: 700;
}
.profile-meta p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.meta-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.badge-id {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
  .profile-header-strip {
    flex-direction: column;
    text-align: center;
  }
}

/* Admin Table */
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 0.5rem;
}
.admin-search {
  flex: 1 1 10rem;
  min-width: 0;
  width: 260px;
  max-width: 100%;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.user-table th {
  background-color: var(--surface-alt);
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.user-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.admin-empty-state {
  padding: 2rem;
  color: var(--text-muted);
  text-align: center;
}

.user-table tr:hover td {
  background-color: var(--surface-alt);
}

.table-user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--border-light);
}

.action-buttons {
  display: flex;
  gap: 0.4rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 48, 73, 0.24);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.modal-overlay.hidden {
  display: none !important;
}

.modal-dialog {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.modal-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
.modal-close {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  background: var(--control-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-close:hover {
  color: var(--text-main);
  background: var(--control-hover);
}
.modal-body {
  padding: 1.5rem;
}
.entry-dialog {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  background: var(--surface-solid);
}
.entry-dialog .modal-head {
  flex-shrink: 0;
  gap: 1rem;
  background: var(--accent-band);
}
.entry-dialog .modal-head h3 {
  min-width: 0;
  line-height: 1.35;
}
.entry-dialog > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.entry-dialog .modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 0.75rem;
}
.entry-dialog .modal-foot {
  flex-shrink: 0;
  flex-wrap: wrap;
  border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
  background: var(--surface-solid);
}
.ground-checker-entry-dialog {
  max-width: 620px;
}
.ground-checker-entry-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem 1rem;
}
.ground-checker-entry-fields .form-group {
  min-width: 0;
  margin: 0;
}
.ground-checker-result-field {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}
.ground-checker-result-field legend {
  max-width: 100%;
  margin-bottom: 0.5rem;
  padding-inline: 0.35rem;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 650;
}
.ground-checker-result-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.ground-checker-result-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}
.page-modal-close img {
  display: block;
  width: 1rem;
  height: 1rem;
}
.ground-checker-result-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.ground-checker-result-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  gap: 0.3rem;
  padding: 0.5rem 0.4rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: var(--neu-shadow-sm);
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
}
.ground-checker-result-option.is-passed span {
  color: var(--success);
}
.ground-checker-result-option.is-failed span {
  color: var(--danger);
}
.ground-checker-result-option.is-passed input:checked + span {
  border-color: #9bb7a4;
  background: var(--success-light);
  box-shadow: var(--neu-inset-sm);
}
.ground-checker-result-option.is-failed input:checked + span {
  border-color: #caa6a2;
  background: var(--danger-light);
  box-shadow: var(--neu-inset-sm);
}
.ground-checker-result-option input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.ground-checker-entry-fields small {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
}
.ground-checker-entry-fields textarea {
  min-height: 5rem;
  resize: vertical;
}
.repair-ticket-entry-dialog {
  max-width: 760px;
}
.repair-ticket-entry-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}
.repair-ticket-entry-fields .form-group {
  min-width: 0;
  margin: 0;
}
.repair-ticket-device-group,
.repair-ticket-remarks-group {
  grid-column: 1 / -1;
}
.repair-device-combobox {
  position: relative;
}
.repair-device-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.25rem);
  right: 0;
  left: 0;
  max-height: min(15rem, 50vh, var(--repair-options-space, 50vh));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--popover-surface);
  box-shadow: var(--popover-shadow);
}
.repair-device-options.repair-options-above {
  top: auto;
  bottom: calc(100% + 0.25rem);
}
.repair-device-options.hidden {
  display: none !important;
}
.repair-device-family-label {
  position: sticky;
  top: -0.35rem;
  z-index: 1;
  padding: 0.45rem 0.55rem 0.3rem;
  color: var(--text-muted);
  background: var(--popover-surface);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.repair-device-option {
  display: block;
  width: 100%;
  padding: 0.48rem 0.55rem;
  border: 0;
  border-radius: var(--radius-full);
  color: var(--text-main);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}
.repair-device-option:hover,
.repair-device-option:focus-visible,
.repair-device-option[aria-selected="true"] {
  color: var(--accent-text);
  background: var(--accent-surface);
}
.repair-device-option:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.repair-coverage-combobox {
  position: relative;
}
.repair-coverage-trigger {
  width: fit-content;
  max-width: clamp(0rem, 100%, 18rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  cursor: pointer;
}
.repair-device-option.repair-coverage-iw,
.repair-ticket-coverage-value.repair-coverage-iw {
  color: #21824b;
  font-weight: 700;
}
.repair-device-option.repair-coverage-ac,
.repair-ticket-coverage-value.repair-coverage-ac {
  color: #087f83;
  font-weight: 700;
}
.repair-device-option.repair-coverage-oow,
.repair-ticket-coverage-value.repair-coverage-oow {
  color: #967000;
  font-weight: 700;
}
.repair-device-option.repair-coverage-voided,
.repair-ticket-coverage-value.repair-coverage-voided {
  color: #c13e48;
  font-weight: 700;
}
.repair-device-option.repair-coverage-iw:hover,
.repair-device-option.repair-coverage-iw:focus-visible,
.repair-device-option.repair-coverage-iw[aria-selected="true"] {
  color: #21824b;
  background: var(--accent-surface);
}
.repair-device-option.repair-coverage-ac:hover,
.repair-device-option.repair-coverage-ac:focus-visible,
.repair-device-option.repair-coverage-ac[aria-selected="true"] {
  color: #087f83;
  background: var(--accent-surface);
}
.repair-device-option.repair-coverage-oow:hover,
.repair-device-option.repair-coverage-oow:focus-visible,
.repair-device-option.repair-coverage-oow[aria-selected="true"] {
  color: #967000;
  background: var(--accent-surface);
}
.repair-device-option.repair-coverage-voided:hover,
.repair-device-option.repair-coverage-voided:focus-visible,
.repair-device-option.repair-coverage-voided[aria-selected="true"] {
  color: #c13e48;
  background: var(--accent-surface);
}
.repair-coverage-trigger.repair-coverage-iw {
  color: #21824b;
  font-weight: 700;
}
.repair-coverage-trigger.repair-coverage-ac {
  color: #087f83;
  font-weight: 700;
}
.repair-coverage-trigger.repair-coverage-oow {
  color: #967000;
  font-weight: 700;
}
.repair-coverage-trigger.repair-coverage-voided {
  color: #c13e48;
  font-weight: 700;
}
.repair-ticket-entry-fields small {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
}
.repair-ticket-entry-fields textarea {
  min-height: 5rem;
  resize: vertical;
}
.modal-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--surface-alt);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Dashboard preview cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.module-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.module-card:hover {
  box-shadow: var(--shadow-md);
}
.module-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.module-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.module-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.module-status {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  color: var(--text-muted);
}

/* Toast container */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #1d1d1f;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideUp 0.3s ease;
}
.toast-success {
  border-left: 4px solid var(--success);
}
.toast-error {
  border-left: 4px solid var(--danger);
}

/* Navigation uses translucent material; content stays clear and readable. */
.top-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 2vw, 2rem);
  background: var(--chrome-surface);
  box-shadow: var(--glass-shadow);
  border-bottom: 1px solid var(--border-light);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
}

.brand-wrapper {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  gap: 0.65rem;
}
.brand-icon {
  display: block;
  width: clamp(1.6rem, 4vw, 2rem);
  height: clamp(1.6rem, 4vw, 2rem);
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-title {
  letter-spacing: -0.035em;
  font-size: 1.2rem;
  font-weight: 750;
}
.header-nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 0.2rem;
  padding: 0.3rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--glass-surface);
  box-shadow: var(--glass-shadow);
}
.header-nav.hidden {
  display: none !important;
}
.active-users-counter {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  background: var(--accent-surface);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.active-users-counter img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}
.nav-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 0.55rem 0.8rem;
  color: var(--text-secondary);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}
.nav-btn:hover,
.nav-btn:focus-visible {
  color: var(--text-main);
  background: var(--control-hover);
  box-shadow: var(--neu-shadow-sm);
}
.nav-btn:active {
  box-shadow: var(--neu-inset-sm);
}
.nav-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem 0.3rem 0.35rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  color: var(--accent-text);
  background: var(--accent-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-weight: 650;
}
.nav-profile-label {
  display: grid;
  min-width: 0;
  max-width: clamp(4rem, 14vw, 12rem);
  gap: 0.1rem;
  text-align: left;
}
.nav-profile-label > span:first-child {
  color: var(--text-secondary);
  font-size: 0.65rem;
}
.nav-profile-identity {
  font-size: 0.75rem;
}
#navProfileUsername {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-number img {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
}
.nav-profile-btn:hover,
.nav-profile-btn:focus-visible {
  color: var(--accent-text);
  background: var(--accent-surface);
  box-shadow: var(--neu-inset-sm);
}
.nav-profile-avatar-wrap {
  position: relative;
  display: inline-grid;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  background: var(--control-surface);
  box-shadow: 0 2px 4px rgba(44, 69, 109, 0.12);
  transition: var(--transition);
}
.nav-profile-btn:hover .nav-profile-avatar-wrap {
  box-shadow: 0 2px 6px rgba(44, 69, 109, 0.18);
}
.nav-profile-avatar,
.nav-profile-avatar-fallback {
  position: absolute;
  inset: 0.15rem;
  width: calc(100% - 0.3rem);
  height: calc(100% - 0.3rem);
  border-radius: 50%;
}
.nav-profile-avatar {
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(33, 42, 36, 0.22);
}
.nav-profile-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--primary-hover);
  font-size: 1rem;
  font-weight: 800;
}
.nav-signout-btn {
  color: var(--danger);
}
.nav-signout-btn:hover,
.nav-signout-btn:focus-visible {
  color: var(--danger-hover);
  background: var(--danger-light);
}

/* Dashboard, profile, and admin content open as overlays in the current page. */
.page-modal-overlay {
  position: fixed !important;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1.25rem 1.5rem;
  overflow-y: auto;
  background: rgba(32, 48, 73, 0.24);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.page-modal-overlay.hidden {
  display: none !important;
}
.page-modal-dialog {
  width: min(100%, 1020px);
  max-height: 100%;
  overflow: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--popover-shadow);
  animation: pageModalIn 0.18s ease-out;
}
.page-modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--accent-band);
}
.page-modal-head h2 {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.page-modal-close {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: var(--control-surface);
  box-shadow: var(--neu-shadow-sm);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.page-modal-close:hover {
  color: var(--text-main);
  box-shadow: var(--neu-inset-sm);
}
.page-modal-content {
  padding: 1.5rem;
}
.page-modal-content > .auth-header {
  margin-top: 0.5rem;
}
.signout-dialog {
  border-radius: var(--radius-lg);
}

.overview-intro {
  padding: 0.5rem 0 1.75rem;
}
#dashboardSection .page-modal-content {
  background: var(--surface);
}
#settingsSection .page-modal-content {
  min-height: 60vh;
  background: var(--surface);
}
#workspaceSection {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
#workspaceSection .workspace-shell {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--glass-surface);
  box-shadow: var(--neu-shadow);
}
#workspaceSection .workspace-layout {
  display: flex !important;
  flex: 1 1 auto;
  flex-flow: row nowrap !important;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 0;
}
.workspace-sidebar {
  display: flex;
  flex: 0 0 15%;
  flex-direction: column;
  width: 15%;
  min-width: 10.75rem;
  min-height: 0;
  padding: 1rem 0.8rem;
  border: 0;
  border-right: 1px solid var(--border-light);
  border-radius: 0;
  background: var(--glass-surface);
  box-shadow: none;
}
.workspace-layout.sidebar-collapsed .workspace-sidebar {
  display: flex;
  flex: 0 0 4rem;
  flex-direction: column;
  width: 4rem;
  min-width: 0;
  padding: 0.7rem 0.35rem;
}
.workspace-layout.sidebar-collapsed .workspace-sidebar-label {
  display: none;
}
.workspace-layout.sidebar-collapsed .workspace-sidebar-head {
  justify-content: center;
  margin-bottom: 0.65rem;
}
.workspace-layout.sidebar-collapsed .workspace-category-btn {
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0;
}
.workspace-layout.sidebar-collapsed .workspace-category-name {
  display: none;
}
.workspace-layout.sidebar-collapsed .workspace-content {
  flex: 1 1 0;
  width: auto;
}
.workspace-content {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
}
.workspace-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
}
.workspace-sidebar-head .workspace-sidebar-label {
  margin: 0;
}
.workspace-sidebar-toggle {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--border-light) 30%, white);
  border-radius: var(--radius-full);
  color: var(--accent-text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.12) 65%),
    color-mix(in srgb, var(--accent-surface) 55%, transparent);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.workspace-sidebar-toggle:hover {
  color: var(--accent-text);
  border-color: var(--accent-border);
  background-color: var(--accent-surface);
  box-shadow: var(--glass-shadow);
}
.workspace-sidebar-toggle:active {
  box-shadow: var(--neu-inset-sm);
}
.workspace-sidebar-label {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}
.workspace-category-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.workspace-feedback-nav {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}
.workspace-feedback-nav .workspace-category-icon {
  flex: 0 0 auto;
}
.workspace-feedback-nav .workspace-category-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.workspace-category-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-width: 0;
  padding: 0.72rem 0.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.workspace-category-icon app-icon,
.workspace-category-icon .app-icon {
  display: grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
}
.workspace-category-icon .app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.workspace-category-btn:hover {
  color: var(--text-main);
  background: var(--accent-surface);
}
.workspace-category-btn.active {
  position: relative;
  border-color: var(--accent-border);
  color: var(--accent-text);
  background: var(--accent-surface);
  box-shadow: var(--neu-shadow-sm);
}
.workspace-content {
  width: 85%;
  min-width: 0;
}
.workspace-category-panel {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
  border: 0;
  border-radius: 0;
  background: var(--content-surface);
  box-shadow: none;
}
.workspace-category-panel > h1 {
  margin: 0.1rem 0 0.35rem;
  color: var(--text-main);
  font-size: clamp(1.45rem, 2.7vw, 1.9rem);
  font-weight: 780;
  letter-spacing: -0.03em;
}
.workspace-category-description {
  max-width: 650px;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}
.feedback-compose,
.feedback-history {
  width: 100%;
  max-width: 75rem;
}
.feedback-compose {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}
.feedback-form {
  display: grid;
  justify-items: start;
  min-width: 0;
  width: 100%;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  box-shadow: var(--neu-shadow-sm);
}
.feedback-form-heading,
.feedback-pinned-heading {
  color: var(--text-main);
  font-size: 0.9rem;
}
.feedback-form-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  width: 100%;
}
.feedback-form .form-group {
  min-width: 0;
  margin: 0;
}
.feedback-form .form-group label {
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
}
.feedback-form .form-control {
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
}
.feedback-priority-field {
  max-width: 8.5rem;
}
.feedback-title-field,
.feedback-details-field {
  grid-column: 1 / -1;
}
.feedback-form textarea {
  min-height: 6rem;
  resize: vertical;
}
.feedback-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.workspace-category-panel[data-feedback-kind] .btn {
  width: auto;
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
}
.feedback-status,
.feedback-list-status {
  color: var(--text-secondary);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.feedback-status[data-state="error"],
.feedback-list-status[data-state="error"] {
  color: var(--danger);
}
.feedback-status[data-state="success"] {
  color: var(--success);
}
.feedback-pinned {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  background: var(--accent-surface);
}
.feedback-pinned-heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.feedback-pinned-note {
  margin-bottom: 0.7rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.4;
}
.feedback-pinned-list .feedback-entry {
  box-shadow: none;
}
.feedback-history {
  min-width: 0;
  margin-top: 1.25rem;
  padding: clamp(0.6rem, 1.5vw, 0.9rem);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  box-shadow: var(--neu-inset-sm);
}
.feedback-history .feedback-entry {
  box-shadow: none;
}
.feedback-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}
.feedback-history-heading h2 {
  color: var(--text-main);
  font-size: 1rem;
}
.workspace-category-panel[data-feedback-kind] .btn:focus-visible,
.feedback-actions-toggle:focus-visible,
.feedback-actions-menu button:focus-visible,
.feedback-status-select:focus-visible,
.feedback-expand-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.workspace-category-panel[data-feedback-kind] button:disabled,
.feedback-status-select:disabled,
.feedback-actions-toggle[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.65;
}
.feedback-list {
  display: grid;
  gap: 0.6rem;
}
.feedback-entry {
  display: grid;
  grid-template-columns: clamp(3.25rem, 18%, 6.5rem) minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  gap: 0.6rem;
  padding: 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--neu-shadow-sm);
  overflow-wrap: anywhere;
}
.feedback-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.2rem 0.4rem;
}
.feedback-entry-pending .feedback-entry-head {
  position: relative;
  min-height: 1.85rem;
  padding-top: 2.75rem;
}
.feedback-entry-pending .feedback-actions {
  position: absolute;
  top: 0;
  right: 0;
}
.feedback-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 0.3rem;
  padding-right: 0.6rem;
  border-right: 1px solid var(--border-light);
  text-align: center;
}
.feedback-message {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.2rem;
}
.feedback-avatar {
  display: block;
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent-surface);
  object-fit: cover;
}
.feedback-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feedback-identity {
  min-width: 0;
  width: 100%;
}
.feedback-author-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.1rem 0.25rem;
}
.feedback-author-name {
  display: block;
  color: var(--text-main);
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.3;
}
.feedback-author-id {
  display: block;
  margin-top: 0.1rem;
  color: var(--text-muted);
  font-size: 0.62rem;
  line-height: 1.25;
}
.feedback-meta {
  color: var(--text-muted);
  font-size: 0.62rem;
  line-height: 1.3;
}
.feedback-entry-title {
  flex: 1 1 0;
  min-width: 0;
  margin: 0.15rem 0 0;
  color: var(--text-main);
  font-size: 0.82rem;
  line-height: 1.3;
}
.feedback-entry-details {
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.35;
  white-space: pre-wrap;
}
.feedback-expand-btn {
  align-self: flex-start;
  padding: 0.1rem 0;
  border: 0;
  border-radius: 0.25rem;
  color: var(--accent-text);
  background: transparent;
  font: inherit;
  font-size: 0.68rem;
  text-decoration: underline;
  cursor: pointer;
}
.feedback-entry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem 0.4rem;
  margin-top: auto;
  padding-top: 0.3rem;
  text-align: right;
}
.feedback-priority,
.feedback-entry-status {
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--accent-text);
  background: var(--surface-alt);
  font-size: 0.64rem;
  font-weight: 650;
}
.feedback-priority[data-priority="low"] {
  color: var(--text-secondary);
}
.feedback-priority[data-priority="high"] {
  color: var(--danger);
  background: var(--danger-light);
}
.feedback-entry-status[data-status="pending"] {
  border-color: #e4c14d;
  color: #7c5c00;
  background: #fff3bf;
}
.feedback-entry-status[data-status="fixed"] {
  border-color: color-mix(in srgb, var(--success) 40%, transparent);
  color: var(--success);
  background: var(--success-light);
}
.feedback-entry-status[data-status="incorrect_report"] {
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
  color: var(--danger);
  background: var(--danger-light);
}
.feedback-entry-status[data-status="unable_to_fix"] {
  border-color: #c4ccd4;
  color: #59636f;
  background: #edf0f3;
}
.feedback-pending-duration {
  position: absolute;
  top: 0.2rem;
  right: 0;
  max-width: 100%;
  color: var(--text-muted);
  font-size: 0.64rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.feedback-entry-with-actions .feedback-pending-duration {
  right: 2.25rem;
  max-width: calc(100% - 2.25rem);
}
.feedback-status-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
}
.feedback-status-select {
  max-width: 100%;
  min-height: 2rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  background: var(--surface-alt);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}
.feedback-actions {
  position: relative;
  flex: 0 0 auto;
}
.feedback-actions-toggle {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--text-secondary);
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}
.feedback-actions-toggle::-webkit-details-marker {
  display: none;
}
.feedback-actions-toggle app-icon,
.feedback-actions-toggle .app-icon {
  width: 1.15rem;
  height: 1.15rem;
  font-size: 1rem;
}
.feedback-actions-toggle:hover,
.feedback-actions[open] .feedback-actions-toggle {
  color: var(--text-main);
  background: transparent;
}
.feedback-actions-menu {
  position: fixed;
  z-index: 150;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 11rem;
  max-width: calc(100vw - 1rem);
  max-height: calc(100vh - 1rem);
  max-height: calc(100dvh - 1rem);
  gap: 0.2rem;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--popover-surface);
  box-shadow: var(--popover-shadow);
  visibility: hidden;
  overscroll-behavior: contain;
}
.feedback-actions:not([open]) .feedback-actions-menu {
  display: none;
}
.feedback-actions-menu button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2rem;
  padding: 0.4rem 0.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
}
.feedback-actions-menu .feedback-status-label {
  display: grid;
  margin-top: 0.15rem;
  padding: 0.5rem 0.5rem 0.3rem;
  border-top: 1px solid var(--border-light);
}
.feedback-actions-menu .feedback-status-select {
  width: 100%;
}
.feedback-actions-menu button:hover {
  background: var(--accent-surface);
}
.feedback-actions-menu button[data-feedback-action="delete"] {
  color: var(--danger);
}
.feedback-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
}
.feedback-pagination[hidden] {
  display: none;
}

@media (max-width: 1000px) {
  .feedback-compose {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1001px) {
  .feedback-history .feedback-entry-pending .feedback-entry-head {
    padding-top: 0;
    padding-right: 12rem;
  }
  .feedback-history .feedback-pending-duration {
    max-width: 9.5rem;
    white-space: nowrap;
  }
}

@media (max-height: 520px) {
  body.workspace-active .workspace-sidebar {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  body.workspace-active .workspace-sidebar-head {
    margin-bottom: 0.3rem;
  }
  body.workspace-active .workspace-category-btn {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    font-size: 0.68rem;
    line-height: 1.2;
  }
  body.workspace-active .workspace-feedback-nav {
    padding-top: 0.4rem;
  }
}
.workspace-table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.workspace-table-search {
  display: grid;
  min-width: 0;
  width: min(100%, 320px);
  gap: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
}
.workspace-table-search input {
  width: 100%;
  min-width: 0;
  height: 2.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-main);
  background: var(--control-surface);
  box-shadow: var(--neu-inset-sm);
  font: inherit;
  font-size: 0.82rem;
}
.workspace-table-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent);
}
.workspace-table-controls {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 0.55rem;
}
.workspace-export-control {
  flex: 0 0 auto;
  margin-bottom: 0.25rem;
}
.workspace-table-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.workspace-pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.68rem;
  white-space: nowrap;
}
.workspace-pagination .btn {
  min-height: 1.7rem;
  padding: 0.2rem 0.45rem;
  gap: 0.22rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  box-shadow: var(--neu-shadow-sm);
  font-size: 0.68rem;
  line-height: 1;
}
.workspace-pagination .btn:hover:not(:disabled) {
  border-color: var(--accent-border);
  background: var(--accent-surface);
}
.workspace-pagination .btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.workspace-pagination .btn:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}
.workspace-pagination > span {
  min-width: 4.7rem;
  text-align: center;
}
.workspace-export-btn {
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  color: #fff;
  background-color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}
.workspace-export-btn:hover,
.workspace-export-btn:focus-visible {
  color: #fff;
  background-color: var(--primary-hover);
}
.workspace-table-controls [data-export-table],
.workspace-table-controls #addGroundCheckerEntryBtn,
.workspace-table-controls #addRepairTicketEntryBtn,
.workspace-table-controls [data-stock-action="add"] {
  width: 5.75rem;
}
.workspace-table-controls > #addGroundCheckerEntryBtn,
.workspace-table-controls > #addRepairTicketEntryBtn,
.workspace-table-controls > [data-stock-action="add"] {
  margin-bottom: 0.25rem;
}
.workspace-export-menu[hidden] {
  display: none !important;
}
.workspace-export-menu {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: min(28rem, calc(100vw - 1rem));
  max-height: min(70vh, 34rem);
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  background: var(--popover-surface);
  box-shadow: var(--popover-shadow);
}
.workspace-export-menu-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 750;
}
.workspace-export-range-options {
  display: grid;
  gap: 0.45rem;
}
.workspace-export-range-options > label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem;
  border: 1px solid var(--border-light);
  border-radius: 0.55rem;
  cursor: pointer;
}
.workspace-export-range-options > label:has(input:checked) {
  border-color: var(--accent-border);
  background: var(--accent-surface);
}
.workspace-export-range-options input,
.workspace-export-range-modes input {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  accent-color: var(--primary);
}
.workspace-export-range-options span {
  display: grid;
  gap: 0.12rem;
}
.workspace-export-range-options strong {
  font-size: 0.78rem;
}
.workspace-export-range-options small {
  color: var(--text-secondary);
  font-size: 0.68rem;
  line-height: 1.35;
}
.workspace-export-custom-range {
  margin: 0.8rem 0 0;
  padding: 0.7rem;
  border: 1px solid var(--border-light);
  border-radius: 0.55rem;
}
.workspace-export-custom-range[hidden],
.workspace-export-date-fields[hidden] {
  display: none !important;
}
.workspace-export-custom-range legend {
  padding: 0 0.25rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
}
.workspace-export-range-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.7rem;
}
.workspace-export-range-modes label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.workspace-export-date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.7rem;
}
.workspace-export-date-fields label {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 650;
}
.workspace-export-date-fields input {
  width: 100%;
  min-width: 0;
  height: 2.1rem;
  padding: 0.35rem;
  border: 1px solid var(--border-light);
  border-radius: 0.4rem;
  color: var(--text-main);
  background: var(--surface);
  font: inherit;
  font-size: 0.72rem;
}
.workspace-export-status {
  min-height: 1.1rem;
  margin-top: 0.55rem;
  color: var(--danger);
  font-size: 0.68rem;
}
.workspace-export-menu-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.45rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-light);
  overflow-x: auto;
}
.workspace-export-menu-actions .btn {
  flex: 0 0 auto;
  padding: 0.4rem 0.55rem;
  font-size: 0.68rem;
  white-space: nowrap;
}
.workspace-export-menu-actions [data-export-cancel] {
  border-color: #e4c14d;
  color: #7c5c00;
  background-color: #fff3bf;
}
.workspace-export-menu-actions [data-export-cancel]:hover:not(:disabled) {
  border-color: #cba72d;
  background-color: #ffe89a;
}
.workspace-table-wrap {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: auto;
  margin-bottom: 0.65rem;
  border: 1px solid var(--border-light);
  border-radius: 0.6rem;
  background: var(--surface);
  box-shadow: var(--neu-inset-sm);
  overscroll-behavior: contain;
}
.workspace-table-wrap:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.workspace-table {
  width: 100%;
  height: auto;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: auto;
  color: var(--text-main);
  background: var(--surface);
  font-size: 0.78rem;
  text-align: left;
}
.workspace-ground-checker-table {
  min-width: 1180px;
  table-layout: fixed;
  align-self: flex-start;
}
.workspace-ticket-table {
  min-width: 1240px;
  table-layout: fixed;
  align-self: flex-start;
}
.workspace-table caption {
  padding: 0.8rem 0.9rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  background: var(--surface);
}
.workspace-table th,
.workspace-table td {
  height: 2.65rem;
  padding: 0.6rem 0.8rem;
  border: 0;
  vertical-align: middle;
}
.workspace-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 2.8rem;
  background: #edf3fb;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: normal;
  text-align: center;
}
.workspace-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.workspace-sort-button .sort-icon {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
}
.workspace-sort-button:hover {
  color: var(--primary);
}
.workspace-sort-button:focus-visible {
  border-radius: 0.2rem;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.workspace-table tbody td {
  overflow-wrap: anywhere;
}
.workspace-ground-checker-table tbody td {
  text-align: center;
}
.workspace-ticket-table tbody td {
  text-align: center;
}
.workspace-ground-checker-table tbody td:first-child {
  padding-right: 0.3rem;
  padding-left: 0.3rem;
  font-size: 0.7rem;
  white-space: nowrap;
}
.workspace-ticket-table tbody td:first-child,
.workspace-ticket-table tbody td:nth-child(2) {
  padding-right: 0.35rem;
  padding-left: 0.35rem;
  font-size: 0.7rem;
  white-space: nowrap;
}
.workspace-ticket-table tbody td:nth-child(7) {
  text-align: center;
  vertical-align: middle;
}
.workspace-ticket-table tbody td.repair-ticket-ordering-remark {
  color: #a87900;
  font-weight: 600;
}
.workspace-ground-checker-table .workspace-row-actions-cell {
  position: relative;
  overflow: visible;
  padding: 0.25rem;
}
.workspace-ticket-table .workspace-row-actions-cell {
  position: relative;
  overflow: visible;
  padding: 0.25rem;
}
.workspace-row-actions {
  position: relative;
  display: flex;
  justify-content: center;
}
.workspace-row-actions-toggle {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--text-secondary);
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.workspace-row-actions-toggle:hover,
.workspace-row-actions-toggle[aria-expanded="true"] {
  color: var(--text-main);
  background: transparent;
}
.workspace-row-actions-toggle app-icon,
.workspace-row-actions-toggle .app-icon {
  width: 1.15rem;
  height: 1.15rem;
  font-size: 1rem;
}
.workspace-row-actions-menu {
  position: absolute;
  top: calc(100% + 0.2rem);
  right: 0;
  z-index: 5;
  min-width: 9rem;
  padding: 0.3rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--popover-surface);
  box-shadow: var(--popover-shadow);
  text-align: left;
}
.workspace-row-actions-menu.hidden {
  display: none !important;
}
.workspace-row-actions-menu.is-floating {
  position: fixed;
  inset: auto;
  z-index: 150;
  width: clamp(9rem, 12vw, 10rem);
  min-width: 0;
  max-width: calc(100vw - 1rem);
  max-height: calc(100dvh - 1rem);
  overflow: auto;
  overscroll-behavior: contain;
}
.workspace-row-actions-menu button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: var(--radius-full);
  color: var(--text-main);
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
}
.workspace-row-actions-menu button:hover {
  background: var(--accent-surface);
}
.workspace-row-actions-menu button[data-entry-action="delete"],
.workspace-row-actions-menu button[data-ticket-action="delete"] {
  color: var(--danger);
}
.workspace-row-actions-menu button[data-entry-action="delete"]:is(:hover, :focus-visible),
.workspace-row-actions-menu button[data-ticket-action="delete"]:is(:hover, :focus-visible) {
  background: var(--danger-light);
}
.ground-checker-delete-note {
  margin-top: 0.45rem;
  color: var(--danger);
  font-size: 0.82rem;
}
.ground-checker-result-passed {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #365b43;
  font-weight: 750;
}
.ground-checker-result-failed {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #79443f;
  font-weight: 750;
}
.ground-checker-status-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}
.ground-checker-result-escalation {
  color: #9b3933;
  font-weight: 750;
}
.workspace-table tbody tr:nth-child(even) td {
  background: rgba(234, 241, 251, 0.5);
}
.workspace-table tbody tr[hidden] {
  display: none;
}
.workspace-table tbody tr:hover td {
  background: #e9f1fc;
}
.workspace-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 780px;
  min-height: 145px;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--neu-shadow-sm);
}
.workspace-feature-card h2 {
  margin: 0.1rem 0 0.4rem;
  font-size: 1.05rem;
}
.workspace-feature-card p {
  max-width: 600px;
  margin-bottom: 0.9rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}
.games-summary-grid,
.games-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.games-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0.3rem 0 1.2rem;
}
.games-summary-card,
.games-section,
.games-admin-form,
.games-admin-list {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--neu-shadow-sm);
}
.games-summary-card {
  display: grid;
  gap: 0.25rem;
}
.games-winner-highlight {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--accent-surface), var(--surface));
  box-shadow: var(--neu-shadow-sm);
}
.games-winner-highlight > .games-summary-label {
  color: var(--accent-text);
}
.games-winner-empty,
.games-winner-highlight > small {
  color: var(--text-secondary);
  font-size: 0.72rem;
}
.games-winner-people {
  display: grid;
  gap: 0.35rem;
}
.games-winner-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
}
.games-winner-avatar {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}
.games-winner-avatar-fallback {
  padding: 0.3rem;
  object-fit: contain;
}
.games-winner-person > span {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}
.games-winner-person strong,
.games-winner-game {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}
.games-winner-person small,
.games-winner-month-points {
  color: var(--text-secondary);
  font-size: 0.65rem;
}
.games-summary-card strong {
  font-size: 1.55rem;
}
.games-rank-summary strong {
  font-size: 1.35rem;
}
.games-rank-summary img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
}
.games-summary-card > span:last-child,
.games-summary-label,
.games-month-label,
.game-card-details,
.games-admin-row small,
.games-history-table small {
  color: var(--text-secondary);
  font-size: 0.76rem;
}
.games-summary-label {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}
.games-status {
  min-height: 1.2rem;
  margin: 0 0 0.4rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}
.games-status.games-error {
  color: var(--danger);
}
.workspace-category-panel[data-workspace-panel="games"] .btn {
  width: auto;
  min-height: 1.8rem;
  padding: 0.38rem 0.62rem;
  gap: 0.3rem;
  font-size: 0.78rem;
  line-height: 1.2;
}
@media (max-width: 900px) {
  .games-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .games-challenges-layout {
    grid-template-columns: 1fr;
  }
}
.games-admin-shortcuts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  background: var(--accent-surface);
}
.games-admin-shortcuts > div:first-child {
  display: grid;
  gap: 0.2rem;
}
.games-admin-shortcuts-label {
  color: var(--accent-text);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}
.games-admin-shortcuts strong {
  font-size: 0.9rem;
}
.games-admin-shortcuts p {
  color: var(--text-secondary);
  font-size: 0.76rem;
}
.games-admin-shortcut-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.games-section {
  margin: 0 0 1rem;
}
.games-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.games-section-heading h2,
.games-admin-panel > .games-section-heading h2 {
  font-size: 1.1rem;
}
.games-history-section .games-section-heading > div {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  background: var(--accent-surface);
}
.games-history-section .games-section-heading {
  margin-bottom: 0.7rem;
}
.games-history-section .games-section-heading h2 {
  color: var(--accent-text);
  font-size: 0.9rem;
  font-weight: 750;
}
.games-prizes-section .games-section-heading > .games-prizes-heading-copy {
  display: grid;
  width: 100%;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--accent-border);
  border-left: 0.25rem solid var(--primary);
  border-radius: var(--radius-md);
  background: linear-gradient(110deg, var(--accent-surface), var(--surface) 78%);
}
.games-prizes-heading-copy .overview-eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent-text);
}
.games-prizes-heading-copy img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}
.games-prizes-heading-copy h2 {
  color: var(--accent-text);
  font-size: 0.95rem;
  font-weight: 800;
}
.games-challenges-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  align-items: start;
  gap: 0.85rem;
}
.games-challenge-featured,
.games-challenge-list-section {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--accent-surface);
}
.games-challenge-list-section {
  padding: 0.65rem;
}
.games-challenge-featured > h3,
.games-challenge-list-section > h3 {
  margin-bottom: 0.65rem;
  font-size: 0.86rem;
}
.games-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.8rem;
}
.games-rank-journey {
  margin-top: 0.85rem;
  padding: 0.7rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}
.games-rank-journey h4 {
  color: var(--accent-text);
  font-size: 0.82rem;
}
.games-rank-journey > p {
  margin: 0.2rem auto 0.55rem;
  color: var(--text-secondary);
  font-size: 0.68rem;
  line-height: 1.4;
}
.games-rank-journey-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.games-rank-journey-list li {
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  min-width: 3.2rem;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.6rem;
  line-height: 1.15;
}
.games-rank-journey-list img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
}
.games-challenge-list {
  display: grid;
  gap: 0.35rem;
}
.games-challenge-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.games-challenge-list-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}
.games-challenge-list-row .game-status-label {
  color: var(--text-secondary);
  font-size: 0.62rem;
  line-height: 1.2;
  text-align: left;
}
.games-challenge-list-copy h4 {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}
.games-challenge-list-copy p,
.games-challenge-list-copy small {
  color: var(--text-secondary);
  font-size: 0.66rem;
}
.games-challenge-list-row .game-play-button {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
}
.games-challenge-list-row .game-play-link {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
.games-challenge-list-row .game-play-link:hover:not(:disabled) {
  color: var(--primary-dark, var(--primary));
}
.games-challenge-list-row .game-play-link:focus-visible {
  border-radius: 0.15rem;
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.games-challenge-list-row .game-play-link:disabled {
  color: var(--text-secondary);
  text-decoration: none;
  cursor: not-allowed;
}
.games-challenge-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.games-challenge-pagination span {
  color: var(--text-secondary);
  font-size: 0.74rem;
  text-align: center;
}
.games-challenge-pagination .btn {
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
}
.game-card,
.games-prize-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.game-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.game-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 700;
}
.game-type-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.game-type-label img {
  width: 0.85rem;
  height: 0.85rem;
  object-fit: contain;
}
.game-status-label {
  color: var(--accent-text);
  text-align: right;
}
.game-card h3,
.games-prize-card h3 {
  font-size: 0.98rem;
}
.game-card > p,
.games-prize-card p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}
.game-card-details {
  display: grid;
  gap: 0.25rem;
  margin-top: auto;
}
.game-play-button {
  align-self: flex-start;
  margin-top: 0.2rem;
}
.game-play-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.games-results-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
}
.games-leaderboard {
  display: grid;
  gap: 0.35rem;
}
.games-leaderboard-scroll {
  max-height: 16.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--primary) var(--accent-surface);
  scrollbar-width: thin;
}
.games-leaderboard-scroll::-webkit-scrollbar {
  width: 0.5rem;
}
.games-leaderboard-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--accent-surface);
}
.games-leaderboard-scroll::-webkit-scrollbar-thumb {
  border: 1px solid var(--surface);
  border-radius: 999px;
  background: var(--primary);
}
.games-leaderboard-head {
  position: sticky;
  z-index: 1;
  top: 0;
  padding-top: 0.4rem;
  background: var(--surface);
}
.games-leaderboard-head,
.games-leaderboard-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) 4rem;
  align-items: center;
  gap: 0.55rem;
}
.games-leaderboard-head {
  padding: 0 0.55rem 0.4rem;
  color: var(--text-secondary);
  font-size: 0.67rem;
  font-weight: 750;
  text-transform: uppercase;
}
.games-leaderboard-row {
  min-width: 0;
  padding: 0.55rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.32);
  font-size: 0.82rem;
}
.games-leaderboard-row > span {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}
.games-leader-player {
  display: flex !important;
  align-items: center;
  gap: 0.45rem !important;
}
.games-leader-player img,
.games-avatar-placeholder {
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  object-fit: cover;
}
.games-avatar-placeholder {
  border: 1px solid var(--border-light);
  background: var(--accent-surface);
}
.games-leaderboard-row small {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.games-leaderboard-row > strong:last-child {
  text-align: right;
}
.games-leaderboard-self {
  border: 1px solid var(--accent-border);
  background: var(--accent-surface);
}
.games-leaderboard-leader {
  border: 1px solid #c9a94d;
  background: linear-gradient(110deg, #fff6d7, rgba(255, 255, 255, 0.54));
  box-shadow: 0 3px 10px rgba(145, 113, 32, 0.12);
}
.games-leader-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
  color: #765d1b;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.games-leader-tag img {
  width: 0.8rem;
  height: 0.8rem;
}
.games-prize-list,
.games-history-list {
  display: grid;
  gap: 0.55rem;
}
.games-prize-card {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  min-height: 6.5rem;
  padding: 0.7rem;
  gap: 0.65rem;
}
.games-prize-thumbnail {
  grid-row: 1 / span 2;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0.2rem;
  border: 1px solid var(--border-light);
  border-radius: 0.65rem;
  background: var(--accent-surface);
  object-fit: cover;
}
.games-prize-content {
  min-width: 0;
}
.games-prize-rank {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  min-width: 2.6rem;
  padding: 0.3rem 0.4rem;
  border-radius: 0.45rem;
  color: var(--accent-text);
  background: var(--accent-surface);
  font-size: 0.72rem;
  font-weight: 750;
  text-align: center;
}
.games-prize-content {
  grid-column: 2;
  grid-row: 2;
}
.games-history-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.games-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}
.games-history-table th,
.games-history-table td {
  padding: 0.55rem;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
.games-history-table th {
  color: var(--text-secondary);
  font-size: 0.68rem;
}
.games-history-table td small {
  display: block;
}
.games-history-avatar {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}
.games-history-table tr.games-history-winner td {
  background: #fff6d7;
  font-weight: 700;
}
.games-history-month-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.55rem 0 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  color: var(--text-main);
  background: var(--accent-surface);
  font-size: 0.78rem;
}
.games-history-month-heading > span {
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 500;
}
.games-empty-state {
  padding: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}
.games-admin-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--accent-surface);
}
.games-admin-subsection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.games-admin-subsection-heading h3 {
  margin: 0;
  font-size: 0.95rem;
}
select.form-control,
.feedback-form select.form-control,
.feedback-status-select,
.repair-coverage-trigger {
  --form-control-arrow-size: 1rem;
  --form-control-arrow-gap: clamp(0.35rem, 0.6vw, 0.5rem);
  --form-control-arrow-inset: 0.9rem;
  appearance: none;
  min-width: 0;
  padding: 0.75rem 2.5rem 0.75rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background-color: var(--control-surface);
  background-image: url("/icons/sort-descending.svg");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  /* The shared controller keeps the arrow beside the label without resizing the field. */
  background-position-x: var(
    --form-control-arrow-offset,
    calc(100% - var(--form-control-arrow-inset))
  );
  background-size: var(--form-control-arrow-size);
  box-shadow: var(--neu-inset-sm);
  cursor: pointer;
}
select.form-control:focus,
.feedback-form select.form-control:focus,
.feedback-status-select:focus,
.repair-coverage-trigger:focus {
  border-color: var(--primary);
  box-shadow:
    var(--neu-inset-sm),
    0 0 0 2px color-mix(in srgb, var(--primary) 22%, transparent);
}
select.form-control[aria-invalid="true"],
.feedback-form select.form-control[aria-invalid="true"],
.feedback-status-select[aria-invalid="true"],
.repair-coverage-trigger[aria-invalid="true"] {
  border-color: var(--danger);
}
select.form-control:disabled,
.feedback-status-select:disabled,
.repair-coverage-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
select.form-control option,
.feedback-status-select option {
  color: var(--text-main);
  background: var(--surface-solid);
}
.games-admin-form,
.games-admin-list {
  background: var(--surface);
}
.games-admin-form h3,
.games-admin-list h3 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.games-admin-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.games-admin-form-heading h3 {
  margin-bottom: 0.75rem;
}
.games-admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.games-admin-fields .form-group {
  min-width: 0;
  margin: 0;
}
.games-question-editor-list {
  display: grid;
  gap: 0.65rem;
}
.games-question-editor {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.games-question-editor legend {
  padding: 0 0.3rem;
  font-size: 0.85rem;
  font-weight: 750;
}
.games-question-editor .form-group {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}
.games-question-editor .form-group > span {
  font-size: 0.75rem;
  font-weight: 650;
}
.games-question-prompt,
.games-question-options,
.games-question-explanation {
  grid-column: 1 / -1;
}
.games-question-remove {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  min-height: 1.8rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
}
.games-legacy-note {
  color: var(--text-secondary);
  font-size: 0.72rem;
}
.games-admin-wide {
  grid-column: 1 / -1;
}
.games-json-input {
  width: 100%;
  min-height: 7rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}
.games-admin-form small,
.games-admin-form > p {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.74rem;
}
.games-admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.games-admin-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-light);
}
.games-admin-row > span {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}
.games-admin-row strong {
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}
.games-admin-row button {
  flex: 0 0 auto;
}
.games-row-actions {
  position: relative;
  flex: 0 0 auto;
}
.games-more-button {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  padding: 0.35rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--control-surface);
  box-shadow: var(--neu-shadow-sm);
  color: var(--text-secondary);
  cursor: pointer;
}
.games-more-button:hover,
.games-more-button:focus-visible {
  border-color: var(--accent-border);
  background: var(--accent-surface);
  color: var(--accent-text);
}
.games-more-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.games-action-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.25rem);
  right: 0;
  display: grid;
  min-width: 9rem;
  padding: 0.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--popover-surface);
  box-shadow: var(--popover-shadow);
}
.games-action-menu.hidden {
  display: none !important;
}
.games-action-menu button {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-size: 0.76rem;
  text-align: left;
  cursor: pointer;
}
.games-action-menu button:hover,
.games-action-menu button:focus-visible {
  background: var(--accent-surface);
  color: var(--accent-text);
}
.games-finalize-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.7rem;
}
.games-finalize-form h3 {
  flex: 0 0 100%;
  margin-bottom: 0;
}
.games-finalize-form label {
  font-size: 0.78rem;
  font-weight: 700;
}
.games-finalize-form input {
  max-width: 190px;
}
.games-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.game-play-dialog {
  max-width: 760px;
}
.game-play-body {
  max-height: min(70vh, 650px);
  overflow-y: auto;
}
.game-question-fieldset {
  display: grid;
  gap: 0.65rem;
  padding: 0 0 1rem;
  border: 0;
  border-bottom: 1px solid var(--border-light);
}
.game-question-fieldset + .game-question-fieldset {
  margin-top: 1rem;
}
.game-question-fieldset legend {
  display: grid;
  gap: 0.35rem;
  font-size: 0.93rem;
  font-weight: 650;
}
.game-question-fieldset legend span {
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.game-review-answer {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
}
.game-review-answer h4,
.game-review-answer p {
  margin: 0;
}
.game-review-answer strong {
  color: var(--accent-text);
}
.game-answer-options {
  display: grid;
  gap: 0.45rem;
}
.game-answer-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: 0.55rem;
  cursor: pointer;
}
.game-answer-option:has(input:checked) {
  border-color: var(--accent-border);
  background: var(--accent-surface);
}
.games-finalize-form .btn {
  margin-left: auto;
}
.overview-eyebrow {
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}
.overview-intro h1 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}
.overview-lede {
  max-width: 650px;
  margin-top: 0.5rem;
  color: var(--text-secondary);
}
.overview-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.overview-section-heading h2 {
  font-size: 1.25rem;
}
.overview-section-heading .overview-eyebrow {
  margin-bottom: 0.15rem;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.overview-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 145px;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--neu-shadow-sm);
}
.overview-number {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.8rem;
  color: var(--primary-hover);
  background: var(--primary-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 0.77rem;
  font-weight: 750;
}
.overview-card h3 {
  margin: 0.1rem 0 0.35rem;
  font-size: 1rem;
}
.overview-card p,
.overview-footer p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}
.overview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--neu-inset-sm);
}
.overview-footer h3 {
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}
.overview-footer strong {
  color: var(--text-main);
}
.overview-usage-notice {
  max-width: 420px;
  text-align: right;
}

@keyframes pageModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1150px) {
  .top-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem 1rem;
  }
  .brand-wrapper {
    grid-column: 1;
    grid-row: 1;
  }
  .active-users-counter {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .header-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .top-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
  }
  .brand-wrapper {
    grid-column: 1;
    grid-row: 1;
    gap: 0.45rem;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .active-users-counter {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    padding: 0.3rem 0.45rem;
    font-size: 0.65rem;
  }
  .active-users-counter img {
    width: 0.9rem;
    height: 0.9rem;
  }
  .header-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.2rem;
    border-radius: 1.75rem;
  }
  .header-nav .nav-btn {
    flex: 1 1 calc(33.333% - 0.4rem);
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.4rem;
    font-size: 0.74rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
  .nav-profile-btn {
    gap: 0.3rem;
  }
  .nav-profile-avatar-wrap {
    width: 1.5rem;
    height: 1.5rem;
  }
  .nav-profile-avatar-fallback {
    font-size: 0.75rem;
  }
  .page-modal-overlay {
    align-items: flex-end;
    padding: 4.5rem 0.5rem 0.5rem;
  }
  .page-modal-dialog {
    max-height: 100%;
    border-radius: 18px;
  }
  .page-modal-content {
    padding: 1rem;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .overview-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .overview-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .overview-usage-notice {
    text-align: left;
  }
  #workspaceSection .workspace-layout {
    gap: 0;
  }
  .workspace-sidebar {
    flex-basis: 25%;
    width: 25%;
    min-width: 0;
    padding: 0.55rem 0.2rem;
  }
  .workspace-content {
    width: 75%;
  }
  .workspace-sidebar-head {
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  .workspace-sidebar-label {
    display: none;
  }
  .workspace-category-nav {
    flex-direction: column;
    gap: 0.2rem;
  }
  .workspace-category-btn {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0;
    font-size: 0.6rem;
    line-height: 1.2;
    border-radius: 1rem;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .workspace-category-name {
    width: 100%;
    overflow-wrap: normal;
  }
  .workspace-category-icon app-icon,
  .workspace-category-icon .app-icon {
    width: 1rem;
    height: 1rem;
  }
  .workspace-category-panel {
    padding: 0.8rem;
  }
  .feedback-form {
    padding: 0.8rem;
  }
  .feedback-entry {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0.45rem;
  }
  .feedback-author {
    padding-right: 0.35rem;
  }
  .feedback-form-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .feedback-history-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .feedback-form-actions {
    width: 100%;
  }
  .feedback-pagination {
    justify-content: flex-start;
  }
  .workspace-table-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.55rem;
  }
  .workspace-table-status {
    justify-content: flex-end;
  }
  .workspace-table-controls {
    flex-wrap: wrap;
  }
  .workspace-table-search {
    width: 100%;
  }
  .ground-checker-entry-fields {
    grid-template-columns: 1fr;
  }
  .entry-dialog .modal-head,
  .entry-dialog .modal-body,
  .entry-dialog .modal-foot {
    padding-inline: 1rem;
  }
  .repair-ticket-entry-fields {
    grid-template-columns: 1fr;
  }
  .repair-ticket-device-group,
  .repair-ticket-remarks-group {
    grid-column: auto;
  }
  .workspace-feature-card {
    gap: 0.55rem;
    padding: 0.7rem;
  }
  .workspace-feature-card p {
    font-size: 0.75rem;
  }
  .games-results-grid,
  .games-admin-fields,
  .games-challenges-layout {
    grid-template-columns: 1fr;
  }
  .games-summary-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .games-question-editor {
    grid-template-columns: 1fr;
  }
  .games-question-prompt,
  .games-question-options,
  .games-question-explanation {
    grid-column: auto;
  }
  .games-summary-card,
  .games-section,
  .games-admin-panel,
  .games-admin-form,
  .games-admin-list {
    padding: 0.7rem;
  }
  .games-summary-card strong {
    font-size: 1.2rem;
  }
  .games-admin-wide {
    grid-column: auto;
  }
  .games-admin-row {
    flex-wrap: wrap;
  }
  .games-admin-row > span {
    flex-basis: 100%;
  }
  .games-finalize-form {
    align-items: stretch;
    flex-direction: column;
  }
  .games-finalize-form input {
    max-width: none;
  }
  .games-finalize-form .btn {
    margin-left: 0;
  }
  .games-admin-shortcuts {
    align-items: stretch;
    flex-direction: column;
    padding: 0.7rem;
  }
  .games-admin-shortcut-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .games-admin-form-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .games-challenge-list-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
  .games-challenge-list-row .game-play-button {
    justify-self: start;
  }
  .games-challenge-list-row .game-play-link {
    justify-self: start;
  }
  .games-history-month-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
  .game-play-dialog {
    max-height: 100%;
  }
  .game-play-body {
    max-height: calc(100vh - 12rem);
  }
}

.profile-card {
  --profile-card-padding: clamp(1.1rem, 3vw, 2rem);
  max-width: 900px;
  padding: var(--profile-card-padding);
  background: var(--surface);
}
.profile-header-strip {
  display: grid;
  grid-template-columns: 96px minmax(180px, 1fr) minmax(280px, 1.25fr);
  align-items: center;
  gap: 1.25rem;
  text-align: left;
}
.profile-badges-inline {
  min-width: 0;
}
.profile-badges-label {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}
.profile-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 5rem));
  justify-content: end;
  gap: 0.65rem 0.4rem;
}
.profile-badge-item {
  position: relative;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}
.profile-badge-item::after {
  box-sizing: border-box;
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 0.55rem);
  left: 50%;
  width: max-content;
  max-width: 13rem;
  padding: 0.55rem 0.7rem;
  transform: translate(-50%, 0.2rem);
  border: 1px solid #59645e;
  border-radius: 0.65rem;
  color: #f3f4f1;
  background: #414a45;
  box-shadow: 0 5px 14px rgba(28, 34, 30, 0.2);
  content: attr(data-tooltip);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s ease;
}
.profile-badge-item:hover::after,
.profile-badge-item:focus-visible::after {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
.profile-badge-item:first-child::after {
  left: 0;
  transform: translateY(0.2rem);
}
.profile-badge-item:last-child::after {
  right: 0;
  left: auto;
  transform: translateY(0.2rem);
}
.profile-badge-item:first-child:hover::after,
.profile-badge-item:first-child:focus-visible::after,
.profile-badge-item:last-child:hover::after,
.profile-badge-item:last-child:focus-visible::after {
  transform: translateY(0);
}
.profile-badge-icon {
  display: grid;
  width: 4.1rem;
  height: 4.1rem;
  place-items: center;
  border: 2px solid var(--accent-border);
  border-radius: 50%;
  color: var(--accent-text);
  background: linear-gradient(145deg, var(--accent-surface), var(--primary-light));
  box-shadow: var(--neu-shadow-sm);
  font-size: 1.2rem;
  font-weight: 800;
}
.profile-badge-icon img,
.profile-badge-icon svg {
  display: block;
  width: 68%;
  height: 68%;
  object-fit: contain;
}
.profile-badge-name {
  max-width: 100%;
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 650;
  text-align: center;
  overflow-wrap: anywhere;
}
.profile-badge-detail {
  color: var(--text-muted);
  font-size: 0.53rem;
  line-height: 1.2;
  text-align: center;
}
.profile-username-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.profile-meta .profile-username-title {
  color: var(--accent-text);
  font-size: clamp(1.9rem, 3.2vw, 2.2rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.profile-full-name {
  margin-top: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.user-identity {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.profile-tag,
.user-tag-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  padding: 0.04rem 0.36rem;
  color: var(--accent-text);
  background: var(--accent-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 0.55rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.user-tag-name {
  max-width: 100%;
  font-size: 0.62rem;
  line-height: 1.3;
  letter-spacing: 0;
}
.profile-meta p {
  margin-top: 0.25rem;
}
.profile-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.profile-settings-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.profile-settings-heading h3 {
  font-size: 1.15rem;
}
.profile-settings-heading > p {
  max-width: 360px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  text-align: right;
}
.profile-settings-heading .overview-eyebrow {
  margin-bottom: 0.15rem;
}
.profile-edit-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(95px, 0.38fr);
  gap: 1rem;
}
.profile-settings-form .form-group,
.profile-account-grid .form-group,
.password-settings-form .form-group {
  min-width: 0;
  margin-bottom: 0;
}
.profile-settings-form small {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.profile-tag-field small {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.66rem;
  line-height: 1.35;
}
.field-optional {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 450;
}
.profile-settings-form > .btn {
  margin-top: 1rem;
}
.profile-account-info,
.profile-password-settings {
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-light);
}
.profile-account-info > .overview-eyebrow {
  margin-bottom: 0.15rem;
}
.profile-account-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 1rem;
}
.profile-user-id-input {
  font-size: 0.78rem;
  letter-spacing: 0.015em;
}
.password-settings-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}
.password-settings-form > .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (max-width: 700px) {
  .profile-edit-fields,
  .profile-account-grid,
  .password-settings-form {
    grid-template-columns: 1fr;
  }
  .profile-settings-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-settings-heading > p {
    text-align: left;
  }
  .password-settings-form > .btn {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .profile-header-strip {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .profile-badges-inline {
    grid-column: 2;
  }
  .profile-badges-label {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .profile-header-strip {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .profile-username-line {
    justify-content: center;
  }
  .profile-badges-inline {
    grid-column: auto;
    width: 100%;
  }
  .profile-badges-label {
    text-align: center;
  }
  .profile-badge-grid {
    justify-content: center;
  }
}

/* Saved appearance choices tint selected controls and section bands. */
html[data-theme="sage"] {
  --accent-band: rgba(210, 232, 222, 0.72);
  --accent-border: rgba(79, 130, 108, 0.3);
  --accent-text: #315f50;
  --accent-surface: rgba(223, 239, 230, 0.78);
}
html[data-theme="slate"] {
  --accent-band: rgba(207, 224, 247, 0.74);
  --accent-border: rgba(70, 111, 165, 0.3);
  --accent-text: #365b8a;
  --accent-surface: rgba(224, 236, 252, 0.8);
}
html[data-theme="sand"] {
  --accent-band: rgba(239, 225, 207, 0.76);
  --accent-border: rgba(150, 118, 74, 0.3);
  --accent-text: #72562f;
  --accent-surface: rgba(247, 236, 220, 0.82);
}
html[data-theme="lavender"] {
  --accent-band: rgba(226, 218, 248, 0.74);
  --accent-border: rgba(128, 99, 175, 0.3);
  --accent-text: #66508b;
  --accent-surface: rgba(237, 231, 252, 0.8);
}

.settings-card {
  --settings-card-padding: clamp(1.1rem, 3vw, 2rem);
  max-width: 1050px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--neu-shadow);
}
.settings-card-header {
  padding: 1.4rem var(--settings-card-padding) 1rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}
.settings-card-header .overview-eyebrow {
  margin-bottom: 0.3rem;
}
.settings-card-header h2 {
  color: var(--text-main);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 780;
  letter-spacing: -0.03em;
}
.settings-card-header > p:last-child {
  max-width: 560px;
  margin-top: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
}
.settings-card-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 330px;
}
.settings-sidebar {
  padding: 1.5rem 0.9rem;
  border-right: 1px solid var(--border-light);
  background: var(--surface-alt);
}
.settings-sidebar-label {
  display: block;
  padding: 0 0.7rem 0.65rem;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.settings-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 650;
}
.settings-sidebar-item.active {
  border-color: var(--accent-border);
  color: var(--accent-text);
  background: var(--accent-surface);
  box-shadow: var(--neu-shadow-sm);
}
.settings-sidebar-icon {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 0.45rem;
  color: var(--accent-text);
  background: var(--surface);
  font-size: 1.1rem;
}
.appearance-settings {
  min-width: 0;
  padding: var(--settings-card-padding);
}
.settings-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.settings-section-heading .overview-eyebrow {
  margin-bottom: 0.15rem;
}
.settings-section-heading h3 {
  color: var(--text-main);
  font-size: 1.2rem;
}
.settings-section-heading > p {
  max-width: 280px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-align: right;
}
.theme-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.theme-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--neu-shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}
.theme-option.selected {
  border-color: var(--primary);
  box-shadow:
    var(--neu-inset-sm),
    0 0 0 1px var(--primary);
}
.theme-option input {
  accent-color: var(--primary);
  flex: 0 0 auto;
}
.theme-option > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}
.theme-option strong {
  color: var(--text-main);
  font-size: 0.88rem;
}
.theme-option small {
  color: var(--text-secondary);
  font-size: 0.72rem;
}
.theme-preview {
  width: 3.3rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border: 1px solid var(--border-light);
  border-radius: 0.6rem;
  box-shadow: var(--neu-inset-sm);
}
.theme-preview-sage {
  background: linear-gradient(150deg, #d2e8de 0 38%, #fbfcff 38% 100%);
}
.theme-preview-slate {
  background: linear-gradient(150deg, #cfe0f7 0 38%, #fbfcff 38% 100%);
}
.theme-preview-sand {
  background: linear-gradient(150deg, #efe1cf 0 38%, #fbfcff 38% 100%);
}
.theme-preview-lavender {
  background: linear-gradient(150deg, #e2daf8 0 38%, #fbfcff 38% 100%);
}
.theme-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}
#themeSaveStatus {
  min-height: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}
@media (max-width: 600px) {
  .settings-card-body {
    grid-template-columns: 1fr;
  }
  .settings-sidebar {
    padding: 0.8rem 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
  }
  .settings-sidebar-label {
    padding: 0 0 0.4rem;
  }
  .settings-sidebar-item {
    max-width: 220px;
  }
  .settings-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .settings-section-heading > p {
    text-align: left;
  }
  .theme-option-grid {
    grid-template-columns: 1fr;
  }
  .theme-settings-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --chrome-surface: rgba(250, 252, 255, 0.96);
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root,
  html[data-theme] {
    --surface: #ffffff;
    --surface-alt: #eef3f9;
    --content-surface: #f8fbff;
    --glass-surface: #f1f6fc;
    --chrome-surface: #f8fbff;
    --popover-surface: #ffffff;
    --control-surface: #ffffff;
    --accent-band: color-mix(in srgb, var(--accent-text) 12%, white);
    --accent-surface: color-mix(in srgb, var(--accent-text) 8%, white);
  }
  body {
    background-image: none;
  }
  .top-nav,
  .modal-overlay,
  .page-modal-overlay,
  .request-loading-overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .workspace-table tbody tr:nth-child(even) td {
    background: #f3f7fc;
  }
}

@media (prefers-contrast: more) {
  :root,
  html[data-theme] {
    --primary: #0a58b8;
    --primary-hover: #064998;
    --border: #7589a5;
    --border-light: #8293ab;
    --text-main: #152134;
    --text-secondary: #34455c;
    --text-muted: #46576e;
    --surface: #ffffff;
    --surface-alt: #eef3f9;
    --content-surface: #ffffff;
    --glass-surface: #f1f6fc;
    --chrome-surface: #f8fbff;
    --popover-surface: #ffffff;
    --control-surface: #ffffff;
    --accent-border: var(--border);
    --accent-band: color-mix(in srgb, var(--accent-text) 12%, white);
    --accent-surface: color-mix(in srgb, var(--accent-text) 8%, white);
  }
  .top-nav,
  .modal-overlay,
  .page-modal-overlay,
  .request-loading-overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-btn,
  .workspace-category-btn {
    border-color: var(--border-light);
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .workspace-sidebar-toggle {
    background: var(--control-surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
