@import '@my-resume/ui/display.css';

.card {
  border-radius: var(--admin-radius-card);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
}

.stack,
.preview-stack {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.muted,
.muted-list {
  color: var(--admin-text-muted);
}

.muted-list {
  margin: 0;
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
}

.error-text {
  margin: 0;
  color: var(--admin-danger);
}

.status-box {
  display: grid;
  gap: 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--admin-border);
  background: color-mix(
    in srgb,
    var(--admin-primary-soft) 42%,
    var(--admin-surface-strong)
  );
  padding: 1rem 1.1rem;
}

.readonly-box {
  border-radius: 18px;
  border: 1px solid var(--admin-warning-border);
  background: var(--admin-warning-bg);
  color: var(--admin-warning-text);
  padding: 1rem 1.1rem;
}

.link-button,
.secondary-link-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 600;
}

.link-button {
  border: 1px solid var(--admin-button-primary-border);
  background: var(--admin-button-primary-bg);
  color: var(--admin-button-primary-text);
}

.link-button:hover {
  background: var(--admin-button-primary-bg-hover);
}

.secondary-button,
.secondary-link-button {
  border: 1px solid var(--admin-border-strong);
  background: var(--admin-surface-muted);
  color: var(--admin-text);
}

.header-text-button {
  border: 0;
  background: transparent;
  color: var(--admin-text-muted);
  padding: 0.4rem 0.2rem;
  font-size: 0.9rem;
  line-height: 1.2;
}

.header-text-button:hover {
  color: var(--admin-text);
}

.dashboard-inline-note {
  border-radius: 16px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-muted);
  color: var(--admin-text-muted);
  padding: 0.9rem 1rem;
}

.dashboard-entry-actions,
.dashboard-badge-row,
.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 767px) {
  .card {
    border-radius: 20px;
    padding: 1rem;
  }

  .stack,
  .preview-stack {
    gap: 0.75rem;
  }

  .field {
    gap: 0.45rem;
    font-size: 0.9rem;
  }

  .muted,
  .dashboard-inline-note,
  .readonly-box,
  .status-box {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .status-box,
  .readonly-box {
    gap: 0.5rem;
    border-radius: 16px;
    padding: 0.85rem 0.95rem;
  }

  .dashboard-inline-note {
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
  }

  .dashboard-entry-actions,
  .dashboard-badge-row,
  .toolbar-group {
    gap: 0.55rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .card {
    padding: 1.2rem;
  }

  .stack,
  .preview-stack {
    gap: 0.9rem;
  }
}
