:root {
  --bg: #edf3fb;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-soft: #f4f8fe;
  --surface-muted: #ebf2fb;
  --sidebar: #0c4ea3;
  --sidebar-dark: #082f69;
  --sidebar-line: rgba(255, 255, 255, 0.14);
  --text: #1d2940;
  --muted: #647793;
  --line: rgba(203, 217, 237, 0.9);
  --shadow: 0 18px 45px rgba(24, 42, 71, 0.09);
  --blue: #2776e7;
  --orange: #ff9a3d;
  --navy: #162034;
  --green: #18b97a;
  --gold: #ffbe3d;
  --cyan: #69d3ff;
  --violet: #8396ff;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(105, 211, 255, 0.18), transparent 22%),
    radial-gradient(circle at top right, rgba(131, 150, 255, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(39, 118, 231, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(140, 170, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 220, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 95%);
}

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

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
}

.sidebar {
  height: 100vh;
  overflow-y: auto;
  background:
    radial-gradient(circle at top left, rgba(105, 211, 255, 0.16), transparent 26%),
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-dark) 100%);
  color: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(4, 35, 77, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px 30px;
  border-bottom: 1px solid var(--sidebar-line);
}

.brand-mark {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(235, 244, 255, 0.92) 100%);
  color: var(--sidebar);
  font-size: 1.8rem;
  box-shadow:
    inset 0 0 0 1px rgba(20, 82, 162, 0.08),
    0 10px 24px rgba(7, 34, 82, 0.18);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.nav-section {
  padding: 22px 8px 0;
}

.nav-label {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(60, 120, 232, 0.95) 0%, rgba(38, 97, 205, 0.92) 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(6, 29, 81, 0.18);
}

.nav-item.external::after {
  content: "↗";
  opacity: 0.8;
}

.nav-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px 12px 8px;
  border-top: 1px solid var(--sidebar-line);
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #59e28c;
  box-shadow: 0 0 0 6px rgba(89, 226, 140, 0.18);
}

.main-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 38px 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.brand-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.brand-headline-primary {
  background: linear-gradient(135deg, #0d63d6 0%, #29a4ff 55%, #7f8dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-headline-secondary {
  color: #8a95ab;
  font-weight: 700;
}

.topbar p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.topbar-subtitle {
  margin: 12px 0 0;
  color: #7c8aa3;
  font-size: 1.02rem;
  font-weight: 500;
}

.profile-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.profile-text strong {
  font-size: 1rem;
}

.profile-text span {
  color: var(--muted);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2f7de0, #4da1ff);
  color: #fff;
  font-weight: 800;
}

.content {
  padding: 38px;
  display: grid;
  gap: 28px;
}

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

.metric-card,
.deadline-card,
.panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(219, 228, 240, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.metric-card {
  padding: 30px;
  min-height: 210px;
  background:
    radial-gradient(circle at top right, rgba(105, 211, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 251, 255, 0.88) 100%);
}

.metric-label {
  margin: 0 0 12px;
  color: #6c7b97;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.84rem;
  font-weight: 800;
}

.metric-label.inverse {
  color: rgba(255, 255, 255, 0.8);
}

.metric-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.metric-row strong,
.deadline-main {
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1;
  font-weight: 800;
}

.metric-row span {
  font-size: 1.1rem;
  color: var(--muted);
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.metric-chip.positive {
  color: #0c9b66;
  background: #e9faf2;
}

.metric-chip.warning {
  color: #c97806;
  background: #fff4df;
}

.deadline-card {
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(160deg, #1d2638 0%, #111a29 100%);
  color: #fff;
  min-height: 210px;
}

.deadline-copy {
  margin: 8px 0 24px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1.15rem;
}

.deadline-button {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 1fr);
  gap: 28px;
}

.transport-panel {
  display: grid;
  gap: 24px;
}

.subject-panel {
  display: grid;
  gap: 24px;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill.neutral {
  background: #eef3fb;
  color: #5d6f8f;
}

.status-pill.good {
  background: #eaf8f0;
  color: #138a5a;
}

.status-pill.warning {
  background: #fff5df;
  color: #b66d00;
}

.status-pill.disruption {
  background: #ffe9e7;
  color: #c04335;
}

.transport-refresh {
  border: 1px solid #d8e3f2;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.transport-refresh:hover {
  transform: translateY(-1px);
  border-color: #bfd3ef;
  box-shadow: 0 10px 18px rgba(39, 118, 231, 0.1);
}

.transport-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
}

.subject-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
}

.transport-summary-card,
.transport-result-card {
  min-height: 220px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid #e1e9f4;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.transport-summary-card {
  background:
    radial-gradient(circle at top right, rgba(46, 125, 224, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.transport-summary-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transport-label {
  color: #6c7b97;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  font-weight: 800;
}

.transport-summary-main {
  margin-top: 22px;
  font-size: 1.9rem;
  line-height: 1.15;
  font-weight: 800;
}

.transport-summary-copy {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.transport-meta {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  color: #60708c;
  font-size: 0.95rem;
  font-weight: 600;
}

.transport-result-card {
  display: grid;
  gap: 16px;
}

.transport-report-shell {
  display: grid;
  gap: 16px;
}

.transport-banner {
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 800;
}

.transport-banner.normal {
  background: #eaf8f0;
  color: #138a5a;
}

.transport-banner.good {
  background: #eaf8f0;
  color: #138a5a;
}

.transport-banner.warning {
  background: #fff5df;
  color: #b66d00;
}

.transport-banner.disruption {
  background: #ffe9e7;
  color: #c04335;
}

.transport-summary-line {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f5f8fc;
  color: var(--text);
  line-height: 1.7;
}

.transport-issues {
  display: grid;
  gap: 14px;
}

.transport-issue {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #e2eaf4;
  background: #fff;
}

.transport-issue h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.transport-issue p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.panel {
  padding: 28px;
  scroll-margin-top: 28px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.panel-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.activity-list {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.activity-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface-soft);
  border-radius: var(--radius-md);
}

.activity-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.2rem;
}

.activity-icon.success {
  color: #2a71ff;
  background: #dde9ff;
}

.activity-icon.alert {
  color: #d98505;
  background: #fff1cc;
}

.activity-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-copy strong {
  font-size: 1rem;
}

.activity-copy span,
.activity-item time {
  color: var(--muted);
}

.quick-links {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.quick-link-card {
  padding: 24px 18px;
  min-height: 164px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(105, 211, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f0f6ff 100%);
  border: 1px solid #e3eaf4;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quick-link-card:hover {
  transform: translateY(-4px);
  border-color: #cbd8ea;
  box-shadow: 0 16px 30px rgba(46, 125, 224, 0.12);
}

.quick-link-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.7rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(219, 228, 240, 0.7);
}

.quick-link-icon.blue {
  color: var(--blue);
}

.quick-link-icon.orange {
  color: var(--orange);
}

.quick-link-card strong {
  font-size: 1.25rem;
}

.quick-link-card span {
  max-width: 22ch;
  color: var(--muted);
  line-height: 1.5;
}

.scout-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 100%;
}

.scout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scout-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf5ff;
  color: #346ed6;
  font-size: 0.9rem;
  font-weight: 700;
}

.scout-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.scout-action {
  justify-self: start;
  align-self: end;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #17233a 0%, #22365d 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.scout-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(29, 38, 56, 0.18);
}

.search-panel {
  padding: 28px;
}

.split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.status-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(237, 245, 255, 0.92);
  color: #346ed6;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(202, 220, 247, 0.85);
}

.search-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
}

.search-form {
  display: grid;
  gap: 18px;
  align-content: start;
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(249, 252, 255, 0.92);
  padding: 13px 15px;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #74a6ec;
  box-shadow: 0 0 0 4px rgba(46, 125, 224, 0.12);
  transform: translateY(-1px);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

button[type="submit"] {
  border: 0;
  border-radius: 999px;
  width: fit-content;
  min-width: 170px;
  max-width: 100%;
  justify-self: start;
  padding: 11px 18px;
  background: linear-gradient(135deg, #1658b4 0%, #0f67c1 54%, #23a3ff 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 101, 187, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

#career-cv-analyze-button {
  border: 0;
  border-radius: 999px;
  width: fit-content;
  min-width: 170px;
  max-width: 100%;
  justify-self: start;
  padding: 11px 18px;
  background: linear-gradient(135deg, #1658b4 0%, #0f67c1 54%, #23a3ff 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 101, 187, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 101, 187, 0.26);
}

#career-cv-analyze-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 101, 187, 0.26);
}

button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.75;
}

#career-cv-analyze-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.result-card {
  min-height: 420px;
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(131, 150, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e2eaf4;
  overflow-wrap: anywhere;
}

.result-card.empty {
  display: grid;
  place-items: center;
}

.subject-shell {
  display: grid;
  gap: 18px;
}

.subject-hero {
  padding: 20px 22px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(24, 185, 122, 0.08), transparent 28%),
    linear-gradient(180deg, #f7fffb 0%, #eefbf5 100%);
  border: 1px solid #d9f1e4;
}

.subject-hero h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.subject-hero p,
.subject-field p,
.subject-resources p {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
}

.subject-tips-grid {
  display: grid;
  gap: 14px;
}

.subject-tip-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #e1e9f4;
  background:
    radial-gradient(circle at top right, rgba(105, 211, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.subject-tip-card h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.subject-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.subject-field strong,
.subject-resources strong {
  font-size: 0.92rem;
  color: #5a6c8b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.subject-resources {
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff9eb;
  border: 1px solid #fde5b0;
}

.placeholder {
  max-width: 36ch;
  margin: 0;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

.result-card h1,
.result-card h2,
.result-card h3 {
  margin-top: 0;
}

.result-card p,
.result-card li {
  line-height: 1.7;
}

.result-card ul,
.result-card ol {
  padding-left: 20px;
}

.result-card a {
  color: var(--blue);
  font-weight: 600;
}

.results-shell {
  display: grid;
  gap: 18px;
}

.result-overview {
  padding: 20px 22px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(46, 125, 224, 0.1), transparent 28%),
    linear-gradient(180deg, #f4f8ff 0%, #edf5ff 100%);
  border: 1px solid #dbe8fb;
}

.result-overview h3,
.result-notes h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4f6992;
}

.result-overview p,
.result-notes p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.events-grid {
  display: grid;
  gap: 16px;
}

.event-card {
  padding: 22px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(105, 211, 255, 0.07), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e1e9f4;
  box-shadow: 0 10px 22px rgba(34, 48, 74, 0.05);
}

.event-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.event-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  max-width: 26ch;
}

.event-index {
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #edf5ff;
  color: #346ed6;
  font-weight: 800;
}

.event-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f5f8fc;
  border: 1px solid #e2eaf4;
  color: #5f7190;
  font-size: 0.9rem;
  font-weight: 700;
}

.event-meta span:last-child {
  background: #eef6ff;
  color: #346ed6;
  border-color: #d6e7ff;
}

.event-body {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.event-field {
  display: grid;
  gap: 6px;
}

.event-field strong {
  font-size: 0.92rem;
  color: #5a6c8b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-field div {
  color: var(--text);
  line-height: 1.65;
}

.event-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1559b5 0%, #1280d8 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.event-link:link,
.event-link:visited,
.event-link:hover,
.event-link:active,
.result-card .event-link {
  color: #ffffff;
}

.event-link[href=""] {
  pointer-events: none;
  background: #d7e2f1;
  color: #7a8aa6;
}

.career-card {
  display: grid;
  gap: 16px;
}

.career-score {
  min-width: 86px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #edf5ff;
  text-align: center;
}

.career-score span {
  display: block;
  color: #5f7190;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.career-score strong {
  display: block;
  margin-top: 6px;
  color: #1f5fca;
  font-size: 1.2rem;
}

.career-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.career-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0f6ff;
  border: 1px solid #d8e7fb;
  color: #346ed6;
  font-size: 0.88rem;
  font-weight: 700;
}

.result-notes {
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff9eb;
  border: 1px solid #fde5b0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #edf5ff;
  color: #346ed6;
  font-size: 0.88rem;
  font-weight: 700;
}

.status-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f8cff;
  box-shadow: 0 0 0 6px rgba(63, 140, 255, 0.14);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #1658b4 0%, #0f67c1 54%, #23a3ff 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(15, 101, 187, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(15, 101, 187, 0.28);
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .hero-grid,
  .dashboard-grid,
  .transport-layout,
  .subject-layout,
  .scout-grid,
  .search-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sidebar {
    height: auto;
    overflow: visible;
    padding-bottom: 20px;
  }

  .main-shell,
  body {
    height: auto;
    overflow: auto;
  }

  .topbar,
  .content {
    padding: 22px;
  }

  .split,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  button[type="submit"] {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .quick-links,
  .field-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .activity-item {
    grid-template-columns: 52px 1fr;
  }

  .activity-item time {
    grid-column: 2;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}
