:root {
  --bg: #090b0f;
  --bg-2: #0f1319;
  --panel: rgba(19, 24, 31, 0.86);
  --panel-solid: #141a22;
  --panel-soft: #19212b;
  --ink: #edf3ff;
  --muted: #8b98aa;
  --line: rgba(166, 188, 220, 0.18);
  --line-strong: rgba(0, 209, 255, 0.38);
  --cyan: #00d1ff;
  --lime: #c8ff3d;
  --coral: #ff6b6b;
  --violet: #a879ff;
  --amber: #ffb84d;
  --green: #4ee6a8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(112deg, rgba(0, 209, 255, 0.12), transparent 24%, rgba(200, 255, 61, 0.06) 58%, transparent 82%),
    linear-gradient(145deg, #090b0f 0%, #11151c 50%, #0a0d11 100%);
  background-size: 36px 36px, 36px 36px, auto, auto;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 46%, rgba(200, 255, 61, 0.08) 47%, transparent 50% 100%),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(255, 255, 255, 0.018) 9px 10px);
  mix-blend-mode: screen;
}

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

button {
  cursor: pointer;
}

a {
  color: var(--cyan);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background:
    linear-gradient(180deg, rgba(17, 22, 31, 0.96), rgba(8, 10, 14, 0.96)),
    linear-gradient(90deg, rgba(0, 209, 255, 0.16), transparent 38%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 209, 255, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.22), rgba(200, 255, 61, 0.12)),
    #111820;
  color: var(--cyan);
  font-weight: 900;
  box-shadow: 0 0 24px rgba(0, 209, 255, 0.18);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-item {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #b8c3d4;
  text-align: left;
  position: relative;
}

.nav-item::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 10px;
  display: inline-block;
  border-radius: 50%;
  background: #4b5565;
  vertical-align: 2px;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(0, 209, 255, 0.09);
  border-color: rgba(0, 209, 255, 0.32);
  color: #fff;
}

.nav-item.active::before {
  background: var(--lime);
  box-shadow: 0 0 14px rgba(200, 255, 61, 0.76);
}

.side-summary {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(200, 255, 61, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(200, 255, 61, 0.08), rgba(0, 209, 255, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.side-summary span,
.side-summary p {
  color: var(--muted);
}

.side-summary strong {
  display: block;
  margin: 6px 0 8px;
  color: var(--lime);
  font-size: 24px;
}

.side-summary p {
  margin: 0;
  line-height: 1.6;
  font-size: 13px;
}

.app {
  min-width: 0;
  padding: 24px;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 30px;
}

h2 {
  margin-bottom: 5px;
  font-size: 24px;
}

h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search {
  height: 42px;
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.search span {
  white-space: nowrap;
}

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

.search input::placeholder,
textarea::placeholder,
input::placeholder {
  color: #667085;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.icon-btn,
.mini-btn {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  color: var(--ink);
}

.primary-btn {
  background: linear-gradient(135deg, var(--cyan), #2f7dff);
  color: #061016;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 209, 255, 0.22);
}

.primary-btn:hover {
  filter: brightness(1.08);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.danger-btn {
  background: rgba(255, 107, 107, 0.12);
  color: #ffc4c4;
  border-color: rgba(255, 107, 107, 0.3);
}

.icon-btn {
  width: 38px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
}

.mini-btn {
  min-height: 31px;
  padding: 0 10px;
  background: rgba(0, 209, 255, 0.1);
  border-color: rgba(0, 209, 255, 0.22);
  color: #aef1ff;
}

.command-hero {
  margin: 18px 0 14px;
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.45fr);
  gap: 18px;
}

.hero-copy,
.signal-board,
.stat,
.column,
.table-wrap,
.research-item,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: 22px;
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--lime));
  transform: rotate(-28deg);
}

.live-chip {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(78, 230, 168, 0.28);
  border-radius: 999px;
  color: #bbffe4;
  background: rgba(78, 230, 168, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.live-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(78, 230, 168, 0.84);
}

.hero-copy h2 {
  margin: 18px 0 8px;
  font-size: 38px;
}

.hero-copy p {
  margin-bottom: 24px;
  color: var(--muted);
}

.hero-tags,
.chips,
.project-meta,
.card-foot,
.software-head,
.software-row,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c7d2e5;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

.signal-board {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.signal-card {
  min-height: 170px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    rgba(5, 8, 12, 0.38);
  background-size: 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.signal-card strong {
  font-size: 20px;
}

.signal-card small {
  color: var(--muted);
}

.signal-bars {
  display: grid;
  gap: 8px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}

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

.stat {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--coral));
}

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

.stat strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 30px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.section-head {
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.filter-stack {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.segment {
  min-width: 62px;
  height: 33px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.segment.active {
  background: var(--lime);
  color: #10140a;
  font-weight: 800;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
}

.column {
  min-height: 440px;
  padding: 12px;
}

.column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 209, 255, 0.12);
  color: #b9f4ff;
  font-size: 12px;
}

.project-card {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.07), transparent 42%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.16);
}

.project-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.project-card h3 {
  margin-bottom: 10px;
}

.software-head {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.software-head.compact {
  margin-bottom: 0;
}

.software-head h3 {
  margin-top: 2px;
}

.software-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid rgba(0, 209, 255, 0.34);
  border-radius: 8px;
  object-fit: cover;
  background: #0d1218;
  box-shadow: 0 0 24px rgba(0, 209, 255, 0.12);
}

.software-icon.fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 209, 255, 0.22), rgba(200, 255, 61, 0.12));
  color: #dffbff;
  font-weight: 900;
  font-size: 20px;
}

.software-row {
  flex-wrap: nowrap;
  align-items: center;
}

.software-row .software-icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.project-meta {
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #c7d2e5;
  font-size: 12px;
}

.tag.high {
  border-color: rgba(255, 107, 107, 0.36);
  background: rgba(255, 107, 107, 0.14);
  color: #ffc4c4;
}

.tag.mid {
  border-color: rgba(255, 184, 77, 0.34);
  background: rgba(255, 184, 77, 0.13);
  color: #ffd99c;
}

.tag.low {
  border-color: rgba(78, 230, 168, 0.35);
  background: rgba(78, 230, 168, 0.12);
  color: #baffdf;
}

.owner-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--owner-color) 16%, transparent), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.045);
  color: #edf5ff;
  font-size: 12px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px color-mix(in srgb, var(--owner-color) 18%, transparent);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.owner-tag img,
.owner-tag b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--owner-color) 62%, rgba(255, 255, 255, 0.18));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--owner-color) 42%, #101820), #101820);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  object-fit: cover;
}

.owner-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--owner-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--owner-color) 70%, transparent);
}

.owner-tag em {
  font-style: normal;
  line-height: 1;
}

.owner-tag.metric b {
  border-radius: 999px;
  font-size: 12px;
}

.owner-tag:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--owner-color) 52%, rgba(255, 255, 255, 0.18));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--owner-color) 24%, transparent), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 24px color-mix(in srgb, var(--owner-color) 18%, transparent);
}

.project-card p {
  min-height: 66px;
  margin-bottom: 12px;
  color: #aab6c7;
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  justify-content: space-between;
}

.move-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(255, 255, 255, 0.045);
  color: #aeb9c9;
  font-size: 13px;
}

td {
  color: #d6deeb;
  line-height: 1.55;
}

tr:last-child td {
  border-bottom: 0;
}

select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151b24;
  color: var(--ink);
}

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

.research-item,
.timeline-item {
  padding: 16px;
}

.research-item h3,
.timeline-item h3 {
  margin-top: 12px;
}

.research-item p,
.timeline-item p {
  margin: 10px 0 0;
  color: #aab6c7;
  line-height: 1.75;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.timeline-date {
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
}

.modal {
  width: min(780px, calc(100vw - 28px));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: #111821;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.54);
}

.small-modal {
  width: min(460px, calc(100vw - 28px));
}

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

.modal form {
  padding: 20px;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head {
  margin-bottom: 18px;
}

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

.form-grid.single {
  grid-template-columns: 1fr;
}

label {
  display: grid;
  gap: 7px;
  color: #aeb9c9;
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #0d1218;
}

textarea {
  resize: vertical;
}

.tag-editor {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  background: #0d1218;
}

.tag-editor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-editor input {
  width: 180px;
  min-width: 140px;
  flex: 1;
  border: 0;
  padding: 4px;
  background: transparent;
}

.person-tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 209, 255, 0.28);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(0, 209, 255, 0.1);
  color: #b9f4ff;
}

.person-tag span {
  color: var(--lime);
}

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

.modal-actions {
  margin-top: 18px;
}

.modal-spacer {
  flex: 1;
}

.hidden {
  display: none !important;
}

.admin-body {
  display: block;
}

.admin-app {
  min-height: 100vh;
  padding: 24px;
}

.login-panel {
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 440px);
  align-items: center;
  gap: 28px;
}

.login-brand {
  align-self: start;
}

.login-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: #ffc4c4;
}

.form-help {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.admin-shell {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
}

.team-grid,
.member-editor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.team-hero,
.team-card,
.member-manager,
.member-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--owner-color, #00d1ff) 10%, transparent), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow: var(--shadow);
}

.team-hero {
  min-height: 210px;
  margin-bottom: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 38%, rgba(0, 209, 255, 0.12) 39%, transparent 42% 100%);
  animation: scanLine 4.8s linear infinite;
}

.team-hero h2 {
  margin-bottom: 8px;
  font-size: 38px;
}

.team-hero p {
  margin: 0;
  color: var(--muted);
}

.team-orbit {
  height: 138px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 18px 18px;
}

.team-orbit span {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--lime), transparent);
  animation: dataSweep 3.6s ease-in-out infinite;
}

.team-orbit span:nth-child(1) { top: 28px; }
.team-orbit span:nth-child(2) { top: 66px; animation-delay: .55s; }
.team-orbit span:nth-child(3) { top: 104px; animation-delay: 1.1s; }

.team-card {
  min-height: 230px;
  padding: 16px;
  display: flex;
  gap: 14px;
  position: relative;
  overflow: hidden;
  animation: cardRise .55s ease both;
}

.team-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--owner-color), transparent);
}

.member-visual {
  position: relative;
  width: 66px;
  flex: 0 0 66px;
}

.member-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--owner-color) 55%, transparent);
  border-radius: 8px;
  color: #ffffff;
  background: color-mix(in srgb, var(--owner-color) 22%, #0d1218);
  font-size: 22px;
  font-weight: 900;
  position: relative;
  z-index: 1;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}

.member-avatar.image {
  object-fit: cover;
}

.team-card:hover .member-avatar {
  transform: translateY(-4px) scale(1.04);
  border-color: color-mix(in srgb, var(--owner-color) 76%, transparent);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--owner-color) 24%, transparent);
  filter: saturate(1.12) contrast(1.05);
}

.team-card:hover .member-pulse {
  animation-duration: 1.1s;
  border-color: color-mix(in srgb, var(--owner-color) 72%, transparent);
}

.member-pulse {
  position: absolute;
  inset: -5px 1px auto -5px;
  width: 72px;
  height: 72px;
  border: 1px solid color-mix(in srgb, var(--owner-color) 42%, transparent);
  border-radius: 8px;
  animation: framePulse 2.8s ease-in-out infinite;
}

.team-card-main h3 {
  margin-bottom: 4px;
}

.member-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.member-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.big-role-tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--owner-color) 48%, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  padding: 0 10px;
  color: #081018;
  background: linear-gradient(135deg, var(--owner-color), color-mix(in srgb, var(--owner-color) 74%, #ffffff));
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--owner-color) 18%, transparent);
}

.member-age {
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  color: #c7d2e5;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

.team-card-main p,
.member-intro {
  margin-bottom: 12px;
  color: var(--muted);
}

.member-intro {
  line-height: 1.7;
}

.member-contact {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--owner-color) 38%, transparent);
  border-radius: 999px;
  padding: 0 10px;
  color: #ffffff;
  background: color-mix(in srgb, var(--owner-color) 12%, transparent);
  font-size: 12px;
}

.member-skills {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.member-skills span,
.member-skills em {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  color: #d7e1ef;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-style: normal;
}

.member-projects {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.member-projects span,
.member-projects em {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  color: #c7d2e5;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-style: normal;
}

.member-manager {
  padding: 16px;
}

.member-row {
  --owner-color: #00d1ff;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.member-row-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.member-row-avatar {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.member-row-avatar.fallback {
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 209, 255, 0.12);
  font-weight: 900;
}

.member-intro-input,
.member-avatar-upload {
  grid-column: 1 / -1;
}

.member-row .danger-btn {
  justify-self: start;
}

.member-card-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.member-account-status {
  min-height: 42px;
}

.member-avatar-upload {
  color: #aeb9c9;
}

.member-color {
  min-height: 38px;
  padding: 4px;
}

@keyframes scanLine {
  0% { transform: translateX(-80%); }
  100% { transform: translateX(80%); }
}

@keyframes dataSweep {
  0%, 100% { transform: translateX(-12px); opacity: .45; }
  50% { transform: translateX(12px); opacity: 1; }
}

@keyframes framePulse {
  0%, 100% { opacity: .42; transform: scale(.96); }
  50% { opacity: .9; transform: scale(1.03); }
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.08), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
}

.admin-card p {
  min-height: 66px;
  color: #aab6c7;
  line-height: 1.65;
}

.admin-actions {
  justify-content: flex-start;
}

.empty {
  padding: 18px;
  border: 1px dashed rgba(166, 188, 220, 0.24);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

@media (max-width: 1180px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

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

  .side-summary {
    display: none;
  }

  .command-hero,
  .kanban,
  .research-grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-board {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 740px) {
  .app {
    padding: 16px;
  }

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

  .top-actions,
  .search,
  .filter-stack,
  .segmented {
    width: 100%;
  }

  .segment {
    flex: 1;
  }

  .nav,
  .command-hero,
  .team-hero,
  .signal-board,
  .kanban,
  .research-grid,
  .stats,
  .form-grid,
  .login-panel,
  .admin-grid,
  .member-row {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: 30px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex-direction: column;
  }

  .member-visual {
    width: 72px;
  }
}
