/* Trang hồ sơ — màu/spacing theo token Nano (theo theme sáng/tối). */

.eze-prof-page {
  min-height: 100vh;
}

.eze-prof-hero {
  padding: calc(var(--space-base) * 5) 0 calc(var(--space-base) * 3);
}

.eze-prof-hero-inner {
  max-width: 52rem;
  margin: 0 auto;
}

.eze-prof-hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--color-foreground);
}

.eze-prof-shell {
  max-width: 52rem;
  margin: 0 auto;
  padding-bottom: calc(var(--space-base) * 8);
}

.eze-prof-head {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--space-base) * 4);
  margin-bottom: calc(var(--space-base) * 6);
  padding: calc(var(--space-base) * 5) calc(var(--space-base) * 5);
  background: var(--color-component-01);
  border: 1px solid var(--color-layer-02);
  border-radius: calc(var(--radius-base) * 1.5);
}

@media (max-width: 480px) {
  .eze-prof-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: calc(var(--space-base) * 4);
  }
}

.eze-prof-head-info {
  flex: 1;
  min-width: 0;
}

.eze-prof-head-action {
  margin: calc(var(--space-base) * 3) 0 0;
}

.eze-prof-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-base) * 2);
  margin-top: calc(var(--space-base) * 2);
}

@media (max-width: 480px) {
  .eze-prof-chips-row {
    justify-content: center;
  }
}

.eze-prof-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: 999px;
  background: var(--color-layer-02);
  color: color-mix(in srgb, var(--color-foreground) 88%, var(--color-secondary));
  white-space: nowrap;
}

.eze-prof-av-wrap {
  position: relative;
  flex-shrink: 0;
}

.eze-prof-av {
  width: 5rem;
  height: 5rem;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: calc(var(--radius-base) * 1);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--color-primary) 78%, var(--color-dark)),
    color-mix(in srgb, var(--color-primary) 35%, var(--color-dark))
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--font-size-lg);
  color: var(--color-primary-contrast);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.eze-prof-av:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--color-dark) 12%, transparent);
}

.eze-prof-av:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.eze-prof-av-letter {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.eze-prof-av-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.eze-prof-av--has-img {
  background: var(--color-component-02);
}

.eze-prof-av--has-img .eze-prof-av-letter {
  display: none;
}

.eze-prof-av--has-img .eze-prof-av-img {
  display: block;
}

.eze-prof-av--tone1 {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--color-success) 72%, var(--color-dark)),
    color-mix(in srgb, var(--color-success) 32%, var(--color-dark))
  );
  color: var(--color-success-contrast);
}

.eze-prof-av--tone2 {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--color-warning) 75%, var(--color-dark)),
    color-mix(in srgb, var(--color-warning) 35%, var(--color-dark))
  );
  color: var(--color-warning-contrast);
}

.eze-prof-av--tone3 {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--color-danger) 70%, var(--color-dark)),
    color-mix(in srgb, var(--color-danger) 30%, var(--color-dark))
  );
  color: var(--color-danger-contrast);
}

.eze-prof-av--tone4 {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--color-secondary) 65%, var(--color-dark)),
    color-mix(in srgb, var(--color-secondary) 28%, var(--color-dark))
  );
  color: var(--color-secondary-contrast);
}

.eze-prof-av--tone5 {
  background: linear-gradient(145deg, var(--color-layer-02), var(--color-component-02));
  color: var(--color-foreground);
}

.eze-prof-av-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 12rem;
  padding: calc(var(--space-base) * 3);
  border-radius: calc(var(--radius-base) * 1.25);
  background: var(--color-component-01);
  border: 1px solid var(--color-layer-02);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--color-dark) 10%, transparent);
}

.eze-prof-av-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: calc(var(--space-base) * 2);
}

.eze-prof-av-swatch {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--color-layer-02);
  cursor: pointer;
  padding: 0;
}

.eze-prof-av-swatch:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.eze-prof-av-swatch--0 {
  background: linear-gradient(145deg, color-mix(in srgb, var(--color-primary) 78%, var(--color-dark)), color-mix(in srgb, var(--color-primary) 35%, var(--color-dark)));
}
.eze-prof-av-swatch--1 {
  background: linear-gradient(145deg, color-mix(in srgb, var(--color-success) 72%, var(--color-dark)), color-mix(in srgb, var(--color-success) 32%, var(--color-dark)));
}
.eze-prof-av-swatch--2 {
  background: linear-gradient(145deg, color-mix(in srgb, var(--color-warning) 75%, var(--color-dark)), color-mix(in srgb, var(--color-warning) 35%, var(--color-dark)));
}
.eze-prof-av-swatch--3 {
  background: linear-gradient(145deg, color-mix(in srgb, var(--color-danger) 70%, var(--color-dark)), color-mix(in srgb, var(--color-danger) 30%, var(--color-dark)));
}
.eze-prof-av-swatch--4 {
  background: linear-gradient(145deg, color-mix(in srgb, var(--color-secondary) 65%, var(--color-dark)), color-mix(in srgb, var(--color-secondary) 28%, var(--color-dark)));
}
.eze-prof-av-swatch--5 {
  background: linear-gradient(145deg, var(--color-layer-02), var(--color-component-02));
}

.eze-prof-av-pop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-base) * 2);
  align-items: center;
}

.eze-prof-name {
  margin: 0 0 calc(var(--space-base) * 1);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-foreground);
  line-height: 1.3;
}

.eze-prof-email {
  margin: 0;
  color: var(--color-secondary);
  font-size: var(--font-size-sm);
}

.eze-prof-idline {
  margin: 0;
  color: var(--color-secondary);
  font-size: var(--font-size-sm);
}

.eze-prof-hash {
  font-variant-numeric: tabular-nums;
}

.eze-prof-badge {
  margin-left: 0.35rem;
  vertical-align: middle;
}

.eze-prof-stat-val {
  font-size: var(--font-size-sm);
  color: color-mix(in srgb, var(--color-foreground) 88%, var(--color-secondary));
}

.eze-prof-stat-strong {
  font-weight: 700;
  color: var(--color-foreground);
}

.eze-prof-av-sync-status {
  margin-top: calc(var(--space-base) * 2);
  font-size: var(--font-size-xs);
  color: var(--color-secondary);
  text-align: center;
}

.eze-prof-panel {
  background: var(--color-component-01);
  border: 1px solid var(--color-layer-02);
  border-radius: calc(var(--radius-base) * 1.25);
  padding: calc(var(--space-base) * 4);
  margin-bottom: calc(var(--space-base) * 6);
}

.eze-prof-panel-head {
  display: flex;
  align-items: center;
  gap: calc(var(--space-base) * 2);
  flex-wrap: wrap;
  margin-bottom: calc(var(--space-base) * 3);
}

.eze-prof-panel-title {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-foreground);
}

.eze-prof-panel-hint {
  margin-left: auto;
  font-size: var(--font-size-xs);
  color: var(--color-secondary);
}

.eze-prof-heat-streak {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.45rem;
  font-size: var(--font-size-sm);
  font-weight: 700;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-success) 16%, var(--color-component-02));
  color: var(--color-success);
}

.eze-prof-heat-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: calc(var(--space-base) * 2);
  -webkit-overflow-scrolling: touch;
}

.eze-prof-heat-weeks {
  display: flex;
  flex-direction: row;
  gap: 3px;
  width: max-content;
}

.eze-prof-heat-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.eze-prof-heat-weeks .eze-prof-heat-cell {
  cursor: default;
}

.eze-prof-heat-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  flex-shrink: 0;
}

#eze-prof-heat-tooltip.eze-prof-heat-tooltip,
.eze-prof-heat-tooltip {
  position: fixed;
  z-index: 10050;
  left: 0;
  top: 0;
  max-width: 18rem;
  padding: 0.4rem 0.65rem;
  font-size: var(--font-size-xs);
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  color: var(--color-foreground);
  pointer-events: none;
  border-radius: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--color-layer-02) 65%, transparent);
  background: color-mix(in srgb, var(--color-component-01) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 6px color-mix(in srgb, var(--color-dark) 6%, transparent),
    0 14px 36px color-mix(in srgb, var(--color-dark) 16%, transparent),
    0 0 0 1px color-mix(in srgb, var(--color-foreground) 5%, transparent);
  transition: opacity 0.12s ease, visibility 0.12s ease, transform 0.12s ease;
}

.eze-prof-heat-tooltip--hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
}

.eze-prof-heat-tooltip:not(.eze-prof-heat-tooltip--hidden) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.eze-prof-heat-cell--l0 {
  background: color-mix(in srgb, var(--color-component-02) 88%, var(--color-layer-02));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-layer-02) 55%, transparent);
}

.eze-prof-heat-cell--l1 {
  background: color-mix(in srgb, var(--color-success) 24%, var(--color-component-02));
}

.eze-prof-heat-cell--l2 {
  background: color-mix(in srgb, var(--color-success) 48%, var(--color-component-02));
}

.eze-prof-heat-cell--l3 {
  background: color-mix(in srgb, var(--color-success) 72%, var(--color-component-02));
}

.eze-prof-heat-cell--l4 {
  background: var(--color-success);
}

.eze-prof-heat-cell--lx {
  background: var(--color-component-02);
  opacity: 0.2;
}

.eze-prof-heat-legend {
  display: flex;
  align-items: center;
  gap: 3px;
}

.eze-prof-heat-legend .eze-prof-heat-cell {
  width: 10px;
  height: 10px;
}

.eze-prof-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eze-prof-top-li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-layer-02);
  font-size: var(--font-size-sm);
}

.eze-prof-top-title {
  color: color-mix(in srgb, var(--color-foreground) 92%, var(--color-secondary));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.eze-prof-top-time {
  color: var(--color-secondary);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.eze-prof-hist-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.eze-prof-hist-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-layer-02);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

.eze-prof-hist-item:last-child {
  border-bottom: none;
}

.eze-prof-hist-item:hover {
  color: var(--color-primary);
}

.eze-prof-hist-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--color-layer-02);
  border-radius: var(--radius-sm);
  color: var(--color-secondary);
}

.eze-prof-hist-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.eze-prof-hist-title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eze-prof-hist-sub {
  color: var(--color-secondary);
}

.eze-prof-hist-time {
  flex-shrink: 0;
  color: var(--color-secondary);
  font-variant-numeric: tabular-nums;
}

.eze-prof-lead-msg {
  margin-top: calc(var(--space-base) * 5);
}

/* ── Bộ sưu tập ─────────────────────────────────────── */

.eze-prof-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.eze-prof-col-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-bottom: 1px solid var(--color-layer-02);
}

.eze-prof-col-item:last-child {
  border-bottom: none;
}

.eze-prof-col-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0;
  text-decoration: none;
  color: inherit;
  transition: color 0.1s;
}

.eze-prof-col-link:hover {
  color: var(--color-primary);
}

.eze-prof-col-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.eze-prof-col-title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eze-prof-col-sub {
  font-size: var(--font-size-xs);
  color: var(--color-secondary);
}

.eze-prof-col-time {
  flex-shrink: 0;
  font-size: var(--font-size-xs);
  color: var(--color-secondary);
  font-variant-numeric: tabular-nums;
  padding-right: 0.25rem;
}

.eze-prof-col-del {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--color-secondary);
  opacity: 0;
  transition: opacity 0.12s, color 0.12s, background 0.12s;
  padding: 0;
}

.eze-prof-col-item:hover .eze-prof-col-del,
.eze-prof-col-del:focus-visible {
  opacity: 1;
}

.eze-prof-col-del:hover {
  color: var(--color-danger);
  background: color-mix(in srgb, var(--color-danger) 10%, transparent);
}

.eze-prof-col-del:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

@media (hover: none) {
  .eze-prof-col-del {
    opacity: 0.45;
  }
}

#eze-site-nav.eze-site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#eze-site-nav.eze-site-nav--scrolled {
  box-shadow: 0 1px 0 var(--color-layer-02);
}
