﻿@font-face {
  font-family: "Tektur";
  src: url("Fonts/Tektur-SBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("Fonts/FiraSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-300: #8df0b6;
  --green-500: #35c96e;
  --green-600: #1faa59;
  --bg: #b8c0bd;
  --card: #e9efec;
  --text: #0f1b13;
  --text-muted: #4a6456;
  --surface: #d7e0db;
  --border: #c2cfc8;
  --shadow: 0 24px 60px rgba(12, 33, 22, 0.15);
  --accent: var(--green-500);
  --accent-strong: var(--green-600);
  --ring: rgba(53, 201, 110, 0.25);
  --skeleton-base: #d9ecdf;
  --skeleton-shine: rgba(255, 255, 255, 0.7);
}

body[data-theme="dark"] {
  --bg: #0f1612;
  --card: #141f18;
  --text: #e6f6ed;
  --text-muted: #9bb7a7;
  --surface: #121b15;
  --border: #243328;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --accent: #48d180;
  --accent-strong: #23b364;
  --ring: rgba(72, 209, 128, 0.25);
  --skeleton-base: #203127;
  --skeleton-shine: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Fira Sans", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

.theme-transition,
.theme-transition * {
  transition:
    background 0.35s ease,
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    fill 0.35s ease;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: background 0.45s ease;
  background:
    radial-gradient(650px 450px at 10% 10%, rgba(53, 201, 110, 0.12), transparent 60%),
    radial-gradient(520px 360px at 90% 20%, rgba(53, 201, 110, 0.08), transparent 58%),
    radial-gradient(520px 360px at 80% 85%, rgba(53, 201, 110, 0.06), transparent 60%),
    linear-gradient(140deg, rgba(200, 209, 206, 0.95), rgba(188, 198, 194, 0.95));
}

body[data-theme="dark"] .ambient {
  background:
    radial-gradient(650px 450px at 10% 10%, rgba(53, 201, 110, 0.2), transparent 60%),
    radial-gradient(520px 360px at 90% 20%, rgba(53, 201, 110, 0.16), transparent 58%),
    radial-gradient(520px 360px at 80% 85%, rgba(53, 201, 110, 0.12), transparent 60%),
    linear-gradient(140deg, rgba(10, 18, 14, 0.95), rgba(9, 15, 12, 0.9));
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 8vw 12px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Tektur", sans-serif;
  letter-spacing: 0.08em;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(20, 50, 32, 0.2);
}

.logo-text {
  font-size: 1.1rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
}

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

.theme-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.theme-icon {
  width: 18px;
  height: 18px;
  display: none;
}

body[data-theme="light"] .theme-moon {
  display: block;
}

body[data-theme="dark"] .theme-sun {
  display: block;
}

.requests-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
}

.requests-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(63%) sepia(21%) saturate(1069%)
    hue-rotate(94deg) brightness(97%) contrast(96%);
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #0b1a12;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 6px 12px rgba(10, 22, 15, 0.2);
}

.avatar-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

.avatar-btn.has-image img {
  display: block;
}

.avatar-btn.has-image .avatar-fallback {
  display: none;
}

.avatar-fallback {
  font-family: "Tektur", sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.08em;
}

.auth-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 8vw 64px;
  min-height: calc(100vh - 120px);
}

.brand-card {
  background: linear-gradient(140deg, rgba(53, 201, 110, 0.14), transparent 60%), var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--text-muted);
}

.brand-title {
  font-family: "Tektur", sans-serif;
  font-size: clamp(2.4rem, 3vw, 3rem);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.stat-number {
  font-family: "Tektur", sans-serif;
  font-size: 1.4rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.highlight {
  border-radius: 18px;
  border: 1px dashed var(--border);
  padding: 18px 20px;
  color: var(--text-muted);
  background: rgba(53, 201, 110, 0.08);
}

.auth-panel {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: 26px;
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
}

.tab.is-active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(16, 40, 26, 0.12);
}

.form-container {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  transition: height 0.35s ease;
  will-change: height;
}

.form {
  display: none;
  gap: 18px;
  flex-direction: column;
}

.form.is-active {
  display: flex;
}

.auth-message {
  min-height: 18px;
  font-size: 0.85rem;
  color: var(--accent-strong);
}

.field {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.field input {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.field-inline input {
  flex: 1;
}

.field-inline input[readonly] {
  color: var(--text);
  opacity: 0.85;
}

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

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkbox input {
  accent-color: var(--accent);
}

button {
  font-family: "Fira Sans", sans-serif;
}

.primary {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #0b1a12;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(23, 80, 48, 0.2);
}

.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: saturate(0.7);
}

.ghost {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.ghost.small {
  padding: 10px 14px;
  font-size: 0.85rem;
}

.link {
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.85rem;
}

.loading-overlay {
  position: absolute;
  inset: 24px;
  display: grid;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.auth-card.is-loading .loading-overlay {
  opacity: 1;
}

.auth-card.is-loading .form {
  opacity: 0.2;
  filter: blur(2px);
  pointer-events: none;
}

.dashboard,
.profile,
.users-view {
  padding: 24px 8vw 64px;
  display: grid;
  gap: 28px;
}

.users-list {
  display: grid;
  gap: 16px;
}

.users-empty {
  color: var(--text-muted);
}

.user-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
}

.user-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-info h4 {
  font-size: 1rem;
  font-weight: 600;
}

.user-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.user-classes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.users-view .class-pill {
  font-size: 0.75rem;
}

.pending-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 24px 8vw 64px;
}

.pending-card {
  width: min(520px, 100%);
  background: var(--card);
  border-radius: 26px;
  border: 1px solid var(--border);
  padding: 36px;
  box-shadow: var(--shadow);
  text-align: center;
  display: grid;
  gap: 16px;
}

.pending-card h2 {
  font-family: "Tektur", sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
}

.pending-card p {
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dash-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dash-header h2 {
  font-family: "Tektur", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-top: 8px;
}

.dash-subtitle {
  color: var(--text-muted);
  margin-top: 8px;
}

.class-row {
  margin-top: 12px;
}

.class-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text);
}

.class-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
  align-items: center;
  color: var(--text-muted);
}

.class-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #7b8f84;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.status-dot.online {
  background: #35c96e;
  box-shadow: 0 0 0 2px rgba(53, 201, 110, 0.2);
}

.status-avatar {
  position: relative;
}

.status-avatar .status-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  bottom: 4px;
  right: 4px;
  border: 2px solid var(--card);
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dash-card {
  background: var(--card);
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 22px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.dash-card h3 {
  font-family: "Tektur", sans-serif;
  font-size: 1.2rem;
}

.dash-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dash-metric {
  margin-top: 8px;
  background: var(--surface);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
}

.metric-value {
  font-family: "Tektur", sans-serif;
  font-size: 1.3rem;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dash-footer {
  background: var(--card);
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dash-footer h4 {
  font-family: "Tektur", sans-serif;
  margin-bottom: 6px;
}

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

.profile-card {
  background: var(--card);
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 24px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}

.profile-card.compact {
  align-content: start;
}

.profile-card h3 {
  font-family: "Tektur", sans-serif;
  font-size: 1.2rem;
}

.profile-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.profile-form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.profile-avatar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.profile-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-identity {
  display: grid;
  gap: 6px;
}

.profile-identity-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-identity-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Tektur", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  flex-wrap: nowrap;
}

.profile-identity-row .class-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-identity-row .class-pill {
  font-size: 0.75rem;
  padding: 4px 8px;
}

.profile-identity-row.is-muted {
  font-family: "Fira Sans", sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0;
}

.profile-separator-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--text-muted);
  opacity: 0.6;
  transform: translateY(1px);
}

.profile-identity-row:hover,
.profile-identity-row:focus-visible {
  color: var(--accent-strong);
}

.profile-identity-row:focus-visible {
  outline: none;
}

.profile-edit-icon {
  width: 0;
  height: 0;
  opacity: 0;
  transform: translateX(-2px);
  margin-left: 0;
  overflow: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    width 0.2s ease,
    height 0.2s ease,
    margin-left 0.2s ease;
}

.profile-identity-row:hover .profile-edit-icon,
.profile-identity-row:focus-visible .profile-edit-icon {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  opacity: 1;
  transform: translateX(0);
}

.avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.avatar-edit-trigger {
  padding: 0;
  cursor: pointer;
}

.avatar-edit-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.avatar-edit-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 27, 19, 0.55);
  color: #f6fff8;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.avatar-edit-trigger:hover .avatar-edit-overlay,
.avatar-edit-trigger:focus-visible .avatar-edit-overlay {
  opacity: 1;
}

.avatar-edit-icon {
  width: 22px;
  height: 22px;
}

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

.avatar-preview.has-image img {
  display: block;
}

.avatar-preview.has-image .avatar-fallback {
  display: none;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-message {
  min-height: 18px;
  font-size: 0.9rem;
  color: var(--accent-strong);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 15, 12, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 20;
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  width: min(460px, 92vw);
  background: var(--card);
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-card.large {
  width: min(760px, 94vw);
  max-height: 80vh;
  overflow-y: auto;
}

.modal.is-visible .modal-card {
  transform: translateY(0) scale(1);
}

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

.modal-header h3 {
  font-family: "Tektur", sans-serif;
}

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

.avatar-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.avatar-editor-frame {
  width: min(320px, 90vw);
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  border: 1px dashed var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.avatar-editor-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  cursor: grab;
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  touch-action: none;
}

.avatar-editor-frame img.is-visible {
  display: block;
}

.avatar-editor-frame img.is-dragging {
  cursor: grabbing;
}

.avatar-editor-frame span {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0 16px;
  text-align: center;
}

.avatar-editor-controls {
  display: grid;
  gap: 16px;
  align-content: start;
}

.requests-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.request-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.request-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.request-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.request-avatar.has-image img {
  display: block;
}

.request-avatar.has-image .avatar-fallback {
  display: none;
}

.request-info h4 {
  font-family: "Tektur", sans-serif;
  font-size: 1rem;
}

.request-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.request-class-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.request-class-tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(53, 201, 110, 0.12);
  border: 1px solid rgba(53, 201, 110, 0.25);
  color: var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0) scale(0.94);
}

.request-class-tag.is-new {
  animation: tag-pop 0.25s ease forwards;
}

@keyframes tag-pop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.request-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.request-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  background: var(--card);
  color: var(--text);
}

.request-actions {
  display: grid;
  gap: 0;
}

.class-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.class-icon-btn {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.class-icon-btn img {
  width: 30px;
  height: 30px;
  filter: brightness(0) saturate(100%) invert(48%) sepia(6%) saturate(1050%)
    hue-rotate(95deg) brightness(95%) contrast(86%);
  opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.class-icon-btn.is-selected {
  filter: drop-shadow(0 0 10px rgba(53, 201, 110, 0.4));
}

.class-icon-btn.is-selected img {
  filter: brightness(0) saturate(100%) invert(63%) sepia(21%) saturate(1069%)
    hue-rotate(94deg) brightness(97%) contrast(96%);
  opacity: 1;
  transform: scale(1.02);
}

.class-icon-btn.is-animating {
  animation: icon-pop 0.25s ease;
}

@keyframes icon-pop {
  0% {
    transform: scale(0.96);
  }
  60% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.request-assign {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.request-message {
  font-size: 0.8rem;
  color: var(--accent-strong);
  min-height: 16px;
}

.requests-empty {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
}

.hidden {
  display: none;
}

.skeleton-line,
.skeleton-block {
  position: relative;
  overflow: hidden;
  background: var(--skeleton-base);
}

.skeleton-line::after,
.skeleton-block::after,
.is-loading [data-skeleton]::after,
.is-loading [data-skeleton-block]::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent);
  animation: shimmer 1.2s infinite;
}

.skeleton-line {
  height: 10px;
  border-radius: 999px;
}

.skeleton-line.w-60 {
  width: 60%;
}

.skeleton-block {
  border-radius: 16px;
}

.skeleton-block.h-14 {
  height: 44px;
}

.skeleton-block.h-48 {
  height: 140px;
}

.is-loading [data-skeleton],
.is-loading [data-skeleton-block] {
  color: transparent;
  background: var(--skeleton-base);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.is-loading [data-skeleton] {
  display: inline-block;
  padding: 0.08em 0.3em;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1100px) {
  .dash-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .top-bar,
  .auth-layout,
  .dashboard,
  .profile,
  .users-view {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .field-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-avatar {
    flex-direction: column;
    align-items: flex-start;
  }

  .avatar-editor-grid {
    grid-template-columns: 1fr;
  }

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

  .dash-header,
  .dash-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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