:root {
  --gekto-accent: #0d6efd;
  --gekto-accent-dark: #0a4fb8;
  --gekto-ink: #172033;
  --gekto-muted: #667085;
  --gekto-line: #d9e0ea;
  --gekto-soft: #f3f6fa;
  --gekto-danger: #b42318;
  --gekto-success: #0f7a45;
  color-scheme: light;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  letter-spacing: 0;
}

.app-boot {
  min-height: 100vh;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.boot-card {
  width: min(100%, 360px);
  padding: 28px;
  border: 1px solid var(--gekto-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.08);
  text-align: center;
}

.boot-card p {
  margin: 10px 0 0;
  color: var(--gekto-muted);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  border-radius: 8px;
  background: var(--gekto-accent);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
}

.login-page {
  background: linear-gradient(180deg, #eef4fb 0%, #f8fafc 100%);
}

.login-box {
  width: min(100% - 24px, 420px);
}

.login-logo a {
  color: var(--gekto-ink);
  text-decoration: none;
}

.login-subtitle {
  margin-bottom: 0;
  color: var(--gekto-muted);
  font-size: 0.95rem;
}

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

.password-toggle {
  min-width: 46px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form-message {
  display: none;
  margin-bottom: 16px;
}

.form-message.is-visible {
  display: block;
}

.btn-loading .spinner-border {
  display: inline-block;
}

.btn-loading .button-icon {
  display: none;
}

.spinner-border {
  display: none;
}

.app-sidebar {
  border-right: 0;
}

.sidebar-brand {
  min-height: 64px;
}

.brand-link {
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--gekto-accent);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text-group {
  display: grid;
  line-height: 1.1;
}

.brand-title {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.sidebar-user {
  margin: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-user__name,
.sidebar-user__role {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user__name {
  color: #ffffff;
  font-weight: 700;
}

.sidebar-user__role {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.85rem;
}

.sidebar-menu .nav-link {
  border-radius: 6px;
}

.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu .nav-link.active {
  color: #ffffff;
}

.navbar-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(46vw, 280px);
  color: var(--gekto-ink);
  text-decoration: none;
}

.navbar-user__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu .dropdown-menu {
  min-width: 220px;
}

.dropdown-menu.show {
  display: block;
}

.app-content-header {
  border-bottom: 1px solid var(--gekto-line);
  background: #ffffff;
}

.app-page-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
}

.content-panel {
  border: 1px solid var(--gekto-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.04);
}

.content-panel__body {
  padding: 24px;
}

.welcome-title {
  margin-bottom: 8px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
}

.welcome-text,
.placeholder-text {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--gekto-muted);
  line-height: 1.6;
}

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

.profile-item {
  padding: 14px;
  border: 1px solid var(--gekto-line);
  border-radius: 8px;
  background: var(--gekto-soft);
}

.profile-item dt {
  margin-bottom: 4px;
  color: var(--gekto-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-item dd {
  margin-bottom: 0;
  color: var(--gekto-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(13, 110, 253, 0.1);
  color: var(--gekto-accent-dark);
  font-size: 1.25rem;
}

.app-error {
  color: var(--gekto-danger);
}

.visually-hidden-focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 8px 12px !important;
  margin: 8px !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

@media (max-width: 991.98px) {
  .navbar-user__role {
    display: none;
  }

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

@media (max-width: 575.98px) {
  .app-page-title {
    font-size: 1.25rem;
  }

  .content-panel__body {
    padding: 18px;
  }

  .welcome-title {
    font-size: 1.25rem;
  }
}
