:root {
  --bg: #cce8ec;
  --panel: rgba(215, 244, 248, 0.76);
  --panel-strong: rgba(232, 249, 251, 0.92);
  --line: rgba(90, 175, 185, 0.24);
  --text: #123d3d;
  --muted: #3a7070;
  --primary: #1e7272;
  --primary-soft: rgba(90, 175, 185, 0.14);
  --accent: #4cbac4;
  --shadow: 0 20px 48px rgba(44, 114, 114, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans TC", "Roboto", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 15% 10%, rgba(90, 175, 185, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 25%, rgba(44, 114, 114, 0.16) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 85%, rgba(90, 175, 185, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #d7f0f3 0%, #cce8ec 100%);
}

.page-shell {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  padding: 22px;
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-card,
.skill-panel,
.chart-panel,
.update-panel,
.content-header {
  padding: 22px;
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(241, 251, 252, 0.92), rgba(221, 244, 247, 0.92)),
    linear-gradient(135deg, rgba(76, 186, 196, 0.12), rgba(30, 104, 104, 0.12));
}

.hero-title-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  font-family: "Roboto", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

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

h1 {
  font-family: "Roboto", sans-serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #144444;
}

h2 {
  font-family: "Roboto", sans-serif;
  font-size: 28px;
  letter-spacing: 0.01em;
  color: #144444;
}

h3 {
  font-size: 16px;
  color: #144444;
}

.level-chip {
  min-width: 104px;
  padding: 12px 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, #4cbac4, #1e6868);
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(44, 114, 114, 0.28);
}

.level-chip span {
  display: block;
  font-size: 11px;
  opacity: 0.82;
}

.level-chip strong {
  display: block;
  margin-top: 3px;
  font-size: 32px;
  font-family: "Roboto", sans-serif;
  font-weight: 900;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(90, 175, 185, 0.14);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading p {
  color: var(--muted);
  font-size: 13px;
}

.skill-list,
.job-list,
.member-grid {
  display: grid;
  gap: 12px;
}

.skill-item {
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(76, 186, 196, 0.12), rgba(30, 104, 104, 0.08));
  border: 1px solid rgba(90, 175, 185, 0.22);
}

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

.skill-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  image-rendering: auto;
}

.skill-item strong,
.stat-card strong,
.member-meta strong {
  display: block;
  font-family: "Roboto", sans-serif;
}

.skill-item strong {
  font-size: 16px;
  margin-bottom: 5px;
}

.skill-item span,
.skill-item p,
.stat-card p,
.member-meta span,
.member-subtext,
.job-row span,
.chart-labels span,
.update-panel span {
  color: var(--muted);
}

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

.stat-card {
  padding: 18px;
}

.stat-card strong {
  margin: 10px 0 6px;
  font-size: 34px;
}

.mini-chart {
  display: grid;
  gap: 12px;
}

.chart-row,
.job-row {
  display: grid;
  grid-template-columns: 92px 1fr 54px;
  align-items: center;
  gap: 10px;
}

.bar-track {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(90, 175, 185, 0.12);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4cbac4, #1e7272);
}

.job-list {
  max-height: 240px;
  overflow: auto;
  padding-right: 6px;
}

.job-list::-webkit-scrollbar {
  width: 10px;
}

.job-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(90, 175, 185, 0.36);
}

.update-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.update-panel strong {
  font-size: 14px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.header-actions input,
.header-actions button {
  border: 0;
  outline: 0;
  border-radius: 16px;
  font: inherit;
}

.header-actions input {
  width: min(360px, 42vw);
  padding: 14px 16px;
  color: var(--text);
  background: rgba(90, 175, 185, 0.12);
  border: 1px solid rgba(90, 175, 185, 0.18);
}

.header-actions button {
  padding: 14px 18px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #56bec8, #1e7272);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(44, 114, 114, 0.24);
}

.member-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.member-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
}

.member-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 186, 196, 0.18), transparent 65%);
}

.avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eef8fa, #dff1f4);
  color: var(--primary);
  font-size: 28px;
  font-weight: 800;
  font-family: "Roboto", sans-serif;
  overflow: hidden;
  border: 1px solid rgba(90, 175, 185, 0.22);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.avatar-fallback {
  font-size: 28px;
  font-weight: 800;
  font-family: "Roboto", sans-serif;
}

.member-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.member-meta strong {
  font-size: 22px;
  line-height: 1;
}

.member-id {
  font-size: 13px;
}

.member-subtext {
  font-size: 14px;
  font-weight: 700;
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.member-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(90, 175, 185, 0.14);
  font-size: 12px;
  font-weight: 700;
  color: #1a5c5c;
}

@media (max-width: 1080px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .content-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    flex-direction: column;
  }

  .header-actions input {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px;
    gap: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .member-grid {
    grid-template-columns: 1fr;
  }

  .member-card {
    grid-template-columns: 60px 1fr;
  }

  .avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 22px;
  }
}

