:root {
  --bg: #05070d;
  --bg-2: #080d16;
  --panel: rgba(13, 23, 38, .74);
  --line: rgba(99, 231, 255, .22);
  --text: #eef7ff;
  --muted: #8da3b8;
  --cyan: #5ee7ff;
  --blue: #4e8cff;
  --violet: #9f7bff;
  --green: #69ffc1;
  --danger: #ff6b8a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(94, 231, 255, .16), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(159, 123, 255, .14), transparent 30%),
    linear-gradient(135deg, #05070d, #090f19 48%, #06121a);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 14, .82);
  backdrop-filter: blur(18px);
}
.brand, .auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand img, .auth-brand img { width: 38px; height: 38px; object-fit: contain; filter: invert(1) brightness(1.5) drop-shadow(0 0 14px rgba(94,231,255,.28)); }
.main-nav { display: flex; justify-content: center; gap: 20px; color: var(--muted); font-size: 14px; }
.main-nav a:hover, .ghost-link:hover, .text-link:hover { color: var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mini-search input, input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(4, 10, 18, .8);
  padding: 11px 12px;
  outline: none;
}
.mini-search input { width: 120px; padding: 8px 10px; }
textarea { min-height: 130px; resize: vertical; }
.ghost-link, .solid-link, .primary-button, .secondary-button, .inline-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.03);
  cursor: pointer;
}
.solid-link, .primary-button {
  border-color: rgba(94, 231, 255, .58);
  color: #021014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 800;
}
.secondary-button { background: rgba(78, 140, 255, .14); }
.inline-form { margin: 0; }
.inline-form button { color: var(--muted); }
.flash {
  position: fixed;
  top: 78px;
  right: 28px;
  z-index: 50;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 18, 30, .96);
  box-shadow: 0 16px 60px rgba(0,0,0,.35);
}
.flash.warn { border-color: rgba(255, 107, 138, .5); color: #ffd7df; }
.home-hero {
  position: relative;
  min-height: calc(100vh - 67px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(46px, 5vw, 76px) 5vw 0;
  background: #02050b;
}
.home-video, .hero-showreel, .mdp-canvas, .hero-shade, .scanlines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-video { opacity: .22; }
.hero-showreel {
  z-index: 0;
  opacity: .86;
  filter: saturate(1.18) contrast(1.12);
}
.mdp-canvas {
  z-index: 1;
  opacity: .62;
  mix-blend-mode: screen;
}
.hero-shade {
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 45%, rgba(94,231,255,.16), transparent 34%),
    linear-gradient(90deg, rgba(2,5,11,.98) 0%, rgba(2,5,11,.72) 36%, rgba(2,5,11,.18) 68%, rgba(2,5,11,.72) 100%),
    linear-gradient(0deg, rgba(2,5,11,.92) 0%, transparent 28%, rgba(2,5,11,.44) 100%);
}
.scanlines {
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(94,231,255,.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(94,231,255,.08) 1px, transparent 1px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.035), rgba(255,255,255,.035) 1px, transparent 1px, transparent 5px);
  background-size: 88px 88px, 88px 88px, auto;
  mix-blend-mode: screen;
  opacity: .72;
}
.home-frame {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}
.showcase-shell {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(28px, 5vw, 86px);
  align-items: center;
  min-height: calc(100vh - 280px);
}
.showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 920px;
  padding-top: clamp(12px, 3vh, 42px);
}
.showcase-copy h1 {
  margin-bottom: 22px;
  font-size: clamp(70px, 10.6vw, 172px);
  line-height: .8;
  letter-spacing: 0;
  text-shadow: 0 0 52px rgba(94,231,255,.26), 0 14px 70px rgba(0,0,0,.58);
}
.showcase-copy h1 span {
  font-size: clamp(42px, 6.2vw, 102px);
  color: #dff9ff;
}
.hero-signal {
  position: relative;
  justify-self: end;
  width: min(390px, 100%);
  padding: 22px;
  border: 1px solid rgba(94,231,255,.3);
  border-radius: 8px;
  background: rgba(3, 10, 18, .5);
  box-shadow: 0 24px 90px rgba(0,0,0,.34), inset 0 0 80px rgba(94,231,255,.07);
  backdrop-filter: blur(14px);
}
.hero-signal:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(94,231,255,.12), transparent 42%, rgba(105,255,193,.1));
  pointer-events: none;
}
.signal-title {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  color: var(--cyan);
  font-weight: 900;
}
.signal-title b {
  color: var(--green);
  font-size: 12px;
  text-align: right;
}
.hero-signal p {
  position: relative;
  margin-bottom: 14px;
  color: #e9fbff;
  font-size: 20px;
  font-weight: 900;
}
.hero-signal ul {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-signal li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(94,231,255,.18);
}
.hero-signal li span {
  color: #eef8ff;
  font-weight: 800;
}
.hero-signal li b {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.portfolio-index {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(24px, 4vh, 48px);
  border-top: 1px solid rgba(94,231,255,.24);
  border-left: 1px solid rgba(94,231,255,.24);
  background: rgba(3, 9, 16, .58);
  backdrop-filter: blur(12px);
}
.portfolio-index a {
  min-height: 116px;
  min-width: 0;
  padding: 16px 14px;
  border-right: 1px solid rgba(94,231,255,.24);
  border-bottom: 1px solid rgba(94,231,255,.24);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.portfolio-index a:hover {
  color: #041014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  transform: translateY(-4px);
}
.portfolio-index span,
.portfolio-index em {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  font-style: normal;
}
.portfolio-index a:hover span,
.portfolio-index a:hover em { color: rgba(2,16,20,.72); }
.portfolio-index strong {
  display: block;
  margin: 16px 0 8px;
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.2;
}
.portfolio-index em {
  color: var(--muted);
  line-height: 1.4;
}
.hero-core {
  position: relative;
  max-width: 880px;
}
.boot-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(94,231,255,.34);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(7, 18, 31, .68);
  box-shadow: 0 0 36px rgba(94,231,255,.08);
}
.boot-strip span { font-size: 12px; font-weight: 800; }
.boot-strip b {
  padding: 3px 7px;
  border-radius: 8px;
  color: #021014;
  background: var(--green);
  font-size: 11px;
}
.hero-logo { width: 104px; height: 104px; object-fit: contain; margin-bottom: 20px; filter: invert(1) brightness(1.5) drop-shadow(0 0 30px rgba(94,231,255,.48)); }
.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, h4, p { margin-top: 0; }
.hero-core h1 {
  max-width: 980px;
  margin-bottom: 12px;
  font-size: clamp(50px, 8vw, 112px);
  line-height: .98;
  letter-spacing: 0;
  text-shadow: 0 0 38px rgba(94,231,255,.26);
}
.hero-core h1 small {
  display: block;
  margin-top: 8px;
  color: #d7f9ff;
  font-size: clamp(30px, 4.8vw, 70px);
}
.hero-subtitle { max-width: 780px; font-size: clamp(22px, 3vw, 34px); color: #d7f9ff; margin-bottom: 12px; line-height: 1.35; }
.hero-copy { max-width: 660px; color: var(--muted); font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.quick-tags span {
  padding: 8px 10px;
  border: 1px solid rgba(94,231,255,.24);
  border-radius: 8px;
  color: #c7f7ff;
  background: rgba(94,231,255,.07);
}
.hero-console {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(94,231,255,.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(7,18,31,.86), rgba(4,9,16,.62)),
    repeating-linear-gradient(90deg, rgba(94,231,255,.05), rgba(94,231,255,.05) 1px, transparent 1px, transparent 42px);
  box-shadow: 0 26px 90px rgba(0,0,0,.34), inset 0 0 70px rgba(94,231,255,.07);
  overflow: hidden;
}
.hero-console:before,
.hero-console:after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(94,231,255,.14);
  border-radius: 8px;
  pointer-events: none;
}
.hero-console:after {
  inset: auto 18px 18px 18px;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(94,231,255,.07));
}
.console-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(94,231,255,.18);
}
.console-top span { color: var(--muted); font-size: 12px; font-weight: 800; }
.console-top b { color: var(--green); font-size: 12px; }
.radar-panel {
  position: relative;
  width: min(390px, 82%);
  aspect-ratio: 1;
  margin: 42px auto 28px;
}
.radar-grid,
.radar-ring,
.radar-logo,
.radar-dot { position: absolute; }
.radar-grid {
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(rgba(94,231,255,.12), rgba(94,231,255,.12)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(94,231,255,.12), rgba(94,231,255,.12)) 0 50% / 100% 1px no-repeat;
}
.radar-ring {
  inset: 8%;
  border: 1px solid rgba(94,231,255,.38);
  border-radius: 50%;
  animation: radarSpin 18s linear infinite;
}
.ring-b { inset: 22%; border-style: dashed; animation-duration: 14s; animation-direction: reverse; }
.ring-c { inset: 36%; border-color: rgba(105,255,193,.36); animation-duration: 10s; }
.radar-logo {
  inset: 39%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94,231,255,.35);
  border-radius: 50%;
  background: rgba(5, 11, 20, .88);
  box-shadow: 0 0 36px rgba(94,231,255,.18);
}
.radar-logo img { width: 64%; height: 64%; object-fit: contain; filter: invert(1) brightness(1.35); }
.radar-dot {
  min-width: 54px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94,231,255,.44);
  border-radius: 8px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  background: rgba(5, 13, 23, .86);
  box-shadow: 0 0 24px rgba(94,231,255,.12);
}
.dot-ui { left: 8%; top: 17%; }
.dot-code { right: 5%; top: 26%; }
.dot-ops { left: 4%; bottom: 23%; }
.dot-bi { right: 13%; bottom: 13%; }
.dot-drone { left: 42%; top: 2%; }
.console-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 22px;
}
.console-metrics div {
  min-height: 68px;
  padding: 12px;
  border: 1px solid rgba(94,231,255,.18);
  border-radius: 8px;
  background: rgba(3, 9, 16, .62);
}
.console-metrics span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.console-metrics strong { font-size: 15px; }
@keyframes radarSpin { to { transform: rotate(360deg); } }
.module-grid {
  position: relative;
  z-index: 3;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
.module-grid a {
  min-height: 88px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(7,18,31,.86), rgba(12,25,42,.58));
  backdrop-filter: blur(16px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.module-grid a:hover { transform: translateY(-4px); border-color: rgba(94,231,255,.58); background: rgba(94,231,255,.1); }
.module-grid span, .module-grid em { display: block; color: var(--cyan); font-size: 12px; margin-bottom: 8px; font-style: normal; }
.module-grid strong { display: block; margin-bottom: 7px; font-size: 17px; line-height: 1.25; }
.module-grid em { color: var(--muted); margin-bottom: 0; line-height: 1.35; font-size: 11px; }
.section-band, .page-grid, .split-layout, .resume-shell, .contact-layout, .detail-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-head > p { max-width: 520px; color: var(--muted); line-height: 1.8; }
.section-head h2, .page-hero h1 { font-size: clamp(32px, 5vw, 60px); letter-spacing: 0; }
.home-focus {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
}
.ability-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.ability-strip article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(94,231,255,.1), rgba(5,11,20,.72)),
    rgba(8,18,30,.72);
}
.ability-strip span { color: var(--cyan); font-size: 12px; font-weight: 800; }
.ability-strip h3 { margin-top: 18px; font-size: 23px; }
.ability-strip p { color: var(--muted); line-height: 1.75; }
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.data-card, .info-panel, .download-panel, .comment-box, .auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 70px rgba(0,0,0,.22);
}
.data-card { min-height: 220px; padding: 22px; position: relative; overflow: hidden; }
.data-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(94,231,255,.12), transparent 35%, rgba(159,123,255,.12));
  pointer-events: none;
}
.data-card h2, .data-card h3, .data-card p, .data-card a, .data-card span { position: relative; }
.data-card p, .muted, .site-footer { color: var(--muted); line-height: 1.7; }
.card-status, .pill {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 8px;
  border: 1px solid rgba(94,231,255,.32);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 11px;
}
.text-link { color: var(--cyan); font-weight: 700; }
.page-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0 36px;
}
.page-hero.compact { padding: 56px 0 16px; }
.page-hero.compact p { max-width: 760px; color: var(--muted); line-height: 1.8; }
.split-layout, .resume-shell, .contact-layout {
  display: grid;
  grid-template-columns: 1.6fr .8fr;
  gap: 24px;
}
.info-panel, .resume-main, .resume-side, .panel-form { padding: 24px; }
.resume-center-intro > div:first-child {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8,18,30,.52);
}
.resume-center-intro { padding-top: 12px; }
.resume-center-intro > div:first-child p {
  max-width: 840px;
  color: #c8d7e6;
  font-size: 17px;
  line-height: 1.9;
}
.info-panel p { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; color: var(--muted); }
.full-button { width: 100%; margin-top: 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.tag-row span { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--cyan); background: rgba(94,231,255,.07); }
.skill-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.skill-group { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: rgba(8,18,30,.62); }
.skill-line { margin: 12px 0; }
.skill-line span { display: block; margin-bottom: 8px; color: var(--muted); }
.skill-line b { display: block; height: 7px; border-radius: 8px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.resume-main, .resume-side, .panel-form { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.timeline-item { border-left: 2px solid var(--cyan); padding-left: 16px; margin: 22px 0; }
.timeline-item span { color: var(--cyan); font-size: 12px; }
.detail-head { padding: 80px 0 24px; }
.detail-head h1 { font-size: clamp(34px, 6vw, 72px); }
.detail-body { padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); line-height: 1.9; }
.download-panel { margin-top: 22px; padding: 18px; }
.comment-box { margin-top: 24px; padding: 24px; }
.comment-item { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-shell { width: min(420px, 100%); }
.auth-brand { justify-content: center; margin-bottom: 20px; }
.auth-card { padding: 28px; }
.auth-card form, .panel-form { display: grid; gap: 14px; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
}
.footer-records {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
}
.footer-records a { color: var(--muted); }
.footer-records a:hover { color: var(--cyan); }
.user-console,
.user-dashboard-grid,
.user-records {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 24px;
}
.user-console {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
}
.user-profile-card,
.user-stat-grid article,
.user-records article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8,18,30,.62);
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}
.user-profile-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}
.user-avatar {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border: 1px solid rgba(94,231,255,.42);
  border-radius: 8px;
  color: #061014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 900;
  font-size: 26px;
}
.user-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 14px;
}
.user-stat-grid article {
  padding: 20px;
}
.user-stat-grid span { color: var(--muted); }
.user-stat-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--cyan);
  font-size: 38px;
}
.user-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}
.permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.permission-tags span {
  border: 1px solid rgba(94,231,255,.22);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--cyan);
  background: rgba(94,231,255,.06);
  font-size: 12px;
}
.user-records {
  display: grid;
  gap: 18px;
}
.user-records article { padding: 24px; }
.message-card {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}
.message-card span { color: var(--cyan); font-size: 12px; }
.request-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.request-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.ai-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
}
.ai-toggle {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(94,231,255,.58);
  border-radius: 8px;
  color: #031014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 900;
  box-shadow: 0 18px 60px rgba(94,231,255,.18);
  cursor: pointer;
}
.ai-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(380px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7,15,26,.96);
  box-shadow: 0 24px 90px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
}
.ai-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.ai-panel-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.ai-panel-head button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}
.ai-messages {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 14px;
}
.ai-msg {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(94,231,255,.18);
  border-radius: 8px;
  color: #dcefff;
  background: rgba(94,231,255,.06);
  line-height: 1.6;
}
.ai-user {
  margin-left: 32px;
  color: #041014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}
.ai-bot { margin-right: 32px; }
.ai-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}
.ai-form button {
  border: 1px solid rgba(94,231,255,.58);
  border-radius: 8px;
  padding: 0 14px;
  color: #041014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 800;
  cursor: pointer;
}
.log-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.empty { color: var(--muted); }
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr; padding: 12px 18px; }
  .main-nav, .header-actions { justify-content: flex-start; overflow-x: auto; }
  .home-frame, .showcase-shell, .module-grid, .content-grid, .skill-groups, .split-layout, .resume-shell, .contact-layout, .ability-strip { grid-template-columns: 1fr; }
  .user-console, .user-dashboard-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .ai-widget { right: 18px; bottom: 18px; }
  .home-hero { min-height: auto; padding: 40px 20px 0; }
  .hero-shade {
    background:
      radial-gradient(circle at 72% 28%, rgba(94,231,255,.18), transparent 34%),
      linear-gradient(90deg, rgba(2,5,11,.98) 0%, rgba(2,5,11,.76) 55%, rgba(2,5,11,.52) 100%),
      linear-gradient(0deg, rgba(2,5,11,.94) 0%, transparent 28%, rgba(2,5,11,.46) 100%);
  }
  .showcase-shell { min-height: auto; gap: 22px; }
  .showcase-copy { min-height: auto; padding: 28px 0 8px; }
  .showcase-copy h1 { font-size: clamp(56px, 16vw, 78px); }
  .showcase-copy h1 span { font-size: clamp(38px, 11vw, 56px); }
  .hero-signal { justify-self: stretch; width: 100%; }
  .motion-stage { aspect-ratio: 16 / 10; min-height: 0; }
  .portfolio-index { margin-left: -20px; margin-right: -20px; }
  .portfolio-index { grid-template-columns: 1fr; }
  .portfolio-index a { min-height: 86px; }
  .hero-console { min-height: 460px; }
}
