@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Share+Tech+Mono&family=Sora:wght@500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap");

:root {
  --bg: #070c14;
  --bg-elev: #0d1522;
  --bg-soft: #111b2b;
  --ink: #eef2f7;
  --muted: #8b97a8;
  --line: rgba(198, 210, 224, 0.12);
  --line-strong: rgba(198, 210, 224, 0.22);
  --accent: #a8b4c4;
  --accent-bright: #d7dee8;
  --steel: #6f8fad;
  --ok: #3ecf8e;
  --danger: #e86a73;
  --warn: #d4a017;
  --phosphor: #c6f26d;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Sora", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mil: "Rajdhani", sans-serif;
  --font-mono: "Share Tech Mono", monospace;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(111, 143, 173, 0.14), transparent 55%),
    radial-gradient(900px 500px at 0% 100%, rgba(13, 33, 55, 0.55), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

/* —— Landing hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.92) contrast(1.05);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 12, 20, 0.35) 0%, rgba(7, 12, 20, 0.55) 42%, rgba(7, 12, 20, 0.94) 100%),
    radial-gradient(ellipse at 65% 15%, rgba(111, 143, 173, 0.18), transparent 48%);
  animation: veil-breathe 10s ease-in-out infinite;
}

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.35rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.brand-lockup img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.brand-lockup span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.hero-layout {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 clamp(2.8rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 380px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.hero-copy .brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 11vw, 6.6rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 0 0 0.85rem;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.hero-mark {
  width: clamp(72px, 12vw, 104px);
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  animation: mark-float 5.5s ease-in-out infinite;
}

.tagline {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.login-panel {
  background: rgba(13, 21, 34, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 1.35rem 1.3rem 1.45rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
  animation: rise-in 0.85s ease-out 0.12s both;
}

.login-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.login-head img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.login-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
}

.login-sub {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes veil-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes mark-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.reveal {
  animation: rise-in 0.9s ease-out both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.82rem 1.3rem;
  font-weight: 600;
  font-size: 0.94rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #e8eef6 0%, #c5d0de 100%);
  color: #0a1220;
  box-shadow: 0 10px 28px rgba(180, 198, 220, 0.18);
}

.btn-primary:hover {
  background: #fff;
  color: #0a1220;
}

.btn-ghost {
  background: rgba(7, 12, 20, 0.4);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--accent-bright);
  color: #fff;
}

.btn-danger {
  background: rgba(232, 106, 115, 0.12);
  border-color: rgba(232, 106, 115, 0.45);
  color: #ffb4ba;
}

.btn-danger:hover {
  background: rgba(232, 106, 115, 0.22);
  color: #fff;
  border-color: #e86a73;
}

.btn-tiny {
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
}

.mark {
  display: inline-grid;
  place-items: center;
  line-height: 0;
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.mark-nav {
  width: 34px;
  height: 34px;
}

.mark-xs {
  width: 22px;
  height: 22px;
}

.mark-sm {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.mark-hero {
  position: relative;
  width: clamp(88px, 14vw, 120px);
  height: clamp(88px, 14vw, 120px);
  z-index: 1;
}

.mark-ghost {
  position: absolute;
  inset: -18%;
  opacity: 0.18;
  filter: blur(0.2px);
  animation: mark-pulse 6s ease-in-out infinite;
  z-index: 0;
}

.mark-empty {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  opacity: 0.85;
}

.hero-mark-wrap {
  position: relative;
  width: fit-content;
  margin-bottom: 0.85rem;
}

.logo-wash {
  pointer-events: none;
  position: fixed;
  right: -6%;
  top: 8%;
  width: min(520px, 55vw);
  opacity: 0.07;
  z-index: 0;
  mix-blend-mode: screen;
}

.logo-wash.soft {
  opacity: 0.045;
  top: auto;
  bottom: -8%;
  right: -4%;
}

.logo-wash img {
  width: 100%;
  height: auto;
  filter: grayscale(0.2) brightness(1.4);
}

.landing .hero,
.app-nav,
.shell {
  position: relative;
  z-index: 1;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(168, 180, 196, 0.16);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orbit-a {
  width: 420px;
  height: 420px;
  right: 8%;
  bottom: 12%;
  animation: orbit-spin 28s linear infinite;
}

.orbit-b {
  width: 280px;
  height: 280px;
  right: 14%;
  bottom: 18%;
  border-color: rgba(168, 180, 196, 0.1);
  animation: orbit-spin 18s linear infinite reverse;
}

@keyframes mark-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.16;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.28;
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.card-guild {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0;
  overflow: hidden;
}

.card-main {
  display: block;
  padding: 1.15rem 1.2rem 0.35rem;
  color: inherit;
}

.card-main:hover {
  color: inherit;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 1rem;
}

.card-actions form {
  margin: 0;
}

/* —— App shell —— */
body.app {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(111, 143, 173, 0.1), transparent 50%),
    var(--bg);
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 12, 20, 0.82);
  backdrop-filter: blur(14px);
}

.app-nav-inner {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.9rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.15rem 0 0.35rem;
}

.page-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.45rem 0.55rem 0.45rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 21, 34, 0.7);
}

.user-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.user-chip a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.82rem;
}

.user-chip a:hover {
  border-color: var(--accent-bright);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.card {
  display: block;
  background: linear-gradient(165deg, rgba(17, 27, 43, 0.95), rgba(10, 16, 26, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: rgba(168, 180, 196, 0.45);
  transform: translateY(-2px);
  color: inherit;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.flash {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(13, 21, 34, 0.75);
}

.flash.ok {
  border-color: rgba(62, 207, 142, 0.4);
  background: rgba(62, 207, 142, 0.08);
}

.flash.err {
  border-color: rgba(232, 106, 115, 0.45);
  background: rgba(232, 106, 115, 0.08);
}

.flash-fixed {
  position: fixed;
  top: 4.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(420px, calc(100% - 2rem));
  margin: 0;
}

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem 1.4rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  padding: 0.78rem 0.9rem;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(168, 180, 196, 0.55);
  box-shadow: 0 0 0 3px rgba(111, 143, 173, 0.18);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field-hint {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 1.35rem 0 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.section-title:first-child,
.section-title.first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(168, 180, 196, 0.35);
  color: var(--accent-bright);
  background: rgba(168, 180, 196, 0.08);
}

.empty {
  padding: 2.25rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

.empty p:first-child {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.back-link:hover {
  color: var(--ink);
}

@media (max-width: 840px) {
  .hero-layout {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .login-panel {
    order: -1;
    margin-top: 5.25rem;
  }

  .form-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-head {
    flex-direction: column;
  }

  .app-nav-inner {
    flex-wrap: wrap;
  }
}

/* —— Secure web gate (not a document) —— */
.status-bar {
  position: relative;
  z-index: 6;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 12, 20, 0.88);
  font-family: var(--font-mono, "Share Tech Mono", monospace);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.status-bar-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.status-bar #doc-clock {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.gate-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono, "Share Tech Mono", monospace);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: #9aa8b8;
}

.gate-veil {
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.4) 0%, rgba(5, 7, 10, 0.62) 48%, rgba(5, 7, 10, 0.95) 100%),
    radial-gradient(ellipse at 65% 18%, rgba(111, 143, 173, 0.16), transparent 52%);
}

.gate-login {
  border-radius: 8px;
  border: 1px solid rgba(198, 210, 224, 0.2);
  background: rgba(8, 12, 18, 0.82);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.gate-login::before {
  content: "";
  display: block;
  height: 3px;
  margin: -1.35rem -1.3rem 1.1rem;
  background: linear-gradient(90deg, rgba(168, 180, 196, 0.55), transparent 70%);
}

.mono {
  font-family: var(--font-mono, "Share Tech Mono", monospace);
  font-size: 0.78rem;
}

.ticket-group {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.ticket-group:first-of-type {
  margin-top: 0.75rem;
}

.ticket-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.ticket-group-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ticket-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ticket-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.ticket-table th,
.ticket-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.ticket-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.ticket-table tr:last-child td {
  border-bottom: 0;
}

.ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.transcript-panel {
  margin-bottom: 2rem;
}

.transcript {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: min(70vh, 820px);
  overflow-y: auto;
  padding-right: 0.35rem;
}

.msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.msg-avatar img,
.msg-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.msg-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.msg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.25rem;
}

.msg-meta strong {
  font-size: 0.92rem;
}

.msg-meta time {
  color: var(--muted);
  font-size: 0.72rem;
}

.msg-content {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  font-size: 0.9rem;
}

.msg-embed {
  margin-top: 0.45rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid rgba(168, 180, 196, 0.55);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 6px 6px 0;
  font-size: 0.84rem;
}

.msg-embed-author {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.msg-embed-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.msg-embed-desc {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
}

.msg-embed-field {
  margin-top: 0.45rem;
}

.msg-files {
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

.msg-files li {
  margin-top: 0.35rem;
}

.msg-img {
  margin-top: 0.35rem;
}

.msg-img img {
  max-width: min(100%, 420px);
  max-height: 280px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.transcript-note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
}

.site-nav {
  gap: 1rem;
  flex-wrap: wrap;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
  font-size: 0.84rem;
}

.site-links a {
  color: var(--muted);
}

.site-links a:hover,
.site-links a.is-active {
  color: var(--ink);
}

.hero-layout-solo {
  max-width: min(720px, 100%);
}

.corp-section {
  padding: 4.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(13, 21, 34, 0.35), transparent 40%),
    transparent;
}

.corp-section-alt {
  background:
    linear-gradient(180deg, rgba(17, 27, 43, 0.72), rgba(7, 12, 20, 0.2));
}

.corp-inner {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.corp-inner-narrow {
  width: min(420px, calc(100% - 2.5rem));
}

.corp-section h2 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
}

.corp-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 42rem;
}

.corp-points {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink);
  line-height: 1.7;
}

.apply-form,
.landing-login {
  margin-top: 1.25rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 12, 20, 0.55);
  backdrop-filter: blur(8px);
}

.apply-form textarea,
.apply-form select,
.landing-login select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: inherit;
}

.apply-form textarea {
  resize: vertical;
  min-height: 110px;
}

.user-chip {
  position: relative;
  gap: 0.55rem;
}

.inbox {
  position: relative;
}

.inbox-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-bright);
  cursor: pointer;
}

.inbox-btn:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.inbox-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.inbox-badge.is-hidden {
  display: none;
}

.inbox-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(340px, calc(100vw - 2rem));
  max-height: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0d1522;
  box-shadow: var(--shadow);
  z-index: 40;
}

.inbox-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.inbox-link {
  border: 0;
  background: none;
  color: var(--steel);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}

.inbox-list {
  overflow-y: auto;
  max-height: 320px;
}

.inbox-empty {
  margin: 0;
  padding: 1rem 0.85rem;
  font-size: 0.84rem;
}

.inbox-item {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.inbox-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.inbox-item.is-unread {
  background: rgba(212, 160, 23, 0.08);
}

.inbox-item strong {
  font-size: 0.84rem;
}

.inbox-item span,
.inbox-item time {
  font-size: 0.74rem;
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.lore-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 21, 34, 0.75);
}

.lore-card h2 {
  margin: 0.45rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.lore-class {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
}

.lore-meta {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.75rem;
}

.panel-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: auto;
  margin-left: 1rem;
}

.panel-tabs a {
  padding: 0.35rem 0.7rem;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  border: 1px solid transparent;
}

.panel-tabs a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.panel-tabs a.is-active {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.careers-reqs {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 12, 20, 0.4);
}

.careers-reqs h3,
.form-section h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.apply-form-pro .form-section {
  margin: 0 0 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.apply-form-pro .form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.check-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.check-row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.apply-legal {
  margin: 0.5rem 0 1rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .site-nav .site-links {
    order: 3;
    width: 100%;
  }

  .panel-tabs {
    order: 3;
    margin: 0.35rem 0 0;
    width: 100%;
  }
}

.app.gate .app-nav {
  top: 0;
  position: sticky;
}

.app.gate .shell {
  padding-top: 1.5rem;
}

.gate .site-nav {
  top: 2.4rem;
}

.gate .flash-fixed {
  top: 6.5rem;
}

.notice {
  max-width: 34rem;
  margin: 0 0 1.1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #c5cdd8;
}

.notice-amber {
  border: 1px solid rgba(212, 160, 23, 0.35);
  background: rgba(212, 160, 23, 0.08);
  border-left: 3px solid rgba(212, 160, 23, 0.85);
}

.notice-quiet {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.84rem;
}

.site-foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 12, 0.92);
  padding: 1.5rem 0 1.75rem;
}

.site-foot-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.site-foot-inner.regions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.region-card {
  min-width: 0;
  padding-right: 0.5rem;
}

.region-card + .region-card {
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}

.region-card strong {
  display: block;
  margin-bottom: 0.45rem;
}

.region-desk {
  color: var(--ink);
  opacity: 0.9;
  margin-bottom: 0.35rem !important;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.15rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a.is-active {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.site-foot strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.site-foot p {
  margin: 0.1rem 0;
}

@media (max-width: 840px) {
  .gate .login-panel {
    margin-top: 6rem;
  }

  .site-foot-inner,
  .site-foot-inner.regions {
    grid-template-columns: 1fr;
  }

  .region-card + .region-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1.1rem;
  }
}