/* Overview page */

.overview-status {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.overview-status-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  font-size: 22px;
}

.overview-status-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-status-text {
  min-width: 0;
}

.overview-status-label {
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
}

.overview-status-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16.5px;
  font-weight: 650;
}

.overview-status-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--text-muted);
}

a.stat-link {
  color: inherit;
  transition: border-color var(--transition), background var(--transition);
}

a.stat-link:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 4%, var(--panel));
  text-decoration: none;
}

.overview-columns {
  align-items: start;
}

@media (max-width: 1100px) {
  .overview-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.overview-skeleton-tall {
  height: 320px;
  border-radius: var(--radius-lg);
}

.overview-callout {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--panel)), var(--panel) 70%);
}

.overview-hero {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.overview-hero-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 26px;
  line-height: 1;
}

.overview-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
  padding-left: 1.4em;
}

.overview-steps li::marker {
  color: var(--accent-text);
  font-weight: 700;
}

.guild-head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.guild-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--panel-3)), var(--panel-2));
  color: var(--accent-text);
  font-size: 21px;
  font-weight: 750;
  object-fit: cover;
}

.guild-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.guild-name {
  font-size: 19px;
  font-weight: 700;
}

.guild-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
}

.guild-badges {
  gap: 6px;
}

.guild-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 0;
}

.guild-stats dt {
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.guild-stats dd {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.guild-stats + .alert {
  margin-top: 18px;
}

.perm-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.checklist-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.checklist-progress + .alert {
  margin-bottom: 8px;
}

.progress {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-3);
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transition: width 0.4s ease;
}

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

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.checklist-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.checklist-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.checklist-item.is-ok .checklist-icon {
  background: var(--success-soft);
  color: var(--success);
}

.checklist-item.is-open .checklist-icon {
  background: var(--warning-soft);
  color: var(--warning);
}

.checklist-text {
  flex: 1;
  min-width: 0;
}

.checklist-label {
  font-weight: 560;
}

.checklist-item.is-ok .checklist-label {
  color: var(--text-muted);
}

.checklist-hint {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.checklist-fix {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

button.checklist-fix {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-text);
  font-family: inherit;
  cursor: pointer;
}

button.checklist-fix:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-invite-card]:focus {
  outline: none;
}

.overview-ai-error {
  margin: 4px 0 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  font-family: var(--mono);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.overview-row-badge {
  flex: none;
  width: 118px;
}

.overview-row-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--panel-2);
  font-size: 16px;
}

.overview-row-main {
  flex: 1;
  min-width: 0;
}

.overview-row-title {
  font-weight: 600;
}

.overview-row-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.overview-row-meta {
  flex: none;
  max-width: 40%;
  font-size: 12px;
  color: var(--text-faint);
  text-align: right;
  white-space: nowrap;
}

.overview-row-meta time {
  color: var(--text-muted);
  font-weight: 560;
}

@media (max-width: 560px) {
  .guild-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-row-badge {
    width: auto;
  }

  .overview-hero {
    flex-direction: column;
  }
}
