/* CosLink-inspired profile (light dashboard) */
.cl-app {
  background: #f6f5fb !important;
}
.cl-page {
  padding: 12px 16px 100px;
  max-width: 1100px;
  margin: 0 auto;
}
.cl-head {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #ebe9f5;
  box-shadow: 0 8px 30px rgba(76, 29, 149, 0.04);
  margin-bottom: 12px;
}
.cl-head-left {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.cl-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px #ddd6fe;
}
.cl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cl-head-meta { flex: 1; min-width: 0; }
.cl-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.cl-name-row h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  color: #1e1b4b;
}
.cl-role-pill {
  font-size: 12px;
  font-weight: 700;
  color: #6d28d9;
  background: #f3e8ff;
  padding: 3px 10px;
  border-radius: 999px;
}
.cl-loc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}
.cl-lead {
  font-size: 14px;
  color: #374151;
  line-height: 1.55;
  margin: 0 0 10px;
}
.cl-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 14px;
}
.cl-meta-line .dot { opacity: 0.4; }
.cl-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.cl-btn.primary {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}
.cl-btn.ghost {
  background: #fff;
  border-color: #e9e5f5;
  color: #4c1d95;
}
.cl-btn.primary:hover { filter: brightness(1.05); }
.cl-btn.ghost:hover { background: #faf8ff; }

.cl-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e9e5f5;
  margin-bottom: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #f6f5fb;
  /* sticky はモバイルで上に固定して切替が分かりやすく */
}
.cl-tabs button {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.cl-tabs button.active {
  color: #6d28d9;
  border-bottom-color: #7c3aed;
}

.cl-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cl-card {
  background: #fff;
  border: 1px solid #ebe9f5;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(76, 29, 149, 0.03);
}
.cl-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1e1b4b;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cl-ico { color: #7c3aed; }
.cl-bio {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  white-space: pre-wrap;
  margin: 0;
}
.cl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cl-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f5f3ff;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 600;
}
.cl-sns { display: flex; flex-wrap: wrap; gap: 10px; }
.cl-sns a {
  color: #6d28d9;
  font-weight: 600;
  font-size: 13px;
}
.cl-kv .kv {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f0fa;
  font-size: 13px;
}
.cl-kv .kv:last-child { border-bottom: none; }
.cl-kv .k { width: 88px; color: #9ca3af; flex-shrink: 0; }
.cl-kv .v { color: #1f2937; font-weight: 500; }
.cl-card textarea {
  width: 100%;
  border: 1px solid #e9e5f5;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fafaff;
  min-height: 80px;
}

/* aside score */
.cl-score-card .cl-score-title,
.cl-card .cl-score-title {
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 10px;
}
.cl-score-title .info {
  color: #c4b5fd;
  font-weight: 600;
  cursor: help;
}
.cl-score-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cl-score-num {
  font-size: 48px;
  font-weight: 800;
  color: #6d28d9;
  line-height: 1;
  letter-spacing: -0.03em;
}
.cl-score-num small {
  font-size: 20px;
  margin-left: 2px;
}
.cl-ring {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
.cl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cl-ring .track {
  fill: none;
  stroke: #ede9fe;
  stroke-width: 10;
}
.cl-ring .val {
  fill: none;
  stroke: #8b5cf6;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset .4s ease;
}
.cl-score-desc {
  font-size: 12px;
  color: #9ca3af;
  margin: 12px 0 0;
  line-height: 1.5;
}
.cl-mini-scores {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f0fa;
}
.cl-mini-scores div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cl-mini-scores b {
  font-size: 18px;
  color: #1e1b4b;
}
.cl-mini-scores span {
  font-size: 11px;
  color: #9ca3af;
}

.cl-badges {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.cl-badge {
  text-align: center;
  padding: 10px 4px;
  border-radius: 12px;
  background: #faf8ff;
}
.cl-badge .ico {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
  color: #7c3aed;
}
.cl-badge span:last-child {
  font-size: 11px;
  font-weight: 600;
  color: #4c1d95;
}

.cl-collab-num {
  font-size: 40px;
  font-weight: 800;
  color: #6d28d9;
  line-height: 1;
}
.cl-collab-num small {
  font-size: 16px;
  margin-left: 4px;
  color: #7c3aed;
}

.cl-timeline { display: flex; flex-direction: column; gap: 10px; }
.cl-tl-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #374151;
}
.cl-tl-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b5cf6;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px #ede9fe;
}
.cl-tl-item .when {
  margin-left: auto;
  color: #9ca3af;
  font-size: 12px;
  flex-shrink: 0;
}

.cl-posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cl-post {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ebe9f5;
  background: #fff;
}
.cl-post img, .cl-post .ph {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #f3f0fa;
  display: block;
}
.cl-post .t {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #1e1b4b;
}
.cl-event {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #f3f0fa;
}
.cl-event:last-child { border-bottom: none; }
.cl-event .d { font-size: 11px; color: #9ca3af; }
.cl-event .t { font-size: 14px; font-weight: 600; color: #1e1b4b; }

.cl-review {
  padding: 12px 0;
  border-bottom: 1px solid #f3f0fa;
}
.cl-review:last-child { border-bottom: none; }
.cl-review-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}
.cl-review .stars { color: #a78bfa; letter-spacing: 1px; }
.cl-review p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

@media (max-width: 899px) {
  .cl-tabs {
    position: sticky;
    top: 0;
    z-index: 12;
    margin-left: -12px;
    margin-right: -12px;
    padding: 0 12px;
    border-bottom: 1px solid #e9e5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
  }
  .sc-shell .cl-tabs {
    top: 0;
  }
  .cl-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .cl-main {
    order: 1;
    min-width: 0;
  }
  .cl-aside {
    order: 2;
    min-width: 0;
  }
  .cl-panel {
    scroll-margin-top: 56px;
  }
  /* サイドのスコアはコンパクトに */
  .cl-score-num { font-size: 36px; }
  .cl-ring { width: 72px; height: 72px; }
}

@media (min-width: 900px) {
  .cl-page { padding: 20px 24px 110px; }
  .cl-head { padding: 28px; }
  .cl-avatar {
    width: 112px;
    height: 112px;
    font-size: 42px;
  }
  .cl-name-row h2 { font-size: 28px; }
  .cl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
    gap: 16px;
    align-items: start;
  }
  .cl-aside {
    position: sticky;
    top: 64px;
  }
  .cl-posts {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .cl-app .header {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
  }
}

@media (min-width: 1200px) {
  .cl-page { max-width: 1180px; }
  .cl-layout {
    grid-template-columns: minmax(0, 1.5fr) 320px;
    gap: 20px;
  }
}
