:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #101722;
  --panel-2: #141f2d;
  --line: #273246;
  --text: #f4f7fb;
  --muted: #9daabd;
  --accent: #26d3a1;
  --accent-2: #67a8ff;
  --danger: #ff7575;
  --warn: #f6c96f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(38, 211, 161, 0.16), transparent 30rem),
    linear-gradient(145deg, #080a0f 0%, #0c1119 48%, #111827 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(38, 211, 161, 0.45);
  border-radius: 8px;
  background: rgba(38, 211, 161, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.brand small,
.hero-panel span,
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-link,
.ghost,
.primary {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(16, 23, 34, 0.76);
}

.nav-link.active {
  border-color: rgba(38, 211, 161, 0.55);
  background: rgba(38, 211, 161, 0.13);
  color: #dffff4;
}

.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061017;
  font-weight: 800;
}

.ghost:hover,
.nav-link:hover {
  border-color: var(--accent-2);
}

.account-pill {
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: end;
  padding: 46px 0 34px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 5.25rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

h3 {
  margin-bottom: 10px;
}

.hero-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-panel,
.panel,
.skill-card,
.session-card,
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.86);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.hero-panel strong {
  display: block;
  margin: 8px 0 18px;
  font-size: 1.9rem;
}

.hero-panel p,
.muted {
  color: var(--muted);
}

.view {
  padding-bottom: 42px;
}

.hidden {
  display: none !important;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 22px 0 18px;
}

.toolbar,
.two-col {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

.panel {
  padding: 20px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #d8e0ea;
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #0b111a;
  color: var(--text);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(38, 211, 161, 0.14);
}

.auth-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.skill-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.card-top,
.session-top,
.dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.badge,
.status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(103, 168, 255, 0.35);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(103, 168, 255, 0.12);
  color: #cfe2ff;
  font-size: 0.8rem;
}

.badge.request {
  border-color: rgba(246, 201, 111, 0.38);
  background: rgba(246, 201, 111, 0.13);
  color: #ffe7aa;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
}

.profile-mini {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  gap: 14px;
}

.session-card {
  padding: 18px;
}

.session-actions,
.feedback-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.feedback-list {
  display: grid;
}

.feedback-item {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 12px;
  color: #dce6f2;
}

dialog {
  width: min(520px, calc(100% - 28px));
  padding: 20px;
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #101722;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  .topbar,
  .hero,
  .auth-grid,
  .card-grid,
  .toolbar,
  .two-col {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: start;
    overflow-x: auto;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    gap: 12px;
  }

  .nav-link {
    padding: 0 10px;
  }

  h1 {
    font-size: 2.45rem;
  }
}
