:root {
  color-scheme: light;
  --bg: #eaf5ff;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-2: #e7f4ff;
  --ink: #071b35;
  --muted: #64748b;
  --line: rgba(119, 160, 207, 0.28);
  --line-strong: rgba(35, 117, 213, 0.42);
  --teal: #00c8ff;
  --teal-dark: #006ca8;
  --amber: #f1b84b;
  --coral: #f05f7d;
  --blue: #1463ff;
  --green-soft: #e5fbff;
  --amber-soft: #fff4d8;
  --coral-soft: #ffe7ee;
  --blue-soft: #e7efff;
  --shadow: 0 22px 58px rgba(4, 19, 43, 0.22);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 218, 255, 0.26), transparent 32%),
    radial-gradient(circle at 78% 5%, rgba(23, 99, 255, 0.24), transparent 34%),
    linear-gradient(180deg, #eaf7ff 0%, #f8fcff 42%, #f5faff 100%),
    var(--bg);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(4, 20, 46, 0.98), rgba(5, 45, 88, 0.97)),
    #061a35;
  color: #f8fbf8;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dffbff, #9ed4ff);
  color: #06213a;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(0, 214, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.brand strong {
  display: block;
  font-size: 17px;
}

.brand small {
  color: #8fb5d7;
}

.main-nav {
  display: grid;
  gap: 8px;
}

.nav-item,
.action-list button,
.composer-strip button {
  border: 0;
  text-align: left;
}

.nav-item {
  min-height: 46px;
  padding: 0 12px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 11px;
  color: #b6cce2;
  background: transparent;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(72, 158, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 3px 0 0 #26d9ff;
}

.nav-item svg,
.topbar svg,
.primary-button svg,
.secondary-button svg,
.ghost-button svg,
.icon-button svg,
.metric-tile svg,
.action-list svg,
.composer-strip svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.sidebar-status {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(118, 185, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(108, 178, 255, 0.08);
}

.sidebar-status small,
.sidebar-status p {
  color: #9dbddd;
}

.sidebar-status strong {
  display: block;
  margin-top: 3px;
}

.sidebar-status p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.mini-progress {
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(177, 211, 255, 0.15);
}

.mini-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #21d4fd, #b5ff6d);
}

.workspace {
  min-width: 0;
  padding: 20px 28px 36px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0 18px;
  background: rgba(239, 248, 255, 0.82);
  backdrop-filter: blur(18px);
}

.mobile-brand {
  display: none;
}

.global-search,
.inline-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.global-search {
  flex: 1;
  min-width: 180px;
  padding: 0 13px;
  height: 46px;
}

.inline-search {
  margin-left: auto;
  min-width: 280px;
  height: 40px;
  padding: 0 12px;
}

.global-search input,
.inline-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.topbar-actions,
.hero-actions,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.filter-chip {
  border-radius: var(--radius);
  border: 1px solid transparent;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.primary-button {
  padding: 0 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #1177ff, #00bed6);
  border-color: rgba(30, 157, 255, 0.42);
  box-shadow: 0 12px 24px rgba(17, 119, 255, 0.18);
}

.primary-button:hover {
  background: linear-gradient(135deg, #0a61d8, #009eb3);
}

.secondary-button,
.ghost-button {
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.admin-link {
  color: var(--ink);
}

.ghost-button {
  min-height: 36px;
}

.secondary-button:hover,
.ghost-button:hover,
.filter-chip:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.icon-button {
  position: relative;
  width: 40px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.dot {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--coral);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: 560px;
  background:
    radial-gradient(circle at 74% 35%, rgba(0, 216, 255, 0.34), transparent 32%),
    radial-gradient(circle at 38% 0%, rgba(57, 115, 255, 0.24), transparent 36%),
    linear-gradient(125deg, rgba(4, 18, 45, 0.98) 0%, rgba(6, 34, 76, 0.97) 54%, rgba(6, 108, 170, 0.9) 100%),
    #08172a;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(91, 186, 255, 0.24);
}

.hero-copy {
  padding: clamp(28px, 5vw, 56px);
  color: #ffffff;
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  color: var(--teal);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-copy .eyebrow {
  color: #56e7ff;
}

.hero-copy h1,
.view-heading h1 {
  margin: 10px 0 12px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(38px, 5vw, 68px);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #c7dcf0;
  font-size: 17px;
  line-height: 1.7;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.hero-proof span {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(108, 205, 255, 0.28);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dff7ff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.hero-proof svg {
  width: 15px;
  height: 15px;
  color: #54e7ff;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 15, 32, 0.46), rgba(5, 15, 32, 0.02));
}

.hero-visual figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  padding: 14px;
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(5, 15, 32, 0.76);
  backdrop-filter: blur(12px);
}

.hero-visual figcaption strong,
.hero-visual figcaption span {
  display: block;
}

.hero-visual figcaption span {
  margin-top: 4px;
  color: #bfd8ef;
  font-size: 13px;
}

.ai-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}

.ai-stage::before {
  content: "";
  position: absolute;
  inset: 42px 34px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(65, 224, 255, 0.28), rgba(46, 114, 255, 0.08) 48%, transparent 70%);
  filter: blur(4px);
}

#aiCoreCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(115, 209, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 209, 255, 0.22) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(700px) rotateX(62deg) translateY(130px) scale(1.18);
  transform-origin: center bottom;
}

.floating-card,
.ai-orbit-label {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(111, 210, 255, 0.3);
  border-radius: var(--radius);
  color: #f6fbff;
  background: rgba(4, 17, 38, 0.62);
  box-shadow: 0 18px 40px rgba(0, 24, 55, 0.26);
  backdrop-filter: blur(16px);
}

.floating-card {
  min-width: 174px;
  padding: 13px 14px;
  animation: floatCard 5.8s ease-in-out infinite;
}

.floating-card span,
.floating-card strong,
.ai-orbit-label span,
.ai-orbit-label strong {
  display: block;
}

.floating-card span,
.ai-orbit-label span {
  color: #9edfff;
  font-size: 12px;
}

.floating-card strong {
  margin-top: 4px;
  font-size: 15px;
}

.card-a {
  left: 8%;
  top: 18%;
}

.card-b {
  right: 6%;
  top: 32%;
  animation-delay: -1.5s;
}

.card-c {
  left: 16%;
  bottom: 18%;
  animation-delay: -3s;
}

.ai-orbit-label {
  right: 8%;
  bottom: 11%;
  padding: 15px 16px;
}

.ai-orbit-label strong {
  font-size: 20px;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

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

.mission-strip div {
  min-height: 110px;
  padding: 18px;
  border: 1px solid rgba(75, 153, 255, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(230, 244, 255, 0.9)),
    var(--surface);
  box-shadow: 0 16px 38px rgba(26, 70, 125, 0.12);
}

.mission-strip strong,
.mission-strip span {
  display: block;
}

.mission-strip strong {
  color: #0b4da2;
  font-size: 19px;
}

.mission-strip span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.membership-engine {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 16px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgba(45, 141, 255, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 0%, rgba(0, 200, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 246, 255, 0.92));
  box-shadow: 0 18px 44px rgba(26, 86, 156, 0.14);
}

.live-events {
  margin-top: 16px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.event-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.event-card div {
  padding: 12px;
}

.event-card h3,
.event-card p {
  margin: 0;
}

.event-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.event-card button {
  width: 100%;
  margin-top: 10px;
}

.membership-copy h2,
.membership-copy p {
  margin: 0;
}

.membership-copy h2 {
  margin-top: 8px;
  max-width: 760px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.14;
}

.membership-copy p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.price-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.price-stack article {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(58, 139, 235, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  display: grid;
  align-content: space-between;
}

.price-stack span,
.price-stack strong,
.price-stack small {
  display: block;
}

.price-stack span {
  color: var(--muted);
}

.price-stack strong {
  margin-top: 10px;
  font-size: 30px;
  color: #0a49a7;
}

.price-stack small {
  color: var(--muted);
  line-height: 1.45;
}

.featured-price {
  color: #ffffff;
  background: linear-gradient(145deg, #126bff, #00b9dd) !important;
  border-color: rgba(255, 255, 255, 0.36) !important;
  box-shadow: 0 20px 36px rgba(18, 107, 255, 0.24);
}

.featured-price span,
.featured-price strong,
.featured-price small {
  color: #ffffff;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.metric-tile,
.panel,
.side-panel,
.project-detail,
.profile-card,
.course-card,
.post-card,
.project-card,
.talent-card,
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-tile {
  min-height: 142px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  box-shadow: 0 14px 34px rgba(19, 66, 125, 0.09);
}

.metric-tile svg {
  color: var(--blue);
}

.metric-tile span,
.metric-tile small {
  color: var(--muted);
}

.metric-tile strong {
  font-size: 31px;
  line-height: 1;
  color: #071b35;
}

.two-column,
.community-layout,
.project-layout,
.brand-layout,
.ecosystem-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.two-column {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.panel,
.side-panel {
  padding: 18px;
}

.section-heading,
.view-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.section-heading h2,
.view-heading h1,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
}

.section-heading.compact h2 {
  font-size: 18px;
}

.view-heading {
  margin: 8px 0 18px;
}

.view-heading h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.view-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.pathway {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.path-step {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.path-step .step-index {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.path-step.done .step-index {
  background: var(--teal);
}

.path-step strong,
.path-step span {
  display: block;
}

.path-step span,
.path-step small {
  color: var(--muted);
}

.action-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.action-list button,
.composer-strip button {
  width: 100%;
  min-height: 54px;
  padding: 12px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: #fbfcfb;
  border: 1px solid var(--line);
}

.action-list button:hover,
.composer-strip button:hover {
  border-color: var(--teal);
}

.filter-bar {
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-chip {
  padding: 0 13px;
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
}

.filter-chip.active {
  color: var(--teal-dark);
  border-color: rgba(15, 118, 110, 0.35);
  background: var(--green-soft);
}

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

.course-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-poster {
  position: relative;
  height: 176px;
  overflow: hidden;
}

.course-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-type {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 8px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(15, 24, 20, 0.72);
  font-size: 12px;
}

.course-body {
  padding: 14px;
  display: grid;
  gap: 11px;
}

.course-body h3,
.project-card h3,
.post-card h3,
.portfolio-card h3,
.talent-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.course-body p,
.project-card p,
.post-card p,
.portfolio-card p,
.talent-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.meta-row,
.tag-row,
.post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.meta-row span,
.tag-row span,
.status-pill,
.role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: var(--radius);
  color: var(--muted);
  background: #f2f5f2;
  font-size: 12px;
}

.project-layout {
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
}

.project-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.project-card {
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.project-card.active {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.project-card .meta-row {
  margin-top: 12px;
}

.project-detail {
  min-height: 560px;
  padding: 18px;
}

.detail-cover {
  height: 210px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sop-list,
.milestone-list,
.cert-list,
.reward-list {
  display: grid;
  gap: 10px;
}

.sop-list {
  margin-top: 12px;
}

.sop-item,
.milestone-item,
.cert-list div,
.reward-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.sop-item strong,
.sop-item span,
.milestone-item strong,
.milestone-item span,
.cert-list strong,
.cert-list span,
.reward-list strong,
.reward-list span {
  display: block;
}

.sop-item span,
.milestone-item span,
.cert-list span,
.reward-list span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.community-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.composer-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

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

.post-card {
  padding: 16px;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.avatar,
.avatar-sm {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.avatar {
  width: 58px;
  height: 58px;
  font-size: 22px;
}

.avatar-sm {
  width: 36px;
  height: 36px;
}

.post-head strong,
.post-head span {
  display: block;
}

.post-head span {
  color: var(--muted);
  font-size: 13px;
}

.post-image {
  margin-top: 12px;
  height: 220px;
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}

.post-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.post-actions button {
  min-height: 34px;
  border: 0;
  border-radius: var(--radius);
  background: #f3f6f3;
  color: var(--muted);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-actions button.liked {
  color: var(--coral);
  background: var(--coral-soft);
}

.recruit-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.recruit-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.recruit-item strong,
.recruit-item span {
  display: block;
}

.recruit-item span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.brand-layout {
  grid-template-columns: 420px minmax(0, 1fr);
  align-items: start;
}

.profile-card {
  overflow: hidden;
}

.profile-cover {
  height: 150px;
  overflow: hidden;
}

.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-main,
.profile-stats {
  padding: 16px;
}

.profile-main {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
}

.profile-main h2,
.profile-main p {
  margin: 0;
}

.profile-main p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.profile-main .tag-row {
  margin-top: 11px;
}

.profile-stats {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.profile-stats span {
  padding: 10px;
  border-radius: var(--radius);
  background: #f4f7f4;
  color: var(--muted);
  text-align: center;
}

.profile-stats strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.portfolio-card {
  overflow: hidden;
}

.portfolio-card img {
  width: 100%;
  height: 134px;
  object-fit: cover;
}

.portfolio-card div {
  padding: 12px;
}

.wide {
  grid-column: 1 / -1;
}

.talent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.talent-card {
  padding: 14px;
}

.talent-card .avatar-sm {
  margin-bottom: 10px;
}

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

.loop-diagram {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.loop-diagram div {
  min-height: 140px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.loop-diagram svg {
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.loop-diagram span {
  color: var(--muted);
  font-size: 13px;
}

.architecture-code {
  margin: 14px 0 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: var(--radius);
  color: #dff5eb;
  background: #101815;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 24, 21, 0.48);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(16, 24, 21, 0.28);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
}

.modal h2 {
  margin: 0 44px 10px 0;
}

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

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  outline: 0;
  color: var(--ink);
  background: #fbfcfb;
}

.form-grid textarea {
  min-height: 112px;
  resize: vertical;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #fff;
  background: #101815;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

  .sidebar {
    padding: 18px 12px;
  }

  .brand span:not(.brand-mark),
  .nav-item span,
  .sidebar-status {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .metrics-grid,
  .course-grid,
  .talent-grid,
  .mission-strip,
  .membership-engine,
  .price-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-layout,
  .brand-layout,
  .project-layout,
  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 64px;
    z-index: 50;
    padding: 8px;
    display: block;
  }

  .brand {
    display: none;
  }

  .main-nav {
    height: 100%;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
  }

  .nav-item {
    min-height: 48px;
  }

  .workspace {
    padding: 12px 12px 88px;
  }

  .topbar {
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 10px;
  }

  .mobile-brand {
    display: flex;
  }

  .global-search {
    order: 2;
    flex-basis: 100%;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .ai-stage {
    min-height: 430px;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .floating-card {
    min-width: 146px;
  }

  .card-a {
    left: 5%;
    top: 14%;
  }

  .card-b {
    right: 5%;
    top: 36%;
  }

  .card-c {
    left: 5%;
    bottom: 12%;
  }

  .ai-orbit-label {
    right: 5%;
    bottom: 6%;
    max-width: 210px;
  }

  .metrics-grid,
  .mission-strip,
  .membership-engine,
  .price-stack,
  .course-grid,
  .portfolio-grid,
  .talent-grid,
  .ecosystem-grid,
  .loop-diagram,
  .composer-strip {
    grid-template-columns: 1fr;
  }

  .view-heading,
  .section-heading {
    display: grid;
  }

  .inline-search {
    min-width: 100%;
    margin-left: 0;
  }

  .path-step {
    grid-template-columns: 42px 1fr;
  }

  .path-step small {
    grid-column: 2;
  }
}
