.auth-body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(229, 141, 34, 0.1), transparent 28%),
    linear-gradient(180deg, #0b1320 0%, #1c2a3d 42%, #0b1320 100%);
  -webkit-font-smoothing: antialiased;
}
.auth-body .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 20, 40, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}
.auth-brand img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.auth-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.auth-brand-text span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.92);
}
.auth-brand-text small {
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}
.auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 56px;
  min-height: calc(100vh - 72px);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 32px 32px;
  border-radius: var(--radius-card-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(27, 42, 63, 0.92) 0%, rgba(11, 19, 32, 0.96) 100%);
  box-shadow: var(--shadow-card-dark), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.auth-card h1 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}
.auth-badge {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(212, 175, 103, 0.14);
  color: var(--gold-1);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.auth-lead {
  margin: 0 0 28px;
  color: rgba(233, 238, 245, 0.78);
  font-size: 0.94rem;
  line-height: 1.65;
}
.auth-form {
  display: grid;
  gap: 18px;
}
.auth-field {
  display: grid;
  gap: 8px;
}
.auth-field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(233, 238, 245, 0.72);
}
.auth-field-hint {
  margin: 0;
  max-width: 38rem;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(233, 238, 245, 0.58);
}
.auth-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 24, 0.55);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-field input::placeholder {
  color: rgba(233, 238, 245, 0.35);
}
.auth-field input:focus {
  border-color: rgba(212, 175, 103, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 103, 0.12);
}
.auth-submit {
  margin-top: 6px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #141a22;
  background: linear-gradient(145deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 100%);
  box-shadow: var(--gold-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-shadow-hover);
}
.auth-foot {
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.88rem;
  color: rgba(233, 238, 245, 0.55);
}
.auth-foot a {
  color: var(--gold-1);
  font-weight: 700;
  text-decoration: none;
}
.auth-foot a:hover {
  text-decoration: underline;
}
.auth-note {
  margin: 16px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(233, 238, 245, 0.45);
}
.auth-shell--login {
  align-items: flex-start;
  padding-top: 28px;
  padding-bottom: 56px;
  min-height: calc(100vh - 76px);
}
.auth-login-layout {
  width: 100%;
  max-width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 4px;
}
.auth-login-intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 28px;
}
.auth-login-intro h1 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}
.auth-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 900px) {
  .auth-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
  }
}
.auth-choice-card {
  margin: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(34, 52, 76, 0.78) 0%, rgba(14, 22, 38, 0.92) 100%);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}
.auth-choice-card.is-active {
  border-color: rgba(212, 175, 103, 0.52);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(212, 175, 103, 0.18);
  transform: translateY(-3px);
}
.auth-choice-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 188px;
  padding: 22px 20px 20px;
  box-sizing: border-box;
}
.auth-choice-label {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
.auth-choice-desc {
  flex: 1;
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(233, 238, 245, 0.68);
}
.auth-choice-cta {
  margin-top: auto;
  width: 100%;
  padding: 12px 16px;
  border-radius: 11px;
  border: 1px solid rgba(212, 175, 103, 0.42);
  background: linear-gradient(145deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 100%);
  color: #141a22;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--gold-shadow);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}
.auth-choice-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-shadow-hover);
  filter: brightness(1.03);
}
.auth-choice-cta--outline {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(233, 238, 245, 0.94);
  box-shadow: none;
}
.auth-choice-cta--outline:hover {
  border-color: rgba(212, 175, 103, 0.45);
  background: rgba(212, 175, 103, 0.1);
  filter: none;
}
.auth-portal-package {
  max-width: 100%;
  margin: 28px auto 12px;
  padding: 0;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(158deg, rgba(22, 34, 52, 0.94) 0%, rgba(10, 16, 28, 0.97) 48%, rgba(6, 11, 22, 0.99) 100%);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 1px 0 rgba(212, 175, 103, 0.12) inset;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  overflow: hidden;
}
.auth-portal-package-head {
  padding: 28px 28px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(212, 175, 103, 0.06) 0%, transparent 100%);
}
.auth-portal-package-eyebrow {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212, 175, 103, 0.88);
}
.auth-portal-package-title {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}
.auth-portal-package-subtitle {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(233, 238, 245, 0.68);
}
.auth-portal-panel-body {
  padding: 0;
}
.auth-portal-signin-note {
  margin: 14px 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(233, 238, 245, 0.48);
  text-align: center;
}
.auth-mode-badge {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212, 175, 103, 0.95);
  border: 1px solid rgba(212, 175, 103, 0.38);
  background: rgba(212, 175, 103, 0.1);
  box-shadow: 0 0 20px rgba(212, 175, 103, 0.12);
}
.auth-portal-head--register {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.auth-portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.auth-portal-col {
  position: relative;
  transition:
    background 0.28s ease,
    box-shadow 0.28s ease;
}
.auth-portal-col-inner {
  padding: 28px 26px 32px;
}
.auth-portal-head {
  margin: 0 0 22px;
}
.auth-portal-title {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}
.auth-portal-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(233, 238, 245, 0.62);
}
.auth-portal-col.is-emphasized {
  background:
    radial-gradient(ellipse 130% 90% at 50% 0%, rgba(212, 175, 103, 0.16) 0%, transparent 58%),
    rgba(212, 175, 103, 0.07);
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 103, 0.35),
    inset 0 0 48px rgba(212, 175, 103, 0.06),
    0 0 28px rgba(212, 175, 103, 0.08);
}
.auth-portal-vrule {
  margin: 0;
  padding: 0;
  border: none;
}
@media (min-width: 900px) {
  .auth-portal-package-head {
    padding: 32px 36px 28px;
  }
  .auth-portal-grid {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: stretch;
    min-height: 440px;
  }
  .auth-portal-vrule {
    width: 1px;
    height: auto;
    align-self: stretch;
    margin: 36px 0;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(212, 175, 103, 0.32) 18%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(212, 175, 103, 0.32) 82%,
      transparent 100%
    );
  }
  .auth-portal-col-inner {
    padding: 38px 38px 42px;
  }
  .auth-password-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 899px) {
  .auth-portal-package-head {
    padding: 22px 18px 20px;
  }
  .auth-portal-vrule {
    height: 1px;
    width: 100%;
    margin: 0;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 100%
    );
  }
  .auth-portal-col-inner {
    padding: 24px 20px 28px;
  }
  .auth-password-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.auth-password-box {
  margin: 4px 0 16px;
  padding: 12px 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 103, 0.15);
  background: rgba(4, 10, 22, 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 8px 24px rgba(0, 0, 0, 0.2);
}
.auth-password-box-title {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212, 175, 103, 0.9);
}
.auth-password-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.auth-password-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 650;
  color: rgba(233, 238, 245, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}
.auth-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 24, 0.55);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-select:focus {
  border-color: rgba(212, 175, 103, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 103, 0.12);
}
@media (max-width: 599px) {
  .auth-choice-card-inner {
    min-height: 0;
  }
}
.app-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-user {
  display: none;
  font-size: 0.82rem;
  color: rgba(233, 238, 245, 0.65);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .app-user {
    display: block;
  }
}
.btn-logout {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-logout:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}
.auth-header-link {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(233, 238, 245, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.auth-header-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}
.app-layout {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 40px;
  gap: 0;
}
@media (max-width: 768px) {
  .app-layout {
    grid-template-columns: 1fr;
    padding: 0 16px 32px;
  }
}
.app-sidebar {
  padding: 24px 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 768px) {
  .app-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
  }
}
.app-nav-title {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(233, 238, 245, 0.45);
}
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(233, 238, 245, 0.88);
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none;
  background: rgba(212, 175, 103, 0.12);
  border: 1px solid rgba(212, 175, 103, 0.28);
  cursor: default;
}
.app-nav-item span.icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5df08a;
  box-shadow: 0 0 10px rgba(93, 240, 138, 0.45);
}
.app-main {
  padding: 24px 0 24px 28px;
  min-width: 0;
}
@media (max-width: 768px) {
  .app-main {
    padding: 20px 0 0;
  }
}
.app-main-header {
  margin-bottom: 22px;
}
.app-main-header h1 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 600;
  color: #fff;
}
.app-main-header p {
  margin: 0;
  color: rgba(233, 238, 245, 0.62);
  font-size: 0.9rem;
}
.message-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 38, 58, 0.55);
  transition: border-color 0.2s ease, transform 0.2s var(--ease-smooth);
}
.message-row:hover {
  border-color: rgba(212, 175, 103, 0.25);
  transform: translateY(-1px);
}
.message-subject {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.message-preview {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(233, 238, 245, 0.58);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.message-meta {
  text-align: right;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(212, 175, 103, 0.85);
  white-space: nowrap;
}
.message-meta .message-tag {
  display: block;
}
.message-meta time {
  display: block;
  margin-top: 6px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: rgba(233, 238, 245, 0.45);
}
.app-nav-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(233, 238, 245, 0.78);
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.app-nav-link:hover {
  color: #fff;
  border-color: rgba(212, 175, 103, 0.35);
  background: rgba(212, 175, 103, 0.08);
}
.app-nav-link .icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5df08a;
  box-shadow: 0 0 8px rgba(93, 240, 138, 0.35);
}
.app-nav-link .icon--muted {
  background: rgba(233, 238, 245, 0.35);
  box-shadow: none;
}
.portal-main {
  padding-top: 12px;
}
.portal-page-head {
  margin-bottom: 8px;
}
.portal-wrap {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 16px;
}
.portal-section-head {
  margin-bottom: 16px;
}
.portal-section-head h2 {
  margin: 0 0 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  color: #fff;
}
.portal-section-head p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(233, 238, 245, 0.58);
  max-width: 52ch;
}
.portal-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .portal-card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal-card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .portal-card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.portal-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 38, 58, 0.62);
  box-shadow: var(--shadow-card-dark);
  transition: transform 0.22s var(--ease-smooth), border-color 0.2s ease, box-shadow 0.22s ease;
}
.portal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 103, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.portal-card-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(233, 238, 245, 0.92);
  background: rgba(212, 175, 103, 0.18);
  border: 1px solid rgba(212, 175, 103, 0.3);
}
.portal-card-badge.is-warn {
  background: rgba(255, 186, 90, 0.12);
  border-color: rgba(255, 186, 90, 0.35);
  color: #ffd9a0;
}
.portal-card-badge.is-ok {
  background: rgba(93, 240, 138, 0.1);
  border-color: rgba(93, 240, 138, 0.28);
  color: #b8f5cf;
}
.portal-card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.portal-card-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(212, 175, 103, 0.88);
}
.portal-card-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(233, 238, 245, 0.62);
}
.portal-card-actions {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(212, 175, 103, 0.75);
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px;
}
.auth-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(24, 38, 58, 0.45);
  color: rgba(233, 238, 245, 0.82);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.auth-tab.is-active,
.auth-tab[aria-selected="true"] {
  border-color: rgba(212, 175, 103, 0.45);
  background: rgba(212, 175, 103, 0.14);
  color: #fff;
}
.platform-main .platform-h2 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}
.platform-section {
  margin-bottom: 28px;
}
.platform-error {
  color: #ffb4b4;
  font-size: 0.9rem;
  margin: 0 0 12px;
}
.platform-error[data-tone="success"] {
  color: #8fd4a4;
}
.platform-banner {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 186, 90, 0.12);
  border: 1px solid rgba(255, 186, 90, 0.35);
  color: #ffd9a0;
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.platform-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.platform-grid2 {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .platform-grid2 {
    grid-template-columns: 1fr 1fr;
  }
}
.platform-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.platform-table th,
.platform-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(233, 238, 245, 0.88);
}
.platform-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 175, 103, 0.88);
}
.btn-table {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 103, 0.45);
  background: rgba(212, 175, 103, 0.12);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}
.platform-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.platform-admin-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.platform-admin-tabs .app-nav-link {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  text-align: left;
}
.platform-muted {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(233, 238, 245, 0.72);
}
.admin-doc-form {
  max-width: 720px;
}
.admin-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px 18px;
  margin-bottom: 14px;
}
.admin-doc-note {
  display: block;
  margin-bottom: 14px;
}
.admin-doc-actions {
  margin-bottom: 12px;
}
.admin-doc-status {
  margin: 0;
  font-size: 0.86rem;
  min-height: 1.35em;
}
.admin-doc-status[data-tone="success"] {
  color: rgba(143, 209, 158, 0.95);
}
.admin-doc-status[data-tone="warning"] {
  color: rgba(255, 183, 120, 0.98);
}
.admin-doc-status[data-tone="neutral"] {
  color: rgba(233, 238, 245, 0.62);
}
.platform-admin-tabs .app-nav-link.is-active {
  border-color: rgba(212, 175, 103, 0.55);
  background: rgba(212, 175, 103, 0.18);
  color: #fff;
}
.admin-dash-hint {
  margin: -4px 0 14px;
}
.platform-table-wrap--wide {
  max-width: 100%;
}
.platform-table tbody td[colspan] {
  text-align: center;
  padding: 1.25rem 1rem;
  color: rgba(233, 238, 245, 0.68);
  font-size: 0.88rem;
}
@media (max-width: 768px) {
  .platform-toolbar {
    flex-wrap: wrap;
  }
  .platform-table {
    font-size: 0.82rem;
  }
  .platform-table th,
  .platform-table td {
    padding: 8px 10px;
  }
}
.platform-table--dense td,
.platform-table--dense th {
  vertical-align: middle;
}
.platform-table--dense .platform-cell-muted {
  font-size: 0.8rem;
  color: rgba(233, 238, 245, 0.58);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.platform-th-actions {
  white-space: nowrap;
  width: 1%;
}
.platform-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.platform-actions-cell .btn-table {
  margin: 0;
}
.platform-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(233, 238, 245, 0.92);
}
.platform-status-pill.is-submitted {
  border-color: rgba(130, 170, 220, 0.45);
  background: rgba(80, 120, 200, 0.18);
}
.platform-status-pill.is-open {
  border-color: rgba(120, 200, 160, 0.45);
  background: rgba(80, 180, 130, 0.15);
}
.platform-status-pill.is-filled {
  border-color: rgba(200, 180, 120, 0.45);
  background: rgba(200, 170, 90, 0.14);
}
.platform-status-pill.is-closed,
.platform-status-pill.is-cancelled {
  border-color: rgba(180, 180, 180, 0.35);
  background: rgba(120, 120, 120, 0.12);
}
.platform-status-pill.is-pending {
  border-color: rgba(255, 186, 120, 0.45);
  background: rgba(255, 160, 80, 0.12);
}
.platform-status-pill.is-accepted {
  border-color: rgba(120, 200, 140, 0.5);
  background: rgba(80, 180, 110, 0.18);
}
.platform-status-pill.is-rejected,
.platform-status-pill.is-withdrawn {
  border-color: rgba(255, 140, 140, 0.4);
  background: rgba(200, 80, 80, 0.12);
}
.platform-status-pill.is-yes {
  border-color: rgba(120, 200, 140, 0.45);
  background: rgba(60, 140, 90, 0.2);
}
.platform-status-pill.is-no {
  border-color: rgba(255, 160, 120, 0.4);
  background: rgba(180, 90, 60, 0.15);
}
.admin-apps-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}
.admin-filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 175, 103, 0.85);
}
.admin-filter-select {
  min-width: min(100%, 320px);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 22, 0.65);
  color: rgba(233, 238, 245, 0.95);
  font: inherit;
}
.btn-table.btn-table--danger {
  border-color: rgba(220, 120, 120, 0.55);
  background: rgba(180, 60, 60, 0.18);
}
.btn-table.btn-table--success {
  border-color: rgba(120, 200, 150, 0.55);
  background: rgba(60, 140, 100, 0.2);
}
.platform-inline-select {
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 22, 0.75);
  color: rgba(233, 238, 245, 0.95);
  font: inherit;
  font-size: 0.8rem;
  max-width: 140px;
}
/* Phase: visual stabilization. Scoped to the admin dashboard only. */
body[data-raim-page="admin-dashboard"].app-body {
  background:
    radial-gradient(ellipse 70% 45% at 12% -8%, rgba(212, 175, 103, 0.1), transparent 56%),
    linear-gradient(165deg, #070d16 0%, #0b1420 48%, #070c12 100%);
}
body[data-raim-page="admin-dashboard"] .app-layout {
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  max-width: 1280px;
  gap: 24px;
  padding-top: 18px;
}
body[data-raim-page="admin-dashboard"] .app-sidebar {
  padding: 18px 14px 18px 0;
  border-right-color: rgba(212, 175, 103, 0.14);
}
body[data-raim-page="admin-dashboard"] .app-main {
  padding: 18px 0 28px;
}
body[data-raim-page="admin-dashboard"] .app-main-header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-raim-page="admin-dashboard"] .app-main-header h1 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
}
body[data-raim-page="admin-dashboard"] .app-main-header p {
  max-width: 68rem;
  line-height: 1.55;
}
body[data-raim-page="admin-dashboard"] .platform-section {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(10, 18, 30, 0.76);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-raim-page="admin-dashboard"] .platform-toolbar {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
body[data-raim-page="admin-dashboard"] .platform-main .platform-h2 {
  margin-bottom: 0;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
body[data-raim-page="admin-dashboard"] .platform-admin-tabs {
  gap: 8px;
}
body[data-raim-page="admin-dashboard"] .platform-admin-tabs .app-nav-link {
  min-height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}
body[data-raim-page="admin-dashboard"] .platform-admin-tabs .app-nav-link.is-active {
  border-color: rgba(212, 175, 103, 0.58);
  background: linear-gradient(90deg, rgba(212, 175, 103, 0.18), rgba(212, 175, 103, 0.08));
  box-shadow: inset 3px 0 0 rgba(212, 175, 103, 0.72);
}
body[data-raim-page="admin-dashboard"] .admin-apps-filter,
body[data-raim-page="admin-dashboard"] .platform-employees-toolbar {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}
body[data-raim-page="admin-dashboard"] .platform-table-wrap {
  margin-top: 12px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(6, 11, 18, 0.42);
}
body[data-raim-page="admin-dashboard"] .platform-table th,
body[data-raim-page="admin-dashboard"] .platform-table td {
  padding: 9px 11px;
}
body[data-raim-page="admin-dashboard"] .btn-table,
body[data-raim-page="admin-dashboard"] .btn-primary,
body[data-raim-page="admin-dashboard"] .btn-logout,
body[data-raim-page="admin-dashboard"] .auth-header-link {
  border-radius: 999px;
}
@media (max-width: 768px) {
  body[data-raim-page="admin-dashboard"] .app-layout {
    gap: 0;
    padding-top: 8px;
  }
  body[data-raim-page="admin-dashboard"] .app-sidebar {
    padding-right: 0;
    border-right: none;
  }
  body[data-raim-page="admin-dashboard"] .platform-section {
    padding: 14px;
  }
}