@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700&display=swap");

:root {
  --bg: #f3f8ff;
  --surface: #ffffff;
  --surface-alt: #eef5ff;
  --surface-strong: #dceaff;
  --border: rgba(24, 88, 164, 0.14);
  --text: #183153;
  --text-muted: #6882a4;
  --primary: #1d9ce9;
  --primary-strong: #0c7fc8;
  --accent: #ffd45b;
  --success: #24a37d;
  --danger: #D62514;
  --shadow: 0 24px 70px rgba(29, 71, 133, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  background: linear-gradient(180deg, #f6fbff 0%, #edf5ff 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Fredoka", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.auth-body {
  background:
    radial-gradient(circle at top left, rgba(29, 156, 233, 0.32), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 212, 91, 0.28), transparent 25%),
    linear-gradient(135deg, #e7f3ff 0%, #f8fbff 45%, #edf5ff 100%);
}

.auth-shell {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 32px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 36px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px);
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
  width: 100%;
}

.auth-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #1d9ce9 0%, #0b86d6 45%, #066bad 100%);
  color: #f6fbff;
  padding: 56px;
  position: relative;
}

.auth-panel::before,
.auth-panel::after {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  content: "";
  position: absolute;
}

.auth-panel::before {
  height: 220px;
  right: -70px;
  top: -60px;
  width: 220px;
}

.auth-panel::after {
  bottom: 40px;
  height: 120px;
  left: -40px;
  width: 120px;
}

.auth-panel__eyebrow,
.eyebrow {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.auth-panel__eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.auth-panel h1,
.auth-box h1,
.page-header h1,
.hero-card h1 {
  font-family: "Sora", sans-serif;
  line-height: 1.05;
  margin: 0;
}

.auth-panel h1 {
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  margin-bottom: 18px;
  max-width: 9ch;
}

.auth-panel p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 54ch;
}

.auth-panel__metrics {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
}

.auth-chip {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 18px;
}

.auth-chip strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.auth-chip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.auth-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
}

.auth-box h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.auth-box__copy {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 28px;
}

.login-reference {
  margin: -32px;
  min-height: 100vh;
  overflow: hidden;
  width: calc(100% + 64px);
  background: #2795df
}

.login-reference__top {
  align-items: start;
  background: linear-gradient(180deg, #2c9ce7 0%, #2795df 100%);
  display: flex;
  justify-content: center;
  min-height: 212px;
  isolation: isolate;
  overflow: hidden;
  padding: 42px 24px 34px;
  position: relative;
}

.login-reference__top-pattern {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.42;
  position: absolute;
  width: 100%;
  z-index: -1;
}

.login-reference__logo-image {
  display: block;
  filter: drop-shadow(0 8px 0 rgba(79, 95, 182, 0.18));
  height: auto;
  position: relative;
  width: clamp(212px, 24vw, 312px);
  z-index: 1;
}

.login-reference__surface {
  background: #ffffff;
  border-top-left-radius: 56px;
  margin-top: -2px;
  min-height: calc(100vh - 178px);
  padding: 24px 20px 72px;
  position: relative;
}

.login-reference__form-shell {
  margin: clamp(78px, 10vh, 138px) auto 0;
  width: min(320px, 100%);
}

.login-reference__emoji {
  display: block;
  height: auto;
  margin: 0 auto 18px;
  width: 56px;
}

.login-reference__form {
  display: grid;
  gap: 12px;
}

.login-reference__form .form-errors {
  border-radius: 16px;
  font-size: 0.82rem;
  padding: 12px 14px;
}

.login-reference__field {
  display: grid;
  gap: 7px;
}

.login-reference__label {
  color: #3d4450;
  font-size: 0.9rem;
  font-weight: 500;
}

.login-reference__input-wrap {
  position: relative;
}

.login-reference__input {
  background: #ffffff;
  border: 1px solid #d6dce6;
  border-radius: 999px;
  color: #2a3040;
  min-height: 38px;
  padding: 0 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.login-reference__input::placeholder {
  color: #c2c9d5;
}

.login-reference__input:focus {
  border-color: rgba(36, 154, 232, 0.7);
  box-shadow: 0 0 0 4px rgba(36, 154, 232, 0.12);
  outline: none;
}

.login-reference__eye-icon {
  border: 1.6px solid #9aa2b1;
  border-radius: 60% 60% 60% 60% / 50% 50% 50% 50%;
  height: 12px;
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
}

.login-reference__eye-icon::after {
  background: #9aa2b1;
  border-radius: 50%;
  content: "";
  height: 4px;
  left: 6px;
  position: absolute;
  top: 3px;
  width: 4px;
}

.login-reference__forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.login-reference__forgot {
  color: #4b525d;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-reference__submit,
.login-reference__provider {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  width: 100%;
}

.login-reference__submit {
  background: #249ae8;
  border: 0;
  box-shadow: 0 12px 24px rgba(36, 154, 232, 0.2);
  color: #ffffff;
  cursor: pointer;
  margin-top: 8px;
}

.login-reference__provider {
  background: #ffffff;
  border: 1px solid #d6dce6;
  color: #3d4450;
  cursor: default;
  gap: 8px;
}

.login-reference__provider:disabled {
  opacity: 1;
}

.login-reference__separator {
  color: #4b525d;
  font-size: 0.86rem;
  font-weight: 500;
  margin: 12px 0 10px;
  text-align: center;
}

/* Auth Forms (Standardized) */
.form-label-auth {
  display: block;
  margin-bottom: 4px;
  color: #000000;
  font-weight: 500;
}

.form-input-auth {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  color: #1e293b;
  display: block;
  height: 40px;
  padding: 0 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.form-input-auth::placeholder {
  color: #cbd5e1;
}

.form-input-auth:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 156, 233, 0.1);
  outline: none;
}

.form-input-auth--error {
  border-color: var(--danger) !important;
}

.form-input-auth--error:focus {
  box-shadow: 0 0 0 4px rgba(214, 37, 20, 0.1);
}

.form-input-auth-wrapper {
  position: relative;
}

.form-btn-password-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 12px;
  display: flex;
  align-items: center;
  color: #94a3b8;
  transition: color 160ms ease;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.form-btn-password-toggle:hover {
  color: #475569;
}

.form-btn-password-toggle:focus {
  outline: none;
}


.form-btn-auth-primary {
  align-items: center;
  background-color: var(--primary);
  border: none;
  border-radius: 9999px;
  box-shadow: 0 12px 24px rgba(36, 154, 232, 0.2);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  transition: background-color 160ms ease;
  width: 100%;
}

.form-btn-auth-primary:hover {
  background-color: var(--primary-strong);
}

.form-btn-auth-outline {
  align-items: center;
  background-color: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  color: #000000;
  display: inline-flex;
  gap: 8px;
  height: 40px;
  justify-content: center;
  width: 100%;
}

.form-error-text {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 4px;
}

.app-body {
  background:
    radial-gradient(circle at top left, rgba(29, 156, 233, 0.12), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: #1D9CE9;
}

.app-sidebar {
  color: #f6fbff;
  display: flex;
  flex-direction: column;
  padding: 0;
  width: 280px;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.app-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("/assets/puzzle_image-288042db.svg"), url("/assets/puzzle_image-288042db.svg"),
    url("/assets/puzzle_image-288042db.svg"), url("/assets/puzzle_image-288042db.svg"),
    url("/assets/puzzle_image-288042db.svg"), url("/assets/puzzle_image-288042db.svg"),
    url("/assets/puzzle_image-288042db.svg"), url("/assets/puzzle_image-288042db.svg"),
    url("/assets/puzzle_image-288042db.svg"), url("/assets/puzzle_image-288042db.svg"),
    url("/assets/puzzle_image-288042db.svg"), url("/assets/puzzle_image-288042db.svg");
  background-repeat: no-repeat;
  background-position:
    right -60px top -45px, left -60px top 85px,
    right -60px top 215px, left -60px top 345px,
    right -60px top 475px, left -60px top 605px,
    right -60px top 735px, left -60px top 865px,
    right -60px top 995px, left -60px top 1125px,
    right -60px top 1255px, left -60px top 1385px;
  background-size: 250px auto;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.sidebar-brand,
.sidebar-nav,
.sidebar-footer {
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.sidebar-logo {
  width: 207px;
  height: 123px;
  object-fit: contain;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  gap: 12px;
  align-items: center;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 212px;
  height: 55px;
  padding: 15px 20px;
  border-radius: 20px;
  color: #ffffff;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

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

.sidebar-link.is-active {
  background: #ffffff;
  color: #1a8dd6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-link__icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.sidebar-link__text {
  font-size: 16px;
  line-height: normal;
  white-space: nowrap;
}


.sidebar-footer {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 40px;
  gap: 20px;
  margin-top: auto;
}

.sidebar-support {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.sidebar-support:hover {
  opacity: 1;
}

.sidebar-support__text {
  width: 50px;
  height: 12px;
  font-size: 11px;
  line-height: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.sidebar-support .sidebar-link__icon {
  width: 14px;
  height: 14px;
  background-color: #ffffff;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

:root {
  --primary-blue: #1D9CE9;
  --primary-blue-hover: #1789D4;
  --border-gray: #E0E6ED;
  --text-gray: #6C6C6C;
  --bg-faint: #F8F8F8;
}

/* Componentes Reutilizáveis */
.icon-masked {
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: currentColor;
}

.modal-base-container {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content-card {
  background-color: white;
  border-radius: 30px;
  width: 95%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-gray);
}

.title-centered-mb {
  text-align: center;
  margin-bottom: 24px;
}

.flex-end-gap-10 {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cropper-overlay-lens {
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 250px;
  height: 250px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.btn-action-container {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}


.sidebar-profile__link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
  flex: 1;
  min-width: 0;
}

.sidebar-profile__link:hover {
  opacity: 0.8;
}

.sidebar-profile__avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-profile__name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile__exit {
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.sidebar-profile__exit .sidebar-link__icon {
  width: 18px;
  height: 18px;
  background-color: #ffffff;
}

.app-main {
  background: #ffffff;
  border-radius: 40px 0 0 40px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.app-topbar {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 28px 36px 0;
}

.app-topbar:empty {
  padding: 0;
}

.app-topbar__pill {
  background: rgba(29, 156, 233, 0.12);
  border: 1px solid rgba(29, 156, 233, 0.16);
  border-radius: 999px;
  color: var(--primary-strong);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 16px;
}

.app-topbar__copy {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.app-main__content {
  padding: 40px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-stack {
  display: grid;
  gap: 24px;
}

.hero-card,
.page-header,
.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card,
.page-header {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  overflow: hidden;
  padding: 30px 32px;
  position: relative;
}

.hero-card::after,
.page-header::after {
  background: linear-gradient(135deg, rgba(29, 156, 233, 0.16), rgba(255, 212, 91, 0.22));
  border-radius: 50%;
  content: "";
  height: 200px;
  position: absolute;
  right: -70px;
  top: -90px;
  width: 200px;
}

.hero-card h1,
.page-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 12px;
  max-width: 14ch;
}

.hero-card p,
.page-header p,
.panel-card__copy,
.muted-copy {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.hero-card__actions,
.page-header__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

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

.metric-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 22px;
}

.metric-card__label {
  color: var(--text-muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.metric-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  margin-bottom: 12px;
}

.metric-card small {
  color: var(--primary-strong);
  display: inline-flex;
  font-weight: 700;
}

.content-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.95fr);
}

.content-grid--dashboard {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.panel-card {
  padding: 28px;
}

.panel-card__header {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.panel-card__header h2,
.panel-card__header h3 {
  font-family: "Sora", sans-serif;
  margin: 0 0 6px;
}

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

.entity-card,
.compact-list__item {
  border: 1px solid rgba(24, 88, 164, 0.1);
  border-radius: 22px;
  display: grid;
  gap: 18px;
  padding: 20px;
}

.entity-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.entity-card__title-row {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.entity-card__eyebrow {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.entity-card h3,
.compact-list__item strong {
  font-family: "Sora", sans-serif;
  margin: 0;
}

.entity-card__description,
.entity-card__meta,
.compact-list__item small,
.empty-state p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.entity-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.entity-card__actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  gap: 8px;
  padding: 8px 12px;
  white-space: nowrap;
}

.status-pill--info {
  background: rgba(29, 156, 233, 0.1);
  color: var(--primary-strong);
}

.status-pill--success {
  background: rgba(36, 163, 125, 0.12);
  color: var(--success);
}

.status-pill--muted {
  background: rgba(104, 130, 164, 0.14);
  color: var(--text-muted);
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  padding: 12px 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  box-shadow: 0 12px 24px rgba(29, 156, 233, 0.22);
  color: #ffffff;
}

.button--secondary {
  background: rgba(29, 156, 233, 0.1);
  color: var(--primary-strong);
}

.button--ghost {
  background: transparent;
  border-color: rgba(24, 88, 164, 0.12);
  color: var(--text);
}

.button--danger {
  background: rgba(211, 79, 102, 0.1);
  color: var(--danger);
}

.inline-form {
  display: inline;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field--inline {
  align-items: center;
  grid-template-columns: auto 1fr;
}

.field label {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"],
.field select,
.field textarea {
  background: #fbfdff;
  border: 1px solid rgba(24, 88, 164, 0.14);
  border-radius: 16px;
  color: var(--text);
  min-height: 52px;
  padding: 14px 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(29, 156, 233, 0.6);
  box-shadow: 0 0 0 4px rgba(29, 156, 233, 0.12);
  outline: none;
}

.field__hint {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.field__checkbox {
  accent-color: var(--primary);
  height: 18px;
  width: 18px;
}

.form-errors {
  background: rgba(211, 79, 102, 0.08);
  border: 1px solid rgba(211, 79, 102, 0.18);
  border-radius: 18px;
  color: #7f2034;
  padding: 16px 18px;
}

.form-errors strong {
  display: block;
  margin-bottom: 10px;
}

.form-errors ul {
  margin: 0;
  padding-left: 18px;
}

.empty-state {
  align-items: start;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f7ff 100%);
  border: 1px dashed rgba(24, 88, 164, 0.16);
  border-radius: 22px;
  display: grid;
  gap: 10px;
  padding: 24px;
}

.empty-state h3 {
  font-family: "Sora", sans-serif;
  margin: 0;
}

.compact-list {
  display: grid;
  gap: 14px;
}

.flash-stack {
  position: fixed !important;
  top: 27px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
  width: auto;
  max-width: 660px;
}

.flash {
  align-items: start;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  padding: 16px 18px;
  pointer-events: auto;
}

.flash--notice {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(36, 163, 125, 0.18);
}

.flash--alert {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(211, 79, 102, 0.18);
}

.flash p {
  grid-column: 1 / 2;
  line-height: 1.6;
  margin: 0;
}

.flash button {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}

.text-link {
  color: var(--primary-strong);
  font-weight: 800;
}

@media (max-width: 1180px) {

  .metrics-grid,
  .content-grid,
  .content-grid--dashboard,
  .auth-card {
    grid-template-columns: 1fr;
  }

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

  .app-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {

  .auth-shell,
  .app-main__content,
  .app-topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .auth-panel,
  .auth-box,
  .panel-card,
  .hero-card,
  .page-header {
    padding: 22px;
  }

  .auth-panel__metrics,
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-card,
  .page-header,
  .panel-card__header,
  .app-topbar {
    align-items: start;
    flex-direction: column;
  }

  .login-reference {
    margin: -18px;
    width: calc(100% + 36px);
  }

  .login-reference__top {
    min-height: 190px;
    padding-top: 34px;
  }

  .login-reference__surface {
    border-top-left-radius: 38px;
    min-height: calc(100vh - 162px);
    padding-bottom: 48px;
  }

  .login-reference__form-shell {
    margin-top: 68px;
  }
}

@media (max-width: 560px) {

  .auth-panel__metrics,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    padding: 18px;
  }

  .login-reference__logo-image {
    width: min(240px, calc(100vw - 72px));
  }

  .login-reference__form-shell {
    width: min(290px, 100%);
  }
}

.profile-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0 20px;
}

.profile-avatar {
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  width: 130px;
  height: 130px;
  padding: 10px;
}

.profile-avatar__image-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #f0f4f8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.profile-avatar__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 156, 233, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.profile-avatar__image-wrapper:hover .profile-avatar__overlay {
  opacity: 1;
}

.profile-avatar__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-title {
  width: 100%;
  max-width: 500px;
  font-family: 'Fredoka', cursive;
  font-weight: 600;
  font-size: 20px;
  line-height: 94%;
  text-align: center;
  color: #6C6C6C;
  margin-bottom: 30px;
}

.profile-card {
  width: 100%;
  max-width: 1056px;
  background: #ffffff;
  border: 1px solid #e0e6ed;
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.profile-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.profile-card__title {
  font-family: 'Fredoka', cursive;
  font-weight: 600;
  font-size: 20px;
  line-height: 94%;
  color: #6C6C6C;
  margin-bottom: 0;
  text-align: left;
}

.profile-card__edit-btn {
  width: 40px;
  height: 40px;
  padding: 0 10px;
  gap: 5px;
  background: var(--primary, #1D9CE9);
  border: none;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.profile-card__edit-btn:hover {
  opacity: 0.8;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .profile-details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-card {
    padding: 20px;
  }

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

.profile-detail-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-detail-item__label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 14.4px;
  line-height: 100%;
  color: #6C6C6C;
}

.profile-detail-item__value {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 14.4px;
  line-height: 100%;
  color: #000000;
}

.profile-edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-doc-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-form-input {
  display: block;
  width: 100%;
  background: #fbfdff;
  border: 1px solid rgba(24, 88, 164, 0.14);
  border-radius: 20px;
  color: #333333;
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  transition: border-color 160ms ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-textfield-decoration-container {
  display: none !important;
  -webkit-appearance: none;
}

.custom-select-container {
  position: relative;
  display: inline-block;
}

.custom-select-trigger {
  text-align: left;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236C6C6C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 28px !important;
  cursor: pointer;
}

.custom-select-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #ffffff;
  padding: 8px 0;
  list-style: none;
  z-index: 50;
  overflow-y: auto;
  box-sizing: border-box;

  width: 100%;
  max-height: 113px;
  border-radius: 20px;
  border: 1px solid #D0D5E1;
  box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.09);
}

.custom-select-menu::-webkit-scrollbar {
  width: 6px;
}

.custom-select-menu::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
}

.custom-select-menu::-webkit-scrollbar-thumb {
  background: #D0D5E1;
  border-radius: 10px;
}

.custom-select-menu::-webkit-scrollbar-thumb:hover {
  background: #A0AABF;
}

.custom-select-option {
  padding: 8px 16px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #333333;
  transition: background-color 0.15s ease;
}

.custom-select-option:hover {
  background-color: #f0f4f8;
}

.custom-select-option.selected {
  font-weight: 700;
  background-color: rgba(29, 156, 233, 0.05);
}

.profile-form-input--type {
  width: 168px;
  flex-shrink: 0;
}

.profile-form-input--number {
  flex: 1;
  min-width: 0;
}

.profile-form-input:focus {
  outline: none;
  border-color: #1D9CE9;
  box-shadow: 0 0 0 3px rgba(29, 156, 233, 0.1);
}

.profile-form-input.field-error {
  border-color: #D62514;
}

.profile-form-input.field-error:focus {
  border-color: #D62514;
  box-shadow: 0 0 0 3px rgba(214, 37, 20, 0.12);
}

.profile-form-input.field-error::placeholder {
  color: rgba(214, 37, 20, 0.5);
}

.field-error-message {
  color: #D62514;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

.criteria-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
}

.criteria-item {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.criteria-item--fail {
  color: #D62514;
}

.criteria-item--pass {
  color: #84AF21;
}

.criteria-item--neutral {
  color: #6C6C6C;
}

.criteria-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #333333;
  margin-right: 4px;
}

.profile-edit-form .field label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 14.4px;
  line-height: 100%;
  color: #6C6C6C;
}

.profile-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  width: 187px;
  height: 36px;
  padding: 8px 16px;
  border-radius: 20px;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.profile-btn--cancel {
  background-color: #ffffff;
  border: 1px solid #1D9CE9;
  color: #1D9CE9;
}

.profile-btn--cancel:hover {
  background-color: #f8f9fa;
}

.profile-btn--save {
  background-color: #1D9CE9;
  border: 1px solid #1D9CE9;
  color: #ffffff;
}

.profile-btn--save:hover {
  background-color: #1585c9;
}

.toast-wrapper {
  display: flex;
  justify-content: flex-end;
  pointer-events: auto;
  animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-box {
  width: 100%;
  max-width: 660px;
  height: 47px;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  pointer-events: auto;
  border: 1px solid;
}

.toast-box--success {
  background-color: #EFFFCB;
  border-color: #84AF21;
  box-shadow: 0 4px 12px rgba(132, 175, 33, 0.15);
}

.toast-box--success .toast-text {
  color: #84AF21;
}

.toast-box--success .toast-x {
  color: #84AF21;
}

.toast-box--error {
  background-color: #F8ACA4;
  border-color: #D62514;
  box-shadow: 0 4px 12px rgba(214, 37, 20, 0.15);
}

.toast-box--error .toast-text {
  color: #D62514;
}

.toast-box--error .toast-x {
  color: #D62514;
}

.toast-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.toast-emoji {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
}

.toast-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-x {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.toast-x:hover {
  opacity: 0.7;
}

.toast-wrapper.fade-out {
  animation: fadeOutDown 0.4s forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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

@keyframes fadeOutDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(20px);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .toast-wrapper {
    right: 10px;
    left: 10px;
    top: 10px;
  }

  .toast-box {
    max-width: none;
  }
}