@import url("farseer-login-dialog.css");

:root {
  --fs-bg: #071a38;
  --fs-surface: rgba(255, 255, 255, 0.04);
  --fs-surface-2: rgba(255, 255, 255, 0.06);
  --fs-accent: #38bdf8;
  --fs-accent-2: #34d399;
  --fs-border: rgba(148, 163, 184, 0.28);
  --fs-text: #f9fafb;
  --fs-muted: rgba(226, 232, 240, 0.72);
  --fs-danger: #f97373;
  --fs-success: #4ade80;
  --fs-radius: 10px;
  --fs-shadow: 0 18px 55px rgba(2, 6, 23, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Touch browsers paint a filled rectangle over the padded box of whatever is tapped,
   which reads as a stray coloured square on cards and nav items. The pressed state
   below replaces that feedback. */
a,
button,
summary,
label,
[role="button"],
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:active,
button:not(:disabled):active,
[role="button"]:active {
  opacity: 0.75;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(56, 189, 248, 0.32), transparent 40%),
    radial-gradient(circle at 85% 18%, rgba(167, 139, 250, 0.26), transparent 42%),
    radial-gradient(circle at 70% 90%, rgba(52, 211, 153, 0.22), transparent 45%),
    linear-gradient(180deg, #0b2a5b 0%, #071a38 55%, #050b18 100%);
  color: var(--fs-text);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -30vh -30vw;
  pointer-events: none;
  z-index: -1;
  filter: blur(32px);
  opacity: 0.55;
}

body::before {
  background:
    radial-gradient(circle at 25% 30%, rgba(56, 189, 248, 0.35), transparent 45%),
    radial-gradient(circle at 70% 35%, rgba(167, 139, 250, 0.28), transparent 48%),
    radial-gradient(circle at 45% 75%, rgba(52, 211, 153, 0.25), transparent 52%);
}

body::after {
  background:
    radial-gradient(circle at 65% 25%, rgba(56, 189, 248, 0.2), transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(52, 211, 153, 0.16), transparent 52%);
  opacity: 0.35;
}

.fs-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(to right, rgba(7, 26, 56, 0.86), rgba(7, 26, 56, 0.7));
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(22px);
}

.fs-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.fs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.fs-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.42);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.92), rgba(167, 139, 250, 0.55)),
    radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.45), transparent 62%),
    rgba(15, 23, 42, 0.45);
  box-shadow: 0 18px 48px rgba(56, 189, 248, 0.22);
}

.fs-logo {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f8fafc;
}

.fs-logo-accent {
  color: #38bdf8;
  font-weight: 800;
}

.fs-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fs-nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(226, 232, 240, 0.88);
  text-decoration: none;
  padding: 8px 4px 10px;
  margin: 0 6px;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.fs-nav-link:hover {
  color: #f8fafc;
  border-bottom-color: rgba(56, 189, 248, 0.35);
}

.fs-nav-link--active {
  color: #f8fafc;
  border-bottom-color: #38bdf8;
}

.fs-page-title-bar {
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 95, 0.55), rgba(15, 23, 42, 0.92));
}

.fs-page-title-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 22px 16px;
}

.fs-page-title {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.96);
}

.fs-accent-money {
  color: rgba(56, 189, 248, 0.98);
  font-weight: 600;
}

.fs-company-subpage .fs-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.fs-company-subpage .fs-section-head .fs-lead {
  max-width: 52ch;
}

/* Company — seafarer availability detail (posting profile) */
.fs-av-detail-shell {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(ellipse 90% 80% at 10% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(167, 139, 250, 0.08), transparent 50%),
    linear-gradient(165deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.fs-av-detail-hero {
  padding: 22px 24px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(105deg, rgba(56, 189, 248, 0.08), transparent 60%);
}

.fs-av-detail-eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.88);
}

.fs-av-detail-hero-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.fs-av-detail-avatar {
  flex-shrink: 0;
  width: 96px;
  height: 78px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(56, 189, 248, 0.98);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.15);
}

.fs-av-detail-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: none;
}

.fs-av-detail-avatar-initials {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(56, 189, 248, 0.98);
  font-weight: 800;
}

.fs-av-detail-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.fs-av-detail-title {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: rgba(248, 250, 252, 0.98);
}

.fs-av-detail-stats {
  padding: 16px 20px;
  gap: 12px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.25);
}

.fs-av-detail-stat {
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.55);
  padding: 14px 14px 12px;
  text-align: center;
}

.fs-av-detail-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.96);
  line-height: 1.25;
}

.fs-av-detail-stat-value.fs-av-detail-stat-value--money {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.fs-av-detail-stat-label {
  margin-top: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.88);
}

.fs-av-detail-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}

@media (max-width: 840px) {
  .fs-av-detail-split {
    grid-template-columns: 1fr;
  }
}

.fs-av-detail-panel {
  padding: 20px 22px 22px;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.fs-av-detail-split .fs-av-detail-panel:last-child {
  border-right: none;
}

@media (max-width: 840px) {
  .fs-av-detail-panel {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }
  .fs-av-detail-split .fs-av-detail-panel:last-child {
    border-bottom: none;
  }
}

.fs-av-detail-panel-title {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.92);
}

.fs-av-detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.fs-av-detail-row:last-child {
  border-bottom: none;
}

.fs-av-detail-k {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.88);
}

.fs-av-detail-v {
  font-size: 0.92rem;
  color: rgba(248, 250, 252, 0.94);
  text-align: right;
  word-break: break-word;
}

.fs-av-detail-v.fs-av-detail-phone {
  color: rgba(52, 211, 153, 0.95);
  font-weight: 600;
}

.fs-av-detail-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fs-av-detail-mini {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.5);
  padding: 10px 12px;
}

.fs-av-detail-mini span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82);
  margin-bottom: 4px;
}

.fs-av-detail-mini strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.95);
}

.fs-av-detail-about {
  padding: 20px 22px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.2);
}

.fs-av-detail-about h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.88);
}

.fs-av-detail-about p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 4px solid rgba(56, 189, 248, 0.65);
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
}

.fs-av-detail-willing {
  padding: 20px 22px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.fs-av-detail-willing--hero {
  margin-top: 18px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  border-bottom: none;
}

.fs-av-detail-willing.fs-av-detail-willing--hero .fs-av-detail-willing-hero-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.92);
  font-weight: 700;
}

.fs-av-detail-willing h3 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.88);
}

.fs-av-detail-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fs-av-detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.95);
}

.fs-av-detail-chip-type {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.95);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.fs-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fs-user-avatar-wrap {
  display: inline-flex;
  align-items: center;
}

/* Author display rules must not override the HTML hidden attribute */
.fs-user-avatar-wrap[hidden] {
  display: none !important;
}

.fs-user-avatar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.7);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fs-user-avatar-link:hover {
  border-color: var(--fs-accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.fs-user-avatar-link:has(img[src]) {
  cursor: zoom-in;
}

.fs-user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fs-user-avatar-initials {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fs-accent);
  letter-spacing: 0.02em;
}

.fs-main {
  max-width: 1120px;
  margin: 24px auto 40px;
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.fs-hero {
  padding-top: 10px;
}

.fs-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .fs-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .fs-nav {
    display: none;
  }
}

.fs-hero-copy {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 52%),
    radial-gradient(circle at 40% 110%, rgba(52, 211, 153, 0.14), transparent 48%),
    radial-gradient(circle at 110% 20%, rgba(167, 139, 250, 0.14), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(15, 23, 42, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  box-shadow: var(--fs-shadow);
  padding: 20px;
}

.fs-eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.74);
}

.fs-hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.fs-hero-subtitle {
  margin: 0 0 16px;
  color: rgba(226, 232, 240, 0.82);
  max-width: 65ch;
}

.fs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

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

@media (max-width: 720px) {
  .fs-main {
    margin: 16px auto 28px;
    padding: 0 14px 28px;
    gap: 24px;
  }

  .fs-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .fs-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fs-metric {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
}

.fs-metric-label {
  margin-top: 3px;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.74);
}

.fs-hero-panel {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.18), transparent 60%),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--fs-shadow);
  padding: 18px;
}

.fs-mini-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 14px;
}

.fs-mini-title {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
  margin-bottom: 10px;
}

.fs-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.fs-mini-row:last-of-type {
  border-bottom: none;
}

.fs-mini-k {
  color: rgba(226, 232, 240, 0.68);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.fs-mini-foot {
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.7);
}

.fs-section-head {
  margin-bottom: 10px;
}

.fs-h3 {
  margin: 0 0 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.95);
}

.fs-lead {
  margin: 0;
  color: rgba(226, 232, 240, 0.8);
}

.fs-card {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.14), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(15, 23, 42, 0.78));
  border-radius: var(--fs-radius);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--fs-shadow);
  padding: 16px;
}

/* Stacked account panels (My account — profile / password / etc.) */
.fs-account-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.fs-account-panel.fs-card {
  padding: 18px 20px;
}

.fs-account-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.fs-account-panel__head > div:first-child {
  flex: 1;
  min-width: min(100%, 220px);
}

.fs-account-panel__title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.9);
}

.fs-account-panel__lead {
  margin: 6px 0 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.94);
  max-width: 40rem;
}

.fs-account-password-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.fs-account-password-grid .fs-field-group {
  margin-bottom: 0;
}

.fs-account-password-grid .fs-account-password-confirm {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .fs-account-password-grid {
    grid-template-columns: 1fr;
  }

  .fs-account-password-grid .fs-account-password-confirm {
    grid-column: auto;
  }
}

.fs-account-panel__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.fs-account-panel__actions--start {
  justify-content: flex-start;
}

.fs-account-panel__status {
  margin-top: 10px;
}

.fs-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(226, 232, 240, 0.72);
}

input,
select {
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 7px 9px;
  font-size: 0.86rem;
  background: var(--fs-surface-2);
  color: var(--fs-text);
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

textarea {
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 9px 10px;
  font-size: 0.86rem;
  background: var(--fs-surface-2);
  color: var(--fs-text);
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  resize: vertical;
  min-height: 72px;
}

textarea::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

textarea:focus {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

input::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

input:focus,
select:focus {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(248, 250, 252, 0.75) 50%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.75) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

select option,
select optgroup {
  background-color: #071a38;
  color: var(--fs-text);
}

.fs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  border-radius: 999px;
  border: none;
  padding: 7px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 1), rgba(34, 211, 238, 0.85)),
    linear-gradient(90deg, rgba(56, 189, 248, 0.9), rgba(52, 211, 153, 0.9));
  color: #0b1120;
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.18);
  text-decoration: none;
}

.fs-button-outline {
  background: transparent;
  color: rgba(226, 232, 240, 0.92);
  box-shadow: none;
  border: 1px solid rgba(56, 189, 248, 0.38);
}

.fs-button-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(226, 232, 240, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: none;
}

.fs-button-danger {
  margin-top: 4px;
  background:
    radial-gradient(circle at top left, rgba(252, 165, 165, 0.95), rgba(248, 113, 113, 0.75)),
    linear-gradient(120deg, rgba(248, 113, 113, 0.95), rgba(185, 28, 28, 0.88));
  color: #0b1120;
  box-shadow: 0 14px 34px rgba(248, 113, 113, 0.22);
  border: 1px solid rgba(254, 202, 202, 0.35);
}

.fs-button-danger:hover {
  filter: brightness(1.06);
}

.fs-button-danger:focus-visible {
  outline: 2px solid rgba(248, 180, 180, 0.9);
  outline-offset: 2px;
}

/* Auth button: single button for Sign in / Sign out */
.fs-header-actions #authBtn {
  position: relative;
  overflow: hidden;
}

.fs-header-actions #authBtn:not(.fs-auth-signed-in)::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.9), transparent 55%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.7), transparent 55%);
  opacity: 0.22;
  pointer-events: none;
}

.fs-header-actions #authBtn:not(.fs-auth-signed-in):hover {
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.fs-header-actions #authBtn.fs-auth-signed-in {
  border-radius: 10px;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.35);
  color: rgba(248, 250, 252, 0.95);
}

.fs-header-actions #authBtn.fs-auth-signed-in:hover {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(56, 189, 248, 0.45);
  color: #f8fafc;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
  transform: none;
}

.fs-status {
  min-height: 18px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--fs-muted);
}

.fs-status--error {
  color: var(--fs-danger);
}

.fs-status--success {
  color: var(--fs-success);
}

.fs-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 6px;
}

.fs-search-card {
  padding: 20px 22px 22px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 50%),
    radial-gradient(circle at bottom left, rgba(167, 139, 250, 0.06), transparent 45%),
    rgba(255, 255, 255, 0.03);
}

.fs-search-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  .fs-search-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

.fs-search-input {
  position: relative;
}
.fs-search-input label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}
.fs-search-input input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.5);
  color: var(--fs-text);
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}
.fs-search-input input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.65);
}
.fs-search-input input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.fs-search-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 720px) {
  .fs-search-actions {
    width: 100%;
    justify-content: stretch;
  }
  .fs-search-actions .fs-button {
    flex: 1;
  }
}

.fs-filters {
  margin-top: 16px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  margin-bottom: 4px;
  transition: opacity 0.2s ease;
}

.fs-filters[hidden] {
  display: none;
}

.fs-filter-shortcuts {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.fs-filter-shortcuts-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.8);
}

.fs-filter-shortcut-btns {
  display: flex;
  gap: 8px;
}

.fs-filter-shortcut {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.fs-filter-shortcut:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}
.fs-filter-shortcut.active {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.15);
  color: #e0f2fe;
}

.fs-filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.fs-results {
  margin-top: 20px;
}

.fs-results .fs-status {
  margin-bottom: 16px;
  font-size: 0.84rem;
}

.fs-results .fs-table-wrapper {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.fs-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .fs-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .fs-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

.fs-card-item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 18px 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.fs-card-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.4), rgba(52, 211, 153, 0.3));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.fs-card-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.12);
  transform: translateY(-2px);
}
.fs-card-item:hover::before {
  opacity: 1;
}

.fs-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.fs-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #f8fafc;
}

.fs-card-meta {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
}

.fs-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 5px 0;
}
.fs-meta-row:nth-child(3) .fs-meta-v {
  color: rgba(52, 211, 153, 0.95);
  font-weight: 600;
  font-size: 0.9rem;
}

.fs-meta-k {
  flex-shrink: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.78);
}

.fs-meta-v {
  flex: 1;
  min-width: 0;
  text-align: right;
  color: rgba(248, 250, 252, 0.92);
  font-weight: 500;
}

.fs-card-cta {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.7);
  transition: color 0.15s;
}

.fs-card-item:hover .fs-card-cta {
  color: rgba(56, 189, 248, 0.95);
}

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

@media (max-width: 900px) {
  .fs-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fs-feature {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.fs-feature-title {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.92);
  margin-bottom: 8px;
  font-weight: 600;
}

.fs-feature-text {
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.88rem;
  line-height: 1.5;
}

.fs-body {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.6;
}

.fs-table-wrapper {
  margin-top: 10px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  overflow-x: auto;
  overflow-y: hidden;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.035);
}

.fs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.fs-table thead {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.fs-table th,
.fs-table td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

@media (max-width: 640px) {
  .fs-table {
    font-size: 0.75rem;
  }

  .fs-table th,
  .fs-table td {
    padding: 6px 8px;
    white-space: nowrap;
  }
}

.fs-table th {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.72);
}

.fs-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.fs-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.fs-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.06);
}

.fs-table tbody tr.fs-clickable-row {
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.fs-table tbody tr.fs-clickable-row:hover,
.fs-table tbody tr.fs-clickable-row:focus-visible {
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.6);
}

.fs-pill {
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: rgba(240, 249, 255, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.28);
  display: inline-block;
}

.fs-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px 18px;
  font-size: 0.74rem;
  color: var(--fs-muted);
  text-align: right;
}

.fs-footer-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fs-footer-dot {
  color: rgba(148, 163, 184, 0.35);
}

.fs-linklike {
  background: transparent;
  border: none;
  padding: 0;
  color: rgba(186, 230, 253, 0.95);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.fs-dialog {
  width: min(560px, calc(100vw - 28px));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.14), transparent 55%),
    rgba(7, 26, 56, 0.86);
  color: var(--fs-text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.fs-dialog-wide {
  width: min(640px, calc(100vw - 28px));
}

.fs-profile-preview-dialog {
  width: min(420px, calc(100vw - 28px));
  max-width: 90vw;
  padding: 12px;
  background: rgba(7, 26, 56, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.fs-profile-preview-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.fs-profile-preview-dialog .fs-profile-preview-close {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.fs-profile-preview-dialog img {
  max-width: 100%;
  max-height: min(380px, 70vh);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.fs-profile-preview-edit {
  margin-top: 4px;
}

.fs-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

/* —— Glass login card (seaman dashboard / hosted) —— */
.fs-dialog.fs-login-dialog {
  width: min(420px, calc(100vw - 32px));
  max-height: min(92vh, 720px);
  overflow: auto;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(12, 36, 72, 0.55) 0%, rgba(4, 14, 32, 0.72) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 80px rgba(0, 0, 0, 0.55);
}

.fs-dialog.fs-login-dialog::backdrop {
  background-color: #030a14;
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(56, 189, 248, 0.12), transparent 52%),
    linear-gradient(168deg, rgba(2, 6, 23, 0.88) 0%, rgba(10, 28, 58, 0.78) 45%, rgba(3, 7, 18, 0.92) 100%),
    image-set(
      url("assets/freighter-hero.webp") type("image/webp"),
      url("assets/freighter-hero.jpg") type("image/jpeg")
    );
  background-repeat: no-repeat;
  background-size: cover, cover, auto min(62vh, 78%);
  background-position: center, center, 100% 48%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fs-dialog.fs-login-dialog .fs-dialog-inner.fs-login-dialog-inner {
  position: relative;
  padding: 28px 26px 26px;
}

.fs-dialog.fs-login-dialog .fs-dialog-inner.fs-login-dialog-inner .fs-login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.fs-login-brand {
  text-align: center;
  margin-bottom: 22px;
  padding: 0 28px;
}

.fs-login-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, #38bdf8, #0369a1);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.35);
}

.fs-login-logo svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.fs-login-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.2;
}

.fs-login-sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(186, 198, 216, 0.95);
}

.fs-login-dialog label {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.95);
}

.fs-login-dialog .fs-login-field {
  margin-bottom: 14px;
}

.fs-login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.fs-login-input-wrap .fs-login-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: rgba(148, 163, 184, 0.95);
  pointer-events: none;
}

.fs-login-input-wrap input {
  width: 100%;
  padding: 12px 12px 12px 42px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 8, 20, 0.65);
  font-size: 0.92rem;
  min-height: 46px;
}

.fs-login-input-wrap input::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.fs-login-input-wrap--password input {
  padding-right: 46px;
}

.fs-login-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(186, 198, 216, 0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.fs-login-password-toggle svg {
  grid-area: 1 / 1;
}

.fs-login-password-toggle svg[hidden] {
  display: none !important;
}

.fs-login-password-toggle:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.fs-login-password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45);
}

.fs-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
  flex-wrap: wrap;
}

.fs-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  user-select: none;
}

.fs-login-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #38bdf8;
  cursor: pointer;
}

.fs-login-forgot {
  font-size: 0.86rem;
  font-weight: 600;
  color: #7dd3fc;
  text-decoration: none;
}

.fs-login-forgot:hover {
  text-decoration: underline;
  color: #bae6fd;
}

.fs-login-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  box-shadow: 0 14px 36px rgba(14, 165, 233, 0.35);
}

.fs-login-submit:hover {
  filter: brightness(1.04);
}

.fs-login-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.fs-login-submit svg {
  flex-shrink: 0;
}

.fs-login-dialog .fs-social-auth-divider {
  margin: 16px 0 14px;
}

.fs-login-dialog .fs-social-auth-divider::before {
  background: rgba(148, 163, 184, 0.2);
}

.fs-login-dialog .fs-social-auth-divider span {
  background: rgba(6, 18, 40, 0.92);
  text-transform: none;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.85);
}

.fs-login-dialog .fs-google-signin-mount {
  min-height: 48px;
  justify-content: stretch;
}

.fs-login-dialog .fs-google-signin-mount > div {
  width: 100% !important;
}

.fs-login-role-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.fs-login-role-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 10, 26, 0.55);
  color: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fs-login-role-btn:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(15, 40, 72, 0.65);
  color: #fff;
}

.fs-login-role-btn svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.fs-login-dialog .fs-register-prompt {
  text-align: center;
  margin-top: 18px;
  margin-bottom: 0;
  color: rgba(186, 198, 216, 0.9);
}

.fs-login-dialog .fs-register-link {
  color: #7dd3fc;
  font-weight: 600;
}

.fs-login-dialog #loginStatus {
  margin-top: 14px;
}

.fs-dialog-inner {
  padding: 16px;
}

.fs-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.fs-dialog-title {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fs-dialog[data-result="success"] .fs-dialog-title { color: var(--fs-success); }
.fs-dialog[data-result="error"] .fs-dialog-title { color: var(--fs-danger); }

.fs-dialog-subtitle {
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.84rem;
}

.fs-dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.fs-social-auth {
  margin-top: 10px;
}

.fs-google-signin-mount {
  width: 100%;
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.fs-social-auth-divider {
  position: relative;
  text-align: center;
  margin: 6px 0 10px;
}

.fs-social-auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(148, 163, 184, 0.24);
}

.fs-social-auth-divider span {
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 42, 0.95);
  padding: 0 10px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.fs-google-signin-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.22), rgba(14, 116, 144, 0.22));
  color: rgba(224, 242, 254, 0.98);
  min-height: 42px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.fs-google-signin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(8, 47, 73, 0.35);
  border-color: rgba(56, 189, 248, 0.75);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.3), rgba(14, 116, 144, 0.32));
}

.fs-google-signin-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
}

.fs-google-signin-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fs-google-signin-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.fs-delete-confirm-dialog {
  width: min(420px, calc(100vw - 28px));
  border-color: rgba(248, 113, 113, 0.22);
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.65);
}

.fs-delete-confirm-dialog .fs-dialog-title {
  color: rgba(254, 202, 202, 0.98);
}

.fs-delete-confirm-text {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.92);
  letter-spacing: 0.02em;
}

.fs-delete-confirm-hint {
  margin: 0 0 4px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.fs-delete-confirm-actions {
  margin-top: 18px;
  flex-wrap: wrap;
}

.fs-icon-btn {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.9);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
}

.fs-create-section {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.fs-create-section:last-of-type {
  border-bottom: none;
  margin-bottom: 14px;
}

.fs-create-section-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.fs-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.fs-create-section .fs-create-grid {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .fs-create-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fs-card-vacancy-detail {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}

.fs-vacancy-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 26px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
    linear-gradient(225deg, rgba(52, 211, 153, 0.06) 0%, transparent 50%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

@media (max-width: 720px) {
  .fs-vacancy-head {
    flex-direction: column;
    gap: 16px;
  }
}

.fs-vacancy-head-main {
  flex: 1;
  min-width: 0;
}

.fs-vacancy-title {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #f8fafc;
}

.fs-vacancy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.fs-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: rgba(226, 232, 240, 0.9);
}

.fs-vacancy-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .fs-vacancy-head-right {
    align-items: flex-start;
  }
}

.fs-vacancy-salary {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(52, 211, 153, 0.98);
  text-shadow: 0 0 24px rgba(52, 211, 153, 0.25);
}

.fs-vacancy-status {
  font-size: 0.7rem;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--fs-border);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fs-badge-active {
  border-color: rgba(52, 211, 153, 0.6);
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.2);
}

.fs-badge-inactive {
  border-color: rgba(248, 113, 113, 0.6);
  color: #fecaca;
  background: rgba(185, 28, 28, 0.2);
}

.fs-vacancy-body {
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fs-vacancy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.fs-vacancy-timeline {
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.85);
}

.fs-vacancy-dot {
  color: rgba(148, 163, 184, 0.4);
  font-weight: 600;
  user-select: none;
}

.fs-vacancy-inline {
  white-space: nowrap;
}

.fs-vacancy-vessel-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px 20px;
}

.fs-vacancy-inline-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fs-vacancy-inline-block .fs-vacancy-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.75);
}

.fs-vacancy-inline-block .fs-vacancy-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.95);
}

.fs-vacancy-bottom-row {
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.fs-vacancy-inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.9);
}

/* Company card - own frame */
.fs-vacancy-company-card {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.08) 0%, rgba(167, 139, 250, 0.03) 50%);
}

.fs-vacancy-company-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.95);
  margin-bottom: 12px;
}

.fs-vacancy-company-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fs-vacancy-company-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.98);
  letter-spacing: 0.02em;
}

.fs-vacancy-company-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.fs-vacancy-contact {
  font-size: 0.9rem;
  color: rgba(56, 189, 248, 0.95);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.fs-vacancy-contact:hover {
  color: #7dd3fc;
  border-bottom-color: currentColor;
}

.fs-vacancy-company-address {
  font-size: 0.88rem;
  color: rgba(148, 163, 184, 0.88);
  line-height: 1.5;
}

.fs-vacancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 6px;
}

/* Apply CTA block */
.fs-vacancy-actions {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(52, 211, 153, 0.08) 100%);
}

.fs-vacancy-actions .fs-create-section-title {
  margin-bottom: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.fs-vacancy-actions .fs-button {
  padding: 12px 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.fs-vacancy-actions .fs-button:not(.fs-button-outline):hover {
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
}

.fs-vacancy-apply-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fs-vacancy-section-page .fs-section-head {
  margin-bottom: 18px;
}

.fs-vacancy-section-page .fs-h3 {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.fs-field-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: normal;
}

/* Documents page */
.fs-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  color: rgba(56, 189, 248, 0.98);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.fs-doc-link span {
  opacity: 0.85;
  font-size: 0.9em;
}
.fs-doc-link:hover {
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}
.fs-documents-card {
  padding: 28px 30px;
}

.fs-hosted-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (max-width: 920px) {
  .fs-hosted-layout {
    grid-template-columns: 1fr;
  }
}

.fs-hosted-preview,
.fs-hosted-editor {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.fs-hosted-preview--full,
.fs-hosted-editor--full {
  max-width: 820px;
}

.fs-hosted-empty {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.035);
  padding: 22px;
  max-width: 820px;
}

.fs-hosted-empty h4 {
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.fs-hosted-empty p {
  margin: 0 0 14px;
  color: rgba(148, 163, 184, 0.86);
  font-size: 0.86rem;
}

.fs-hosted-preview-head {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 10px;
}

.fs-hosted-preview-name {
  font-size: 1.14rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.98);
}

.fs-hosted-preview-avatar-wrap {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.fs-hosted-preview-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: rgba(15, 23, 42, 0.55);
  display: none;
}

.fs-hosted-preview-avatar-initials {
  color: rgba(56, 189, 248, 0.98);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fs-hosted-preview-role {
  margin-top: 2px;
  margin-bottom: 12px;
  color: rgba(56, 189, 248, 0.95);
  font-size: 0.86rem;
}

.fs-hosted-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fs-hosted-preview-grid div {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.45);
  padding: 10px;
}

.fs-hosted-preview-grid span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82);
  margin-bottom: 4px;
}

.fs-hosted-preview-grid strong {
  font-size: 0.86rem;
  color: rgba(248, 250, 252, 0.96);
}

.fs-hosted-preview-note {
  margin-top: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.88);
}

.fs-hosted-editor-head h4 {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fs-hosted-editor-head p {
  margin: 4px 0 12px;
  color: rgba(148, 163, 184, 0.86);
  font-size: 0.8rem;
}

.fs-hosted-chip-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fs-hosted-chip {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.45);
  color: rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  cursor: pointer;
}

.fs-hosted-chip.is-selected {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
}
.fs-documents-card .fs-create-section-title {
  margin-bottom: 20px;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.95);
}
/* Document containers: card per category */
.fs-documents-card #documentsTable {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: none;
  background: transparent;
  padding: 0;
}
.fs-documents-card .fs-documents-by-type {
  margin-bottom: 0;
  padding: 20px 22px 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}
.fs-documents-card .fs-documents-by-type::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.7), rgba(167, 139, 250, 0.5));
  border-radius: 4px 0 0 4px;
}
.fs-documents-card .fs-documents-by-type[data-container="travel"]::before {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.65), rgba(56, 189, 248, 0.45));
}
.fs-documents-card .fs-documents-by-type[data-container="license"]::before {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.65), rgba(56, 189, 248, 0.45));
}
.fs-documents-card .fs-documents-by-type[data-container="cv"]::before {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.6), rgba(56, 189, 248, 0.4));
}
.fs-documents-card .fs-documents-type-title {
  margin: 0 0 14px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.96);
  position: relative;
}
.fs-doc-container-hint {
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(148, 163, 184, 0.78);
  margin-left: 2px;
}
.fs-documents-card .fs-documents-by-type .fs-table {
  margin-top: 0;
  font-size: 0.82rem;
}
.fs-documents-card .fs-documents-by-type .fs-table thead {
  background: rgba(255, 255, 255, 0.06);
}
.fs-documents-card .fs-documents-by-type .fs-table th {
  padding: 10px 14px;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.9);
}
.fs-documents-card .fs-documents-by-type .fs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: rgba(226, 232, 240, 0.9);
}
.fs-documents-card .fs-documents-by-type .fs-table tbody tr:last-child td {
  border-bottom: none;
}
.fs-documents-card .fs-documents-by-type .fs-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}
.fs-documents-card .fs-documents-by-type .fs-table tbody tr:nth-child(odd) {
  background: transparent;
}
.fs-documents-card .fs-documents-by-type .fs-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.06);
}
.fs-documents-card .fs-documents-by-type .fs-table tbody tr.fs-doc-row--expiry-expired {
  background: rgba(248, 113, 113, 0.14);
  box-shadow: inset 3px 0 0 0 rgba(248, 113, 113, 0.85);
}
.fs-documents-card .fs-documents-by-type .fs-table tbody tr.fs-doc-row--expiry-critical {
  background: rgba(251, 146, 60, 0.12);
  box-shadow: inset 3px 0 0 0 rgba(251, 146, 60, 0.8);
}
.fs-documents-card .fs-documents-by-type .fs-table tbody tr.fs-doc-row--expiry-warning {
  background: rgba(250, 204, 21, 0.08);
  box-shadow: inset 3px 0 0 0 rgba(250, 204, 21, 0.65);
}
.fs-documents-card .fs-documents-by-type .fs-table tbody tr.fs-doc-row--expiry-expired:hover,
.fs-documents-card .fs-documents-by-type .fs-table tbody tr.fs-doc-row--expiry-critical:hover,
.fs-documents-card .fs-documents-by-type .fs-table tbody tr.fs-doc-row--expiry-warning:hover {
  background: rgba(56, 189, 248, 0.08);
}
.fs-documents-card .fs-documents-by-type .fs-table tbody tr.fs-doc-row--inactive {
  opacity: 0.78;
}
.fs-documents-card .fs-documents-by-type .fs-table tbody tr.fs-doc-row--inactive:hover {
  opacity: 0.92;
}
.fs-doc-status-cell {
  vertical-align: middle;
  white-space: nowrap;
}
.fs-doc-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fs-doc-status-badge--active {
  background: rgba(52, 211, 153, 0.18);
  color: rgba(167, 243, 208, 0.95);
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.fs-doc-status-badge--inactive {
  background: rgba(100, 116, 139, 0.22);
  color: rgba(203, 213, 225, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.32);
}
.fs-doc-expiry {
  vertical-align: top;
}
.fs-doc-expiry-date {
  display: block;
  line-height: 1.35;
}
.fs-doc-expiry-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fs-doc-expiry--expired .fs-doc-expiry-badge {
  background: rgba(248, 113, 113, 0.22);
  color: rgba(254, 202, 202, 0.98);
}
.fs-doc-expiry--expired .fs-doc-expiry-date {
  color: rgba(254, 202, 202, 0.95);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.55);
}
.fs-doc-expiry--critical .fs-doc-expiry-badge {
  background: rgba(251, 146, 60, 0.22);
  color: rgba(254, 215, 170, 0.98);
}
.fs-doc-expiry--critical .fs-doc-expiry-date {
  color: rgba(254, 215, 170, 0.95);
}
.fs-doc-expiry--warning .fs-doc-expiry-badge {
  background: rgba(250, 204, 21, 0.16);
  color: rgba(253, 224, 71, 0.95);
}
.fs-doc-actions-cell {
  white-space: nowrap;
  vertical-align: middle;
}
.fs-documents-card .fs-documents-by-type .fs-table .fs-doc-delete-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}
.fs-doc-upload-limit-hint {
  margin-top: 10px;
  line-height: 1.45;
  max-width: 36rem;
}

.fs-doc-upload-limit-hint[hidden] {
  display: none !important;
}

.fs-doc-upload-limit-hint.fs-doc-upload-limit-hint--at-limit {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.22);
  color: rgba(254, 202, 202, 0.96);
  font-size: 0.86rem;
  font-weight: 500;
  max-width: 100%;
  box-sizing: border-box;
}
.fs-documents-upload {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.fs-upload-card {
  max-width: 440px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.04);
  padding: 22px 22px 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.fs-upload-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(56, 189, 248, 0.95);
  margin-bottom: 14px;
}
.fs-upload-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(226, 232, 240, 0.96);
}
.fs-upload-hint {
  margin: 0 0 18px;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.72);
}
.fs-upload-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.fs-upload-field {
  flex: 1;
  min-width: 120px;
}
.fs-upload-field label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.85);
  margin-bottom: 6px;
}
.fs-upload-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.6);
  color: var(--fs-text);
  font-size: 0.88rem;
}
.fs-upload-field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.6);
  color: var(--fs-text);
  font-size: 0.88rem;
  box-sizing: border-box;
}
.fs-date-picker-wrap {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.fs-date-picker-display {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.6);
  color: var(--fs-text);
  font-size: 0.88rem;
  box-sizing: border-box;
  cursor: pointer;
}
.fs-date-picker-display::placeholder {
  color: rgba(148, 163, 184, 0.55);
}
.fs-date-picker-icon-btn {
  flex-shrink: 0;
  width: 40px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.75);
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.fs-date-picker-icon-btn:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.1);
  color: rgba(226, 232, 240, 0.98);
}
.fs-dialog.fs-date-picker-dialog {
  /* position/top/left set in JS so the panel sits under the expiry field */
  position: fixed;
  width: min(320px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.fs-date-picker-dialog::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}
.fs-date-picker-panel {
  width: min(320px, 92vw);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.14), transparent 55%),
    rgba(15, 23, 42, 0.97);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  padding: 16px 16px 14px;
}
.fs-date-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.fs-date-picker-title {
  flex: 1;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(226, 232, 240, 0.96);
}
.fs-date-picker-body {
  margin-bottom: 14px;
}
.fs-date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
}
.fs-date-picker-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.fs-date-picker-cell {
  aspect-ratio: 1;
  min-height: 36px;
  max-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.fs-date-picker-cell:hover:not(.fs-date-picker-cell--disabled):not(.fs-date-picker-cell--empty) {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.35);
}
.fs-date-picker-cell--selected {
  background: rgba(56, 189, 248, 0.28);
  border-color: rgba(56, 189, 248, 0.55);
  color: #f8fafc;
}
.fs-date-picker-cell--disabled {
  opacity: 0.32;
  cursor: not-allowed;
  background: transparent;
}
.fs-date-picker-cell--empty {
  visibility: hidden;
  pointer-events: none;
}
.fs-date-picker-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.fs-upload-field--narrow {
  flex: 0 1 200px;
  min-width: 160px;
}
.fs-label-optional {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.65);
}
.fs-upload-file-wrap {
  min-width: 0;
  flex: 1 1 160px;
}
.fs-file-input {
  position: relative;
  display: block;
  min-width: 0;
}
.fs-file-input input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.fs-file-input .fs-file-placeholder {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.4);
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.84rem;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fs-file-input:hover .fs-file-placeholder {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.08);
  color: rgba(148, 163, 184, 0.95);
}
.fs-file-input.has-file .fs-file-placeholder {
  border-style: solid;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.12);
  color: var(--fs-text);
}
.fs-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.92), rgba(52, 211, 153, 0.78));
  color: #0b172a;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s;
}
.fs-upload-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}

/* Registration page */
.fs-register-card {
  padding: 28px 28px 24px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 50%),
    rgba(255, 255, 255, 0.03);
}

.fs-register-title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.fs-register-sub {
  margin: 0 0 22px;
  color: var(--fs-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.fs-register-form .fs-field-group {
  margin-bottom: 14px;
}

.fs-register-form .fs-dialog-actions {
  margin-top: 20px;
  margin-bottom: 0;
}

.fs-register-success {
  text-align: center;
  padding: 20px 0;
}

.fs-register-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.25);
  border: 2px solid rgba(52, 211, 153, 0.6);
  color: #86efac;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.fs-register-success h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.fs-register-success p {
  margin: 0 0 20px;
  color: var(--fs-muted);
}

.fs-register-prompt {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--fs-muted);
}
.fs-register-link {
  color: rgba(56, 189, 248, 0.95);
  text-decoration: none;
}
.fs-register-link:hover {
  text-decoration: underline;
}

/* ============================================================
 * Auth page — light maritime (matches login dialog + landing).
 * Used by /register.html. Scoped to `body.fs-auth-page` so it
 * never leaks into portal pages that share styles.css.
 * ============================================================ */

body.fs-auth-page {
  background: #f4f9fd;
  color: #11264a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color-scheme: light;
}

body.fs-auth-page .fs-auth-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 20px 40px;
}

body.fs-auth-page .fs-auth-shell {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.fs-auth-page .fs-auth-intro {
  text-align: center;
  padding: 0 4px;
}

body.fs-auth-page .fs-auth-eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2f7df6;
}

body.fs-auth-page .fs-auth-title {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #11264a;
  line-height: 1.15;
}

body.fs-auth-page .fs-auth-sub {
  margin: 0 auto;
  max-width: 380px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5f7393;
}

body.fs-auth-page .fs-auth-card {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
  border: 1px solid #d9e6f4;
  border-radius: 24px;
  padding: 28px 28px 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 24px 60px rgba(43, 72, 112, 0.10);
}

/* Stepper ---------- */
body.fs-auth-page .fs-auth-stepper {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 22px;
}

body.fs-auth-page .fs-auth-stepper-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8a9db8;
}

body.fs-auth-page .fs-auth-stepper-step::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d9e6f4;
  margin-left: 4px;
}

body.fs-auth-page .fs-auth-stepper-step:last-child::after { display: none; }

body.fs-auth-page .fs-auth-stepper-num {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #d9e6f4;
  background: #ffffff;
  color: #8a9db8;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

body.fs-auth-page .fs-auth-stepper-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.fs-auth-page .fs-auth-stepper-step.is-current .fs-auth-stepper-num {
  background: #2f7df6;
  border-color: #2f7df6;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(47, 125, 246, 0.28);
}
body.fs-auth-page .fs-auth-stepper-step.is-current { color: #11264a; }

body.fs-auth-page .fs-auth-stepper-step.is-done .fs-auth-stepper-num {
  background: #e8f6ff;
  border-color: #9cc7ff;
  color: #2f7df6;
}
body.fs-auth-page .fs-auth-stepper-step.is-done .fs-auth-stepper-num > * { display: none; }
body.fs-auth-page .fs-auth-stepper-step.is-done .fs-auth-stepper-num::before {
  content: "✓";
  font-size: 0.95rem;
  font-weight: 700;
}

/* Step bodies ---------- */
body.fs-auth-page .fs-auth-step-help {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #5f7393;
}

body.fs-auth-page .fs-auth-strong {
  color: #11264a;
  font-weight: 700;
}

/* Fields ---------- */
body.fs-auth-page .fs-auth-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #5f7393;
}

body.fs-auth-page .fs-auth-consent input {
  margin-top: 3px;
  flex: 0 0 auto;
}

body.fs-auth-page .fs-auth-consent a {
  color: #0ea5e9;
}

body.fs-auth-page .fs-auth-field label {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5f7393;
}

body.fs-auth-page .fs-auth-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d7e4f3;
  background: #f8fbff;
  color: #11264a;
  font-family: inherit;
  font-size: 0.95rem;
  min-height: 46px;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

body.fs-auth-page .fs-auth-field input::placeholder { color: #8a9db8; }

body.fs-auth-page .fs-auth-field input:focus {
  outline: none;
  border-color: #9cc7ff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.14);
}

body.fs-auth-page .fs-auth-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d7e4f3;
  background: #f8fbff;
  color: #11264a;
  font-family: inherit;
  font-size: 0.95rem;
  min-height: 46px;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

body.fs-auth-page .fs-auth-field select:focus {
  outline: none;
  border-color: #9cc7ff;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.14);
}

/* Light dropdown list — overrides global dark portal `select option` rules */
body.fs-auth-page select option,
body.fs-auth-page select optgroup,
.fs-dialog.fs-login-dialog select option,
.fs-dialog.fs-login-dialog select optgroup {
  background-color: #ffffff;
  color: #11264a;
}

body.fs-auth-page select option:checked,
.fs-dialog.fs-login-dialog select option:checked {
  background-color: #e8f4ff;
  color: #11264a;
}

body.fs-auth-page .fs-auth-select-wrap {
  position: relative;
  width: 100%;
}

body.fs-auth-page .fs-auth-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -5px;
  border-right: 2px solid #5f7393;
  border-bottom: 2px solid #5f7393;
  transform: rotate(45deg);
  pointer-events: none;
}

body.fs-auth-page .fs-auth-field select,
body.fs-auth-page .fs-auth-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: none;
  color: #11264a;
}

body.fs-auth-page .fs-auth-field select:invalid,
body.fs-auth-page .fs-auth-select:invalid {
  color: #8a9db8;
}

body.fs-auth-page .fs-auth-field input:disabled {
  background: #eef4fb;
  color: #6b7a90;
  cursor: not-allowed;
}

/* International phone: flag + country list on the left, +995… in one field */
.fs-phone-intl {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid #d7e4f3;
  border-radius: 10px;
  background: #f8fbff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.fs-phone-intl.is-focused,
.fs-phone-intl:focus-within {
  border-color: #9cc7ff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.14);
}

.fs-phone-intl__trigger {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #d7e4f3;
  background: #eef4fb;
  cursor: pointer;
  border-radius: 10px 0 0 10px;
  color: #11264a;
}

.fs-phone-intl__trigger:hover {
  background: #e3edf8;
}

.fs-phone-intl__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  line-height: 1;
}

.fs-phone-intl__flag-img,
.fs-phone-intl__option-flag .fs-phone-intl__flag-img {
  display: block;
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(17, 38, 74, 0.12);
}

.fs-phone-intl__flag-fallback {
  font-size: 1.1rem;
  line-height: 1;
}

.fs-phone-intl__caret {
  font-size: 0.65rem;
  color: #5f7393;
  line-height: 1;
}

.fs-phone-intl__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 12px 14px !important;
  font-family: inherit;
  font-size: 0.95rem;
  color: #11264a;
}

.fs-phone-intl__input:focus {
  outline: none;
}

.fs-phone-intl__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid #d7e4f3;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(43, 72, 112, 0.16);
}

.fs-phone-intl__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  color: #11264a;
}

.fs-phone-intl__option:hover,
.fs-phone-intl__option:focus {
  background: #f4f8fd;
  outline: none;
}

.fs-phone-intl__option-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
}

.fs-phone-intl__option-label {
  flex: 1;
  min-width: 0;
}

.fs-phone-intl__option-dial {
  flex-shrink: 0;
  font-weight: 700;
  color: #5f7393;
  font-size: 0.85rem;
}

/* OTP input — wide letter-spacing makes 6 digits readable. */
body.fs-auth-page .fs-auth-otp-input {
  letter-spacing: 0.5em;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding-left: 14px;
}

body.fs-auth-page .fs-auth-otp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 2px 0 14px;
  font-size: 0.82rem;
  color: #5f7393;
}

body.fs-auth-page .fs-auth-otp-countdown {
  font-variant-numeric: tabular-nums;
}
body.fs-auth-page .fs-auth-otp-countdown.is-warning { color: #b45309; }
body.fs-auth-page .fs-auth-otp-countdown.is-expired { color: #b91c1c; font-weight: 600; }

body.fs-auth-page .fs-auth-link-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #2f7df6;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
body.fs-auth-page .fs-auth-link-button:hover { color: #1d6be5; text-decoration: underline; }
body.fs-auth-page .fs-auth-link-button:disabled {
  cursor: not-allowed;
  color: #8a9db8;
  text-decoration: none;
}

/* Actions row + buttons ---------- */
body.fs-auth-page .fs-auth-actions {
  margin-top: 18px;
}
body.fs-auth-page .fs-auth-actions--split {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
body.fs-auth-page .fs-auth-actions--split > * { flex: 1; }

body.fs-auth-page .fs-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border: 1px solid rgba(6, 23, 46, 0.15);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f8fafc;
  cursor: pointer;
  background: linear-gradient(135deg, #06172e 0%, #0c2744 100%);
  box-shadow: 0 12px 28px rgba(43, 72, 112, 0.14);
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}
body.fs-auth-page .fs-auth-submit:hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 32px rgba(43, 72, 112, 0.18);
}
body.fs-auth-page .fs-auth-submit:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4) brightness(0.95);
  box-shadow: none;
}
body.fs-auth-page .fs-auth-submit--inline { width: auto; padding-left: 28px; padding-right: 28px; }

body.fs-auth-page .fs-auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #d9e6f4;
  background: #ffffff;
  color: #11264a;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
body.fs-auth-page .fs-auth-secondary:hover {
  border-color: #9cc7ff;
  color: #2f7df6;
  background: #f8fbff;
}

/* Status pill (re-uses .fs-status global, just tone it for light bg) ---------- */
body.fs-auth-page .fs-status {
  margin-top: 4px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #5f7393;
}
body.fs-auth-page .fs-status.fs-status--error { color: #b91c1c; }
body.fs-auth-page .fs-status.fs-status--success { color: #15803d; }

/* Success view ---------- */
body.fs-auth-page .fs-auth-success {
  text-align: center;
  padding: 16px 0 8px;
}
body.fs-auth-page .fs-auth-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #d1fae5;
  border: 2px solid #34d399;
  color: #047857;
  font-size: 1.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
body.fs-auth-page .fs-auth-success h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #11264a;
}
body.fs-auth-page .fs-auth-success p {
  margin: 0 0 20px;
  color: #5f7393;
}

/* Footnote + footer ---------- */
body.fs-auth-page .fs-auth-footnote {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: #5f7393;
}
body.fs-auth-page .fs-auth-link {
  color: #2f7df6;
  font-weight: 700;
  text-decoration: none;
}
body.fs-auth-page .fs-auth-link:hover { text-decoration: underline; }

body.fs-auth-page .fs-auth-footer {
  padding: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #8a9db8;
}

/* Mobile tightening ---------- */
@media (max-width: 480px) {
  body.fs-auth-page .fs-auth-main { padding: 32px 14px 24px; }
  body.fs-auth-page .fs-auth-title { font-size: 1.6rem; }
  body.fs-auth-page .fs-auth-card { padding: 22px 18px 18px; border-radius: 18px; }
  body.fs-auth-page .fs-auth-stepper-label { display: none; } /* numbers only on small */
  body.fs-auth-page .fs-auth-actions--split { flex-direction: column-reverse; }
}

/* Login dialog — light maritime (overrides legacy dark rules above) */
.fs-dialog.fs-login-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: min(90vh, 680px);
  overflow: auto;
  border: 1px solid #d9e6f4;
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8) inset, 0 20px 50px rgba(43, 72, 112, 0.14);
  color: #11264a;
  color-scheme: light;
  scrollbar-color: #c7d9ef #f4f8fd;
}

.fs-dialog.fs-login-dialog::backdrop {
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.22), transparent 45%),
    radial-gradient(circle at 82% 20%, rgba(167, 139, 250, 0.16), transparent 44%),
    rgba(17, 38, 74, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fs-dialog.fs-login-dialog .fs-dialog-inner.fs-login-dialog-inner {
  padding: 28px 28px 24px;
}

.fs-dialog.fs-login-dialog .fs-auth-step-help {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #5f7393;
}

.fs-dialog.fs-login-dialog .fs-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.fs-dialog.fs-login-dialog .fs-auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #5f7393;
}

.fs-dialog.fs-login-dialog .fs-auth-select-wrap {
  position: relative;
  width: 100%;
}

.fs-dialog.fs-login-dialog .fs-auth-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -5px;
  border-right: 2px solid #5f7393;
  border-bottom: 2px solid #5f7393;
  transform: rotate(45deg);
  pointer-events: none;
}

.fs-dialog.fs-login-dialog .fs-auth-field select,
.fs-dialog.fs-login-dialog .fs-auth-select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border-radius: 10px;
  border: 1px solid #d7e4f3;
  background-color: #f8fbff;
  background-image: none;
  color: #11264a;
  font-family: inherit;
  font-size: 0.95rem;
  min-height: 46px;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.fs-dialog.fs-login-dialog .fs-auth-field select:invalid,
.fs-dialog.fs-login-dialog .fs-auth-select:invalid {
  color: #8a9db8;
}

.fs-dialog.fs-login-dialog .fs-auth-field select:focus,
.fs-dialog.fs-login-dialog .fs-auth-select:focus {
  outline: none;
  border-color: #9cc7ff;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.14);
}

.fs-dialog.fs-login-dialog .fs-auth-actions--split .fs-auth-submit,
.fs-dialog.fs-login-dialog .fs-auth-actions--split .fs-auth-secondary {
  font-size: 0.78rem;
  padding: 12px 10px;
}

/* Role choice is required after sign-in — no dismiss control */
.fs-dialog.fs-role-choice-dialog .fs-login-close {
  display: none;
}

.fs-dialog.fs-login-dialog .fs-login-close,
.fs-dialog.fs-login-dialog .fs-dialog-inner.fs-login-dialog-inner .fs-login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d9e6f4;
  background: #fff;
  color: #5f7393;
}

.fs-dialog.fs-login-dialog .fs-login-close:hover {
  border-color: #9cc7ff;
  color: #2f7df6;
  background: #f8fbff;
}

.fs-login-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fbfdff 0%, #eef4fb 100%);
  border: 1px solid rgba(157, 199, 255, 0.55);
  box-shadow: 0 6px 18px rgba(43, 72, 112, 0.08);
}

.fs-login-logo svg {
  width: 28px;
  height: 28px;
  color: #2f7df6;
}

.fs-login-title {
  color: #11264a;
}

.fs-login-sub {
  color: #5f7393;
}

.fs-login-dialog label {
  color: #5f7393;
}

.fs-login-input-wrap .fs-login-input-icon {
  color: #8a9db8;
}

.fs-login-input-wrap input {
  border: 1px solid #d7e4f3;
  background: #f8fbff;
  color: #11264a;
}

.fs-login-input-wrap input::placeholder {
  color: #8a9db8;
}

.fs-login-input-wrap input:focus {
  outline: none;
  border-color: #9cc7ff;
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.12);
}

.fs-login-password-toggle {
  color: #5f7393;
}

.fs-login-password-toggle:hover {
  color: #2f7df6;
  background: #eef4fb;
}

.fs-login-remember {
  color: #11264a;
}

.fs-login-remember input {
  accent-color: #2f7df6;
}

.fs-login-forgot {
  color: #2f7df6;
}

.fs-login-forgot:hover {
  color: #1d6be5;
}

.fs-login-submit {
  border: 1px solid rgba(6, 23, 46, 0.15);
  border-radius: 999px;
  color: #f8fafc;
  background: linear-gradient(135deg, #06172e 0%, #0c2744 100%);
  box-shadow: 0 10px 24px rgba(43, 72, 112, 0.12);
}

.fs-login-dialog .fs-social-auth-divider::before {
  background: #d8e5f4;
}

.fs-login-dialog .fs-social-auth-divider span {
  background: #f4f8fd;
  color: #5f7393;
}

.fs-login-role-btn {
  border: 1px solid #d9e6f4;
  background: linear-gradient(180deg, #fbfdff, #f6f9ff);
  color: #11264a;
}

.fs-login-role-btn:hover {
  border-color: #9cc7ff;
  background: #fff;
  color: #2f7df6;
}

.fs-login-role-btn svg {
  color: #2f7df6;
  opacity: 1;
}

.fs-login-dialog .fs-register-prompt {
  color: #5f7393;
}

.fs-login-dialog .fs-register-link {
  color: #2f7df6;
}

.fs-login-dialog #loginStatus {
  color: #5f7393;
}

.fs-login-dialog #loginStatus.fs-status--error {
  color: #b91c1c;
}

.fs-login-dialog #loginStatus.fs-status--success {
  color: #15803d;
}
