:root {
  --navy-950: #061428;
  --navy-900: #0a1f3d;
  --navy-800: #123056;
  --cyan: #3ec4ff;
  --cyan-dim: rgba(62, 196, 255, 0.35);
  --red: #ff5a5a;
  --red-deep: #c62828;
  --gold: #e8c36a;
  --ink: #e8f1fa;
  --ink-dim: rgba(232, 241, 250, 0.62);
  --glass: rgba(12, 32, 58, 0.45);
  --glass-strong: rgba(10, 28, 52, 0.72);
  --glass-light: rgba(255, 255, 255, 0.06);
  --line: rgba(120, 190, 255, 0.18);
  --line-bright: rgba(62, 196, 255, 0.45);
  --ok: #3dd68c;
  --ok-bg: rgba(61, 214, 140, 0.14);
  --warn: #e8c36a;
  --warn-bg: rgba(232, 195, 106, 0.14);
  --bad: #ff6b61;
  --bad-bg: rgba(255, 107, 97, 0.14);
  --ting: #4ec3ef;
  --ting-bg: rgba(78, 195, 239, 0.14);
  --chu: #6ed8a0;
  --chu-bg: rgba(110, 216, 160, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --shadow-glow: 0 0 0 1px rgba(62,196,255,0.12), 0 20px 50px rgba(0,0,0,0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(ellipse at 20% 0%, #0d2a52 0%, var(--navy-950) 45%, #040d1a 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); }
.hidden { display: none !important; }

/* Ambient tech layers */
.fx-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(62,196,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62,196,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  animation: gridPulse 8s ease-in-out infinite;
}
.fx-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.fx-orb-a {
  width: 420px; height: 420px;
  left: -80px; top: -60px;
  background: radial-gradient(circle, rgba(62,196,255,0.45), transparent 70%);
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.fx-orb-b {
  width: 380px; height: 380px;
  right: -60px; bottom: 10%;
  background: radial-gradient(circle, rgba(198,40,40,0.35), transparent 70%);
  animation: orbFloat 18s ease-in-out infinite alternate-reverse;
}
.fx-scan {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(62,196,255,0.03) 48%,
    rgba(62,196,255,0.08) 50%,
    rgba(62,196,255,0.03) 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: scanMove 7s linear infinite;
  mix-blend-mode: screen;
}

.glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-glow);
}

/* ===== Login ===== */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  position: relative;
  z-index: 1;
}
.login-stage {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 22px;
  align-items: stretch;
  animation: rise 0.7s cubic-bezier(.22,1,.36,1) both;
}
.login-hero {
  border-radius: 20px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.login-hero::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,196,255,0.25), transparent 70%);
  animation: orbFloat 10s ease-in-out infinite alternate;
}
.login-kicker {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
  font-weight: 600;
  position: relative;
}
.login-emblem {
  width: 58px; height: 58px;
  border-radius: 16px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line-bright);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 0 24px rgba(62,196,255,0.25);
}
.login-emblem span,
.brand-mark span {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--cyan), #1a6fa8 50%, var(--red-deep));
  box-shadow: 0 0 16px rgba(62,196,255,0.5);
  animation: pulseGlow 2.8s ease-in-out infinite;
}
.login-brand {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.06em;
  position: relative;
  background: linear-gradient(120deg, #fff 20%, #9fdcf5 55%, #fff 90%);
  -webkit-background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
}
.login-lead {
  margin: 18px 0 0;
  max-width: 28em;
  color: var(--ink-dim);
  line-height: 1.75;
  position: relative;
}
.login-points {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  flex-wrap: wrap;
  position: relative;
}
.login-points li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(62,196,255,0.08);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}
.login-card {
  border-radius: 20px;
  padding: 36px 32px 28px;
  animation: rise 0.85s 0.08s cubic-bezier(.22,1,.36,1) both;
  position: relative;
}
.login-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(62,196,255,0.55), transparent 40%, rgba(255,90,90,0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.login-card-kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 8px;
}
.login-card h2 {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}
.login-card label {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-dim);
  margin-bottom: 14px;
  font-weight: 500;
}
.login-card input,
.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: rgba(4, 16, 32, 0.45);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-card input:focus,
.field input:focus,
.field select:focus,
.toolbar input:focus,
.toolbar select:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(8, 24, 48, 0.65);
  box-shadow: 0 0 0 3px rgba(62, 196, 255, 0.15), 0 0 20px rgba(62,196,255,0.12);
}
.login-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.76rem;
  color: var(--ink-dim);
}
.err { color: var(--bad); min-height: 1.2em; margin: 8px 0 0; font-size: 0.88rem; }

/* ===== App shell ===== */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.glass-sider {
  margin: 12px 0 12px 12px;
  border-radius: 18px;
  background: linear-gradient(185deg, rgba(10, 30, 58, 0.78), rgba(8, 22, 44, 0.62));
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: var(--ink);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.glass-sider::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 120px;
  background: radial-gradient(ellipse at 20% 0%, rgba(62,196,255,0.18), transparent 65%);
  pointer-events: none;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 10px 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-bright);
  box-shadow: 0 0 18px rgba(62,196,255,0.2);
}
.brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0.55;
  margin-top: 2px;
}
.nav-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  padding: 14px 12px 6px;
  position: relative;
  z-index: 1;
}
.nav-main, .nav-ext {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 1;
}
.nav-ext { margin-bottom: auto; }
nav button, .nav-ext a {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .18s, box-shadow .18s, transform .18s;
}
.ni { width: 1.1em; opacity: 0.5; font-style: normal; text-align: center; }
nav button:hover, .nav-ext a:hover {
  background: rgba(62,196,255,0.1);
}
nav button.active {
  background: linear-gradient(90deg, rgba(62,196,255,0.28), rgba(62,196,255,0.08));
  border: 1px solid rgba(62,196,255,0.28);
  box-shadow: 0 0 20px rgba(62,196,255,0.12);
}
nav button.active .ni { opacity: 1; color: var(--cyan); }
.sider-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8px 4px;
  border-top: 1px solid var(--line);
  gap: 8px;
  position: relative;
  z-index: 1;
}
.who-block {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  min-width: 0;
}
.who-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(61,214,140,0.2), 0 0 12px rgba(61,214,140,0.45);
  animation: pulseGlow 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  padding: 12px 12px 12px 10px;
}
.glass-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(10, 28, 52, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glow);
  position: sticky;
  top: 12px;
  z-index: 20;
}
.topbar-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  font-weight: 600;
}
.topbar h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.content {
  padding: 16px 4px 36px;
  overflow: auto;
}

/* ===== Controls ===== */
.btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  font-weight: 500;
  font-size: 0.88rem;
  backdrop-filter: blur(8px);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-bright);
  box-shadow: 0 0 18px rgba(62,196,255,0.15);
}
.btn.primary {
  background: linear-gradient(135deg, rgba(62,196,255,0.9), rgba(26,110,180,0.95));
  border-color: transparent;
  color: #041018;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(62,196,255,0.25);
}
.btn.accent {
  background: linear-gradient(135deg, rgba(255,90,90,0.85), rgba(180,40,50,0.9));
  border-color: transparent;
  color: #fff;
}
.btn.ghost {
  background: transparent;
  color: var(--ink-dim);
  border-color: var(--line);
  padding: 7px 12px;
  font-size: 0.8rem;
}
.btn.block { width: 100%; padding: 13px 16px; font-size: 1rem; margin-top: 6px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== Panels / stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  background: rgba(10, 28, 52, 0.5);
  border: 1px solid var(--line);
  padding: 16px 14px;
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  animation: rise 0.55s cubic-bezier(.22,1,.36,1) both;
}
.stat:nth-child(2) { animation-delay: .04s; }
.stat:nth-child(3) { animation-delay: .08s; }
.stat:nth-child(4) { animation-delay: .12s; }
.stat:nth-child(5) { animation-delay: .16s; }
.stat:nth-child(6) { animation-delay: .2s; }
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), transparent);
}
.stat::after {
  content: "";
  position: absolute;
  right: -20px; top: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,196,255,0.12), transparent 70%);
  pointer-events: none;
}
.stat.ting::before { background: linear-gradient(180deg, var(--ting), transparent); }
.stat.chu::before { background: linear-gradient(180deg, var(--chu), transparent); }
.stat.bad::before { background: linear-gradient(180deg, var(--bad), transparent); }
.stat .label {
  color: var(--ink-dim);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.stat .value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat.ting .value { color: var(--ting); text-shadow: 0 0 18px rgba(78,195,239,0.35); }
.stat.chu .value { color: var(--chu); text-shadow: 0 0 18px rgba(110,216,160,0.3); }
.stat.bad .value { color: var(--bad); text-shadow: 0 0 18px rgba(255,107,97,0.35); }

.panel {
  background: rgba(10, 28, 52, 0.48);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 10px;
  margin-bottom: 14px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glow);
  animation: rise 0.5s cubic-bezier(.22,1,.36,1) both;
  position: relative;
}
.panel h2 {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel h2::before {
  content: "";
  width: 3px;
  height: 1em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--red-deep));
  box-shadow: 0 0 10px rgba(62,196,255,0.5);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
}
.toolbar input,
.toolbar select { width: auto; margin-top: 0; min-width: 120px; }

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}
th, td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(120,190,255,0.1);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--ink-dim);
  font-weight: 600;
  font-size: 0.76rem;
  background: rgba(62,196,255,0.06);
  letter-spacing: 0.06em;
}
th:first-child { border-radius: 8px 0 0 0; }
th:last-child { border-radius: 0 8px 0 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(62,196,255,0.06); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  color: var(--ink-dim);
  border: 1px solid var(--line);
}
.tag.ting { background: var(--ting-bg); color: var(--ting); border-color: rgba(78,195,239,0.3); }
.tag.chu { background: var(--chu-bg); color: var(--chu); border-color: rgba(110,216,160,0.3); }
.tag.bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(255,107,97,0.3); }
.tag.ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(61,214,140,0.3); }
.tag.warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(232,195,106,0.3); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}
.muted { color: var(--ink-dim); }
.mono {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  line-height: 1.65;
  background: rgba(4, 16, 32, 0.45);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-bottom: 4px;
  font-weight: 500;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, 24px, 0) scale(1.08); }
}
@keyframes scanMove {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 200%; }
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes pulseGlow {
  0%, 100% { filter: brightness(1); box-shadow: 0 0 12px rgba(62,196,255,0.35); }
  50% { filter: brightness(1.2); box-shadow: 0 0 22px rgba(62,196,255,0.65); }
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar-titles { min-width: 0; }
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(62,196,255,0.1);
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(62,196,255,0.45);
  transition: transform .2s, opacity .2s;
}
.nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 10, 22, 0.55);
  backdrop-filter: blur(4px);
}
.app.nav-open .nav-mask { display: block; }

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .form-grid, .login-stage { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .glass-sider {
    display: flex;
    position: fixed;
    left: 12px;
    top: 12px;
    bottom: 12px;
    width: min(280px, calc(100vw - 48px));
    margin: 0;
    z-index: 50;
    transform: translateX(calc(-100% - 24px));
    transition: transform .28s cubic-bezier(.22,1,.36,1);
    max-height: none;
  }
  .app.nav-open .glass-sider {
    transform: translateX(0);
  }
  .app.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .app.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .app.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .main { padding: 10px; }
  .topbar-kicker { display: none; }
  .topbar h1 { font-size: 1.1rem; }
  .content { padding: 12px 2px 28px; }
  .stat .value { font-size: 1.45rem; }
  .top-actions { width: 100%; justify-content: flex-start; }
  .glass-bar { flex-wrap: wrap; }
}

.avatar-sm {
  width: 40px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
}
.avatar-ph {
  width: 40px;
  height: 52px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  background: rgba(62,196,255,0.12);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-weight: 700;
}
.link-name {
  color: #9fdcf5;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(62,196,255,0.35);
}
.link-name:hover { color: #fff; }

.profile-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
  padding: 22px !important;
}
.profile-photo-wrap {
  position: relative;
}
.profile-photo {
  width: 180px;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line-bright);
  box-shadow: 0 0 30px rgba(62,196,255,0.2);
  background: rgba(0,0,0,0.25);
  display: block;
}
.profile-photo.ph {
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-family: var(--font-serif);
  color: var(--cyan);
}
.profile-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 0.08em;
}
.profile-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.profile-title {
  margin: 0 0 12px;
  color: var(--ink-dim);
  font-size: 1rem;
}
.profile-bio {
  margin: 0 0 14px;
  line-height: 1.75;
  color: rgba(232,241,250,0.9);
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(62,196,255,0.08);
  font-size: 0.8rem;
  color: var(--ink-dim);
}
.profile-source {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--ink-dim);
}
.resume-timeline {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.7;
}
.resume-timeline li {
  margin-bottom: 10px;
  padding-left: 4px;
}
.resume-timeline li::marker {
  color: var(--cyan);
}

@media (max-width: 900px) {
  .profile-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profile-name-row, .profile-meta { justify-content: center; }
}

