/* RoadLink staff consoles — shared chrome */
:root {
  --rl-ink: #0f1419;
  --rl-ink-soft: #3d4654;
  --rl-muted: #687484;
  --rl-line: #e6e9ef;
  --rl-line-strong: #d5dae3;
  --rl-bg: #f4f6f8;
  --rl-panel: #ffffff;
  --rl-nav: #0c0f13;
  --rl-nav-elevated: #151a21;
  --rl-accent: #ff5a00;
  --rl-accent-deep: #e04d00;
  --rl-accent-soft: #fff4ee;
  --rl-ok: #0d7a4f;
  --rl-warn: #b45309;
  --rl-bad: #c81e1e;
  --rl-info: #1d4ed8;
  --rl-radius: 12px;
  --rl-radius-sm: 8px;
  --rl-shadow: 0 1px 2px rgba(15, 20, 25, 0.04), 0 8px 24px rgba(15, 20, 25, 0.06);
  --rl-shadow-lg: 0 24px 64px rgba(8, 10, 14, 0.28);
  --rl-font: "DM Sans", system-ui, -apple-system, sans-serif;
  --rl-display: Outfit, "DM Sans", system-ui, sans-serif;
}

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

.rl-auth-body {
  margin: 0;
  min-height: 100%;
  font-family: var(--rl-font);
  color: var(--rl-ink);
  -webkit-font-smoothing: antialiased;
  background: var(--rl-bg);
}

.rl-auth-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 90% 55% at 50% -20%, rgba(255, 90, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(29, 78, 216, 0.08), transparent 50%),
    linear-gradient(165deg, #0a0c10 0%, #141820 48%, #0c0f13 100%);
  color: #f4f6f8;
}

.rl-auth-card {
  width: min(420px, 100%);
  background: var(--rl-panel);
  color: var(--rl-ink);
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: var(--rl-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rl-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  text-decoration: none;
  color: inherit;
}

.rl-auth-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}

.rl-auth-brand span {
  font-family: var(--rl-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.rl-auth-card h1 {
  font-family: var(--rl-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  line-height: 1.2;
}

.rl-auth-card .rl-lead {
  margin: 0 0 22px;
  color: var(--rl-muted);
  font-size: 14px;
  line-height: 1.5;
}

.rl-auth-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rl-muted);
  margin: 0 0 6px;
}

.rl-auth-card .rl-field {
  margin-bottom: 14px;
}

.rl-auth-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius-sm);
  background: #fafbfc;
  font: inherit;
  color: var(--rl-ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.rl-auth-card input:hover {
  border-color: var(--rl-line-strong);
}

.rl-auth-card input:focus {
  outline: none;
  background: #fff;
  border-color: var(--rl-accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.15);
}

.rl-auth-card .rl-btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 13px 16px;
  border: none;
  border-radius: var(--rl-radius-sm);
  background: var(--rl-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.rl-auth-card .rl-btn-primary:hover {
  background: var(--rl-accent-deep);
}

.rl-auth-card .rl-btn-primary:active {
  transform: translateY(1px);
}

.rl-auth-card .rl-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.rl-auth-hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--rl-muted);
  line-height: 1.45;
}

.rl-err {
  color: var(--rl-bad);
  font-size: 13px;
  margin-top: 12px;
  min-height: 1.2em;
}

/* Hub shell */
.rl-hub-top {
  background: var(--rl-nav);
  color: #f4f6f8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rl-hub-top-inner {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding: 16px max(22px, env(safe-area-inset-left)) 16px max(22px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rl-hub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.rl-hub-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}

.rl-hub-brand-text {
  min-width: 0;
}

.rl-hub-brand-text .title {
  font-family: var(--rl-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.rl-hub-brand-text .who {
  font-size: 12px;
  color: rgba(244, 246, 248, 0.62);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(420px, 70vw);
}

.rl-hub-brand-text .who b {
  color: #fff;
  font-weight: 600;
}

.rl-btn-ghost {
  font: inherit;
  cursor: pointer;
  border-radius: var(--rl-radius-sm);
  padding: 9px 14px;
  background: transparent;
  color: rgba(244, 246, 248, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.rl-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.rl-hub-main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 32px max(20px, env(safe-area-inset-left)) 56px max(20px, env(safe-area-inset-right));
}

.rl-hub-intro h1 {
  font-family: var(--rl-display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  color: var(--rl-ink);
}

.rl-hub-intro p {
  margin: 0 0 28px;
  color: var(--rl-muted);
  max-width: 52ch;
  line-height: 1.55;
  font-size: 15px;
}

.rl-mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

@media (min-width: 1024px) {
  .rl-mod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rl-mod {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  background: var(--rl-panel);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius);
  padding: 20px 18px 18px;
  box-shadow: var(--rl-shadow);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
  min-height: 128px;
}

.rl-mod:hover {
  border-color: rgba(255, 90, 0, 0.45);
  box-shadow: 0 4px 20px rgba(255, 90, 0, 0.08), var(--rl-shadow);
  transform: translateY(-2px);
}

.rl-mod:focus-visible {
  outline: 2px solid var(--rl-accent);
  outline-offset: 2px;
}

.rl-mod-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rl-accent);
}

.rl-mod h2 {
  font-family: var(--rl-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  padding-right: 28px;
}

.rl-mod p {
  margin: 0;
  font-size: 13px;
  color: var(--rl-muted);
  line-height: 1.5;
  flex: 1;
}

.rl-mod-arrow {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rl-accent-soft);
  color: var(--rl-accent-deep);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}

.rl-mod:hover .rl-mod-arrow {
  background: var(--rl-accent);
  color: #fff;
}

.rl-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rl-line);
}

.rl-section h2 {
  font-family: var(--rl-display);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rl-muted);
}

.rl-panel {
  background: var(--rl-panel);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius);
  padding: 18px 18px 16px;
  box-shadow: var(--rl-shadow);
}

.rl-panel .rl-status {
  font-size: 13px;
  color: var(--rl-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.rl-form-stack {
  display: grid;
  gap: 10px;
  max-width: 380px;
}

.rl-form-stack input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius-sm);
  background: #fafbfc;
  font: inherit;
}

.rl-form-stack input:focus {
  outline: none;
  border-color: var(--rl-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.12);
}

.rl-btn {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--rl-radius-sm);
  padding: 11px 16px;
  background: var(--rl-accent);
  color: #fff;
  font-weight: 600;
  width: fit-content;
  transition: background 0.15s;
}

.rl-btn:hover {
  background: var(--rl-accent-deep);
}

.rl-role-list {
  display: grid;
  gap: 8px;
}

.rl-role-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 12px;
  font-size: 13px;
  padding: 12px 14px;
  background: var(--rl-panel);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius-sm);
  align-items: start;
}

.rl-role-row b {
  font-family: var(--rl-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rl-role-row span {
  color: var(--rl-ink-soft);
  line-height: 1.45;
}

@media (max-width: 560px) {
  .rl-role-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.hidden {
  display: none !important;
}
